X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=recvcmd.c;h=68ad4623dd5aa82cd661b4f1cc9d951bb7266813;hp=f7b93d768f268307b179bc59db47a4adea514243;hb=3e611c4b53a33408955152e1c9336f8643ea096e;hpb=a8477ebaa09990b3688164cbe5cf661c4189541d diff --git a/recvcmd.c b/recvcmd.c index f7b93d7..68ad462 100644 --- a/recvcmd.c +++ b/recvcmd.c @@ -11,7 +11,15 @@ # include "config.h" #endif +#include +#include +#include + #include "mutt.h" +#include "enter.h" +#include "state.h" +#include "handler.h" +#include "recvattach.h" #include "mutt_curses.h" #include "mutt_menu.h" #include "rfc1524.h" @@ -22,9 +30,6 @@ #include "copy.h" #include "mutt_idna.h" -#include "lib/mem.h" -#include "lib/intl.h" -#include "lib/str.h" /* some helper functions to verify that we are exclusively operating * on message/rfc822 attachments @@ -149,7 +154,7 @@ void mutt_attach_bounce (FILE * fp, HEADER * hdr, if (mutt_addrlist_to_idna (adr, &err) < 0) { mutt_error (_("Bad IDN: '%s'"), err); - FREE (&err); + p_delete(&err); rfc822_free_address (&adr); return; } @@ -439,7 +444,7 @@ static void attach_forward_bodies (FILE * fp, HEADER * hdr, /* initialize a state structure */ - memset (&st, 0, sizeof (st)); + p_clear(&st, 1); if (option (OPTFORWQUOTE)) st.prefix = prefix; @@ -684,7 +689,7 @@ attach_reply_envelope_defaults (ENVELOPE * env, ATTACHPTR ** idx, /* in case followup set Newsgroups: with Followup-To: if it present */ if (!env->newsgroups && curenv && str_casecmp (curenv->followup_to, "poster")) - env->newsgroups = str_dup (curenv->followup_to); + env->newsgroups = m_strdup(curenv->followup_to); } else #endif @@ -824,7 +829,7 @@ void mutt_attach_reply (FILE * fp, HEADER * hdr, else { mutt_make_attribution (Context, parent, tmpfp); - memset (&st, 0, sizeof (STATE)); + p_clear(&st, 1); st.fpin = fp; st.fpout = tmpfp;