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 /driver.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 'driver.c')
-rw-r--r-- | driver.c | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -534,6 +534,15 @@ struct method *proto; goto closeUp; } +#ifdef KERBEROS_V4 + if (queryctl->protocol == P_KPOP) + { + ok = (pop3_kerberos_auth (socket, queryctl)); + if (ok != 0) + goto cleanUp; + } +#endif + /* accept greeting message from mail server */ ok = (protocol->parse_response)(socket, buf); if (alarmed || ok != 0) @@ -560,7 +569,7 @@ struct method *proto; count, count > 1 ? "s" : "", queryctl->servername); - if (count > 0) + if ((count > 0) && (!check_only)) { if (queryctl->mda[0] == '\0') if ((mboxfd = Socket(queryctl->smtphost, SMTP_PORT)) < 0 @@ -659,6 +668,10 @@ struct method *proto; close(socket); goto closeUp; } + else if (check_only) { + ok = ((count > 0) ? PS_SUCCESS : PS_NOMAIL); + goto closeUp; + } else { ok = gen_transact(socket, protocol->exit_cmd); if (ok == 0) |