summaryrefslogtreecommitdiff
path: root/lib/pop3.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pop3.c')
-rw-r--r--lib/pop3.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/pop3.c b/lib/pop3.c
index 8c2c9bb5a..dc66bcb19 100644
--- a/lib/pop3.c
+++ b/lib/pop3.c
@@ -260,8 +260,12 @@ static int pop3_endofresp(struct pingpong *pp, int *resp)
return TRUE;
}
+ /* Does the server support the STLS capability? */
+ if(len >= 4 && !memcmp(line, "STLS", 4))
+ pop3c->tls_supported = TRUE;
+
/* Does the server support clear text authentication? */
- if(len >= 4 && !memcmp(line, "USER", 4))
+ else if(len >= 4 && !memcmp(line, "USER", 4))
pop3c->authtypes |= POP3_TYPE_CLEARTEXT;
/* Does the server support APOP authentication? */