X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=pop%2Fpop.c;h=365b772522ea231700675babfe9f548729f77133;hp=c24ac1ccab3eb9997a4911010b3c6d14cb4d6d68;hb=d9960a434f5c00a534a0dabe02ae5ab8d4881569;hpb=9a1efcc01ddeca4106847f8eb28a704aca2dcf0b diff --git a/pop/pop.c b/pop/pop.c index c24ac1c..365b772 100644 --- a/pop/pop.c +++ b/pop/pop.c @@ -12,6 +12,8 @@ #endif #include +#include +#include #include #include "mutt.h" @@ -20,7 +22,6 @@ #include "mutt_crypt.h" #include "mutt_curses.h" -#include "lib/str.h" #include "lib/debug.h" #include @@ -131,7 +132,7 @@ static int fetch_uidl (char *line, void *data) sscanf (line, "%d %s", &index, line); for (i = 0; i < ctx->msgcount; i++) - if (!str_cmp (line, ctx->hdrs[i]->data)) + if (!m_strcmp(line, ctx->hdrs[i]->data)) break; if (i == ctx->msgcount) { @@ -142,7 +143,7 @@ static int fetch_uidl (char *line, void *data) ctx->msgcount++; ctx->hdrs[i] = mutt_new_header (); - ctx->hdrs[i]->data = str_dup (line); + ctx->hdrs[i]->data = m_strdup(line); } else if (ctx->hdrs[i]->index != index - 1) pop_data->clear_cache = 1; @@ -248,7 +249,7 @@ int pop_open_mailbox (CONTEXT * ctx) return -1; p_delete(&ctx->path); - ctx->path = str_dup (buf); + ctx->path = m_strdup(buf); pop_data = p_new(POP_DATA, 1); pop_data->conn = conn; @@ -259,7 +260,7 @@ int pop_open_mailbox (CONTEXT * ctx) conn->data = pop_data; - FOREVER { + for (;;) { if (pop_reconnect (ctx) != PQ_OK) return -1; @@ -354,7 +355,7 @@ int pop_fetch_message (MESSAGE * msg, CONTEXT * ctx, int msgno) } } - FOREVER { + for (;;) { if (pop_reconnect (ctx) != PQ_OK) return -1; @@ -405,7 +406,7 @@ int pop_fetch_message (MESSAGE * msg, CONTEXT * ctx, int msgno) * portion of the headers, those required for the main display. */ cache->index = h->index; - cache->path = str_dup (path); + cache->path = m_strdup(path); rewind (msg->fp); uidl = h->data; mutt_free_envelope (&h->env); @@ -440,7 +441,7 @@ pop_query_status pop_sync_mailbox (CONTEXT * ctx, int unused, int *index_hint) pop_data->check_time = 0; - FOREVER { + for (;;) { if (pop_reconnect (ctx) != PQ_OK) return PQ_NOT_CONNECTED;