X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=pop%2Fpop.c;h=2e8763124996595d91daf6e4fe5fb56a5a9e0cca;hp=904f1227a2c5e9c866be27e2a07d6220bbcf4d46;hb=3ca2e5020807d066df2490b05e0d1a074c026133;hpb=4761fa78a6dfc9437caa6e6e0aac806e50e01c83 diff --git a/pop/pop.c b/pop/pop.c index 904f122..2e87631 100644 --- a/pop/pop.c +++ b/pop/pop.c @@ -142,7 +142,7 @@ static int fetch_uidl (char *line, void *data) mx_alloc_memory (ctx); ctx->msgcount++; - ctx->hdrs[i] = mutt_new_header (); + ctx->hdrs[i] = header_new(); ctx->hdrs[i]->data = m_strdup(line); } else if (ctx->hdrs[i]->index != index - 1) @@ -217,7 +217,7 @@ static int pop_fetch_headers (CONTEXT * ctx) if (ret != PQ_OK) { for (i = ctx->msgcount; i < new_count; i++) - mutt_free_header (&ctx->hdrs[i]); + header_delete(&ctx->hdrs[i]); return ret; } @@ -409,7 +409,7 @@ int pop_fetch_message (MESSAGE * msg, CONTEXT * ctx, int msgno) cache->path = m_strdup(path); rewind (msg->fp); uidl = h->data; - mutt_free_envelope (&h->env); + envelope_delete(&h->env); h->env = mutt_read_rfc822_header (msg->fp, h, 0, 0); h->data = uidl; h->lines = 0;