aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-07-25 14:20:54 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-07-25 14:20:54 +0000
commit3673babe2a47d43fce7e4472fe08917e68b88ff6 (patch)
treef3ad85ad82372c9fca0c27083d680124ad64d523 /imap.c
parent01abcfe2305f3b7a367acbd394e615e6051e5c6b (diff)
downloadfetchmail-3673babe2a47d43fce7e4472fe08917e68b88ff6.tar.gz
fetchmail-3673babe2a47d43fce7e4472fe08917e68b88ff6.tar.bz2
fetchmail-3673babe2a47d43fce7e4472fe08917e68b88ff6.zip
SockClose() abstraction.
svn path=/trunk/; revision=2021
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/imap.c b/imap.c
index 412e1dc8..c1187cf6 100644
--- a/imap.c
+++ b/imap.c
@@ -607,7 +607,7 @@ int imap_getauth(int sock, struct query *ctl, char *greeting)
{
imap_version = IMAP4;
if (outlevel == O_VERBOSE)
- error(0, 0, "Protocol identified as IMAP4 rev 0");
+ error(0, 0, "Protocol identified as IMAP4 rev 0");
}
}
else if (ok == PS_ERROR)
@@ -622,11 +622,12 @@ int imap_getauth(int sock, struct query *ctl, char *greeting)
peek_capable = (imap_version >= IMAP4);
#if OPIE
- if ((ctl->server.protocol == P_IMAP) && strstr(capabilities, "AUTH=X-OTP")) {
- if (outlevel == O_VERBOSE)
- error(0, 0, "OTP authentication is supported");
- if (do_otp(sock, ctl) == PS_SUCCESS)
- return PS_SUCCESS;
+ if ((ctl->server.protocol == P_IMAP) && strstr(capabilities, "AUTH=X-OTP"))
+ {
+ if (outlevel == O_VERBOSE)
+ error(0, 0, "OTP authentication is supported");
+ if (do_otp(sock, ctl) == PS_SUCCESS)
+ return(PS_SUCCESS);
};
#endif /* OPIE */