diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-05-27 19:21:49 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-05-27 19:21:49 +0000 |
commit | cda98906893b358d8dd22775af95c9ade5cfe5e5 (patch) | |
tree | 34c1005ce799b43b623fed8426c4582497d55038 /fetchmail.c | |
parent | 52788ad79c407f4f9a4e898e06d736730a2fe00a (diff) | |
download | fetchmail-cda98906893b358d8dd22775af95c9ade5cfe5e5.tar.gz fetchmail-cda98906893b358d8dd22775af95c9ade5cfe5e5.tar.bz2 fetchmail-cda98906893b358d8dd22775af95c9ade5cfe5e5.zip |
Add imap-k4 capability.
svn path=/trunk/; revision=1029
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fetchmail.c b/fetchmail.c index 3bea5ab4..723257f9 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -299,7 +299,7 @@ int main (int argc, char **argv) for (ctl = querylist; ctl; ctl = ctl->next) if (ctl->active && !(implicitmode && ctl->server.skip)&&!ctl->password) { - if (ctl->server.authenticate == A_KERBEROS_V4) + if (ctl->server.authenticate == A_KERBEROS_V4 || ctl->server.protocol == P_IMAP_K4) /* Server won't care what the password is, but there must be some non-null string here. */ ctl->password = ctl->remotename; @@ -315,7 +315,7 @@ int main (int argc, char **argv) ctl->password = xstrdup(p->password); } - if (ctl->server.protocol != P_ETRN && !ctl->password) + if (ctl->server.protocol != P_ETRN && ctl->server.protocol != P_IMAP_K4 && !ctl->password) { (void) sprintf(tmpbuf, "Enter password for %s@%s: ", ctl->remotename, ctl->server.names->id); @@ -731,6 +731,7 @@ static char *showproto(int proto) case P_POP2: return("POP2"); break; case P_POP3: return("POP3"); break; case P_IMAP: return("IMAP"); break; + case P_IMAP_K4: return("IMAP-K4"); break; case P_APOP: return("APOP"); break; case P_RPOP: return("RPOP"); break; case P_ETRN: return("ETRN"); break; @@ -777,6 +778,7 @@ static int query_host(struct query *ctl) return(doPOP3(ctl)); break; case P_IMAP: + case P_IMAP_K4: return(doIMAP(ctl)); break; case P_ETRN: |