aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-02-05 04:10:43 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-02-05 04:10:43 +0000
commitf14635152fcc38a703f806dcfeb3fc51d3e55365 (patch)
tree0ed6186184ab0c6b84bb742c9b89a89a1a978fb7 /imap.c
parent6cb8b67abddf3391db61e3839c98b88320395249 (diff)
downloadfetchmail-f14635152fcc38a703f806dcfeb3fc51d3e55365.tar.gz
fetchmail-f14635152fcc38a703f806dcfeb3fc51d3e55365.tar.bz2
fetchmail-f14635152fcc38a703f806dcfeb3fc51d3e55365.zip
LinuxWorld hacks.
svn path=/trunk/; revision=2729
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/imap.c b/imap.c
index eb57bf4a..3e39b6fb 100644
--- a/imap.c
+++ b/imap.c
@@ -894,7 +894,11 @@ int imap_getauth(int sock, struct query *ctl, char *greeting)
else
expunge_period = 1;
- if (preauth)
+ /*
+ * If either (a) we saw a PREAUTH token in the capability response, or
+ * (b) the user specified ssh preauthentication, then we're done.
+ */
+ if (preauth || ctl->server.preauthenticate == A_SSH)
return(PS_SUCCESS);
#if OPIE_ENABLE