diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-10-10 17:47:52 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-10-10 17:47:52 +0000 |
commit | 6cb67de133d4bc256dce49a631f5b2b7b34a382e (patch) | |
tree | f43eeb42340023a95737adc71c6f279c0cfb021f /fetchmail.c | |
parent | dcc479703ddcd3b99224a06b0947e4d8bd657063 (diff) | |
download | fetchmail-6cb67de133d4bc256dce49a631f5b2b7b34a382e.tar.gz fetchmail-6cb67de133d4bc256dce49a631f5b2b7b34a382e.tar.bz2 fetchmail-6cb67de133d4bc256dce49a631f5b2b7b34a382e.zip |
Kerberos integration, stage 3.
svn path=/trunk/; revision=283
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/fetchmail.c b/fetchmail.c index b86878d5..7d9073c8 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -310,8 +310,8 @@ char **argv; for (hostp = hostlist; hostp; hostp = hostp->next) if (hostp->active && !(implicitmode && hostp->skip) && !hostp->password[0]) { - if (hostp->protocol == P_KPOP) - /* Server doesn't care what the password is, but there + if (hostp->authenticate == A_KERBEROS) + /* Server won't care what the password is, but there must be some non-null string here. */ (void) strncpy(hostp->password, hostp->remotename, PASSWORDLEN-1); @@ -395,7 +395,6 @@ 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; } } @@ -435,7 +434,6 @@ struct hostrec *queryctl; break; case P_POP3: case P_APOP: - case P_KPOP: return(doPOP3(queryctl)); break; case P_IMAP: @@ -488,7 +486,10 @@ struct hostrec *queryctl; printf(" APOP secret = '%s'\n", queryctl->password); else printf(" Password = '%s'\n", queryctl->password); - printf(" Protocol is %s", showproto(queryctl->protocol)); + if (queryctl->protocol == P_POP3 && queryctl->port == KPOP_PORT) + printf(" Protocol is KPOP"); + else + printf(" Protocol is %s", showproto(queryctl->protocol)); if (queryctl->port) printf(" (using port %d)", queryctl->port); else if (outlevel == O_VERBOSE) |