X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=pop.c;h=a066f6e5dd05562de916dd3f760a506e089e4613;hp=512dfda3397bdcb58f83d224829b523b1066c7a8;hb=819c071fa7efc8dffb4dd92f36f0111227ff692f;hpb=c1a6303fea322f1de432897524b25fa238896225 diff --git a/pop.c b/pop.c index 512dfda..a066f6e 100644 --- a/pop.c +++ b/pop.c @@ -13,7 +13,7 @@ #include #include -#include +#include #include "crypt.h" #include "mutt.h" @@ -416,6 +416,7 @@ static pop_query_status pop_authenticate (pop_data_t * pop_data) attempts++; break; } + mutt_socket_close(pop_data->conn); } } } else { @@ -431,6 +432,7 @@ static pop_query_status pop_authenticate (pop_data_t * pop_data) attempts++; break; } + mutt_socket_close(pop_data->conn); } } @@ -590,7 +592,7 @@ static pop_query_status pop_capabilities(pop_data_t * pop_data, int mode) /* Check capabilities */ if (mode == 2) { - char *msg = NULL; + const char *msg = NULL; if (!pop_data->expire) msg = _("Unable to leave messages on server."); @@ -625,7 +627,7 @@ static int pop_parse_path (const char *path, ACCOUNT * act) if (url.scheme == U_POP || url.scheme == U_POPS) { if (url.scheme == U_POPS) { - act->flags |= M_ACCT_SSL; + act->has_ssl = 1; act->port = POP_SSL_PORT; } @@ -1393,7 +1395,7 @@ int pop_fetch_message (MESSAGE * msg, CONTEXT * ctx, int msgno) bar.msg = _("Fetching message..."); mutt_progress_bar (&bar, 0); - msg->fp = m_tempfile(path, sizeof(path), NONULL(MCore.tmpdir), NULL); + msg->fp = m_tempfile(path, sizeof(path), NONULL(mod_core.tmpdir), NULL); if (!msg->fp) { mutt_error(_("Could not create temporary file")); mutt_sleep(2);