#include "mutt.h"
#include "pop.h"
-#if defined (USE_SSL) || defined (USE_GNUTLS)
-# include <lib-sys/mutt_ssl.h>
-#endif
/* given an POP mailbox name, return host, port, username and password */
int pop_parse_path (const char *path, ACCOUNT * act)
return PQ_ERR;
}
-#if (defined(USE_SSL) || defined(USE_GNUTLS))
/* Attempt STLS if available and desired. */
if (!pop_data->conn->ssf && (pop_data->cmd_stls || option(OPTSSLFORCETLS))) {
if (option (OPTSSLFORCETLS))
mutt_error ("%s", pop_data->err_msg);
mutt_sleep (2);
}
-#if defined (USE_SSL) || defined (USE_GNUTLS)
else if (mutt_ssl_starttls (pop_data->conn))
-#endif
{
mutt_error (_("Could not negotiate TLS connection"));
mutt_sleep (2);
mutt_sleep (1);
return -2;
}
-#endif
ret = pop_authenticate (pop_data);
if (ret == PQ_NOT_CONNECTED)