diff options
Diffstat (limited to 'pop2.c')
-rw-r--r-- | pop2.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -17,6 +17,7 @@ #endif #include "fetchmail.h" #include "socket.h" +#include "i18n.h" static int pound_arg, equal_arg; @@ -60,6 +61,11 @@ static int pop2_getauth(int sock, struct query *ctl, char *buf) int status; (void)buf; + if (ctl->sslproto && !strcasecmp(ctl->sslproto, "tls1") && !ctl->use_ssl) + { + report(stderr, GT_("POP2 does not support STARTTLS. Giving up.\n")); + return PS_SOCKET; + } strlcpy(shroud, ctl->password, sizeof(shroud)); status = gen_transact(sock, "HELO %s %s", |