From 983bd40c04cffdf4f9715ae8ba803007a5ed3640 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Wed, 1 Nov 2006 23:06:04 +0000 Subject: Snapshot 6.3.6-rc1. svn path=/branches/BRANCH_6-3/; revision=4925 --- pop2.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pop2.c') diff --git a/pop2.c b/pop2.c index b8dbb09f..8bfefb4c 100644 --- a/pop2.c +++ b/pop2.c @@ -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", -- cgit v1.2.3