aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/imap.c b/imap.c
index af605789..66f42c8a 100644
--- a/imap.c
+++ b/imap.c
@@ -648,7 +648,8 @@ int imap_getauth(int sock, struct query *ctl, char *greeting)
}
#endif /* KERBEROS_V4 */
- if ((imap_version >= IMAP4rev1) && (!strstr(capabilities, "AUTH=LOGIN"))) {
+ /* this handles either AUTH=LOGIN or AUTH-LOGIN */
+ if ((imap_version >= IMAP4rev1) && (!strstr(capabilities, "LOGIN"))) {
error(0,-1, "Required LOGIN capability not supported by server");
return PS_AUTHFAIL;
};