diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-10-10 15:25:45 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-10-10 15:25:45 +0000 |
commit | 8a95cd7b2d55a11e6604931cb2f5476f8150f1e9 (patch) | |
tree | 4b1ac9b4f512fe2f608ac68dbd5ece52cc365447 /fetchmail.c | |
parent | 72050c6324f11537f20eb8ee06792cf0f2c2e347 (diff) | |
download | fetchmail-8a95cd7b2d55a11e6604931cb2f5476f8150f1e9.tar.gz fetchmail-8a95cd7b2d55a11e6604931cb2f5476f8150f1e9.tar.bz2 fetchmail-8a95cd7b2d55a11e6604931cb2f5476f8150f1e9.zip |
Chris Hanson's Kerberos support, plus documentation.
svn path=/trunk/; revision=280
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/fetchmail.c b/fetchmail.c index 8be194b9..b86878d5 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -54,6 +54,7 @@ int yydebug; /* enable parse debugging */ int poll_interval; /* poll interval in seconds */ char *logfile; /* log file for daemon mode */ int quitmode; /* if --quit was set */ +int check_only; /* if --probe was set */ /* miscellaneous global controls */ char *rcfile; /* path name of rc file */ @@ -309,10 +310,18 @@ char **argv; for (hostp = hostlist; hostp; hostp = hostp->next) if (hostp->active && !(implicitmode && hostp->skip) && !hostp->password[0]) { - (void) sprintf(tmpbuf, "Enter password for %s@%s: ", - hostp->remotename, hostp->servername); - (void) strncpy(hostp->password, - (char *)getpassword(tmpbuf),PASSWORDLEN-1); + if (hostp->protocol == P_KPOP) + /* Server doesn't care what the password is, but there + must be some non-null string here. */ + (void) strncpy(hostp->password, + hostp->remotename, PASSWORDLEN-1); + else + { + (void) sprintf(tmpbuf, "Enter password for %s@%s: ", + hostp->remotename, hostp->servername); + (void) strncpy(hostp->password, + (char *)getpassword(tmpbuf),PASSWORDLEN-1); + } } /* @@ -386,6 +395,7 @@ int proto; case P_POP3: return("POP3"); break; case P_IMAP: return("IMAP"); break; case P_APOP: return("APOP"); break; + case P_KPOP: return("KPOP"); break; default: return("unknown?!?"); break; } } @@ -425,6 +435,7 @@ struct hostrec *queryctl; break; case P_POP3: case P_APOP: + case P_KPOP: return(doPOP3(queryctl)); break; case P_IMAP: |