X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=copy.c;h=9afdc255ec6548314d75dc3cbd0d08dcbe336d93;hb=a548b928816889f8f2aa5bfe8f755d8234ce19db;hp=49e19d7f8c5fc67d7c108f49e58fd5ba67710c4d;hpb=f404a0ca916be07049af51a3022baaaaab94def6;p=apps%2Fmadmutt.git diff --git a/copy.c b/copy.c index 49e19d7..9afdc25 100644 --- a/copy.c +++ b/copy.c @@ -379,15 +379,10 @@ mutt_copy_header (FILE *in, HEADER *h, FILE *out, int flags, const char *prefix) if (flags & CH_UPDATE) { if ((flags & CH_NOSTATUS) == 0) -#ifdef IMAP_EDIT_THREADS -#define NEW_ENV new_env -#else -#define NEW_ENV env -#endif { - if (h->irt_changed && h->NEW_ENV->in_reply_to) + if (h->irt_changed && h->new_env->in_reply_to) { - LIST *listp = h->NEW_ENV->in_reply_to; + LIST *listp = h->new_env->in_reply_to; if (fputs ("In-Reply-To: ", out) == EOF) return (-1); @@ -400,9 +395,9 @@ mutt_copy_header (FILE *in, HEADER *h, FILE *out, int flags, const char *prefix) return (-1); } - if (h->refs_changed && h->NEW_ENV->references) + if (h->refs_changed && h->new_env->references) { - LIST *listp = h->NEW_ENV->references, *refs = NULL, *t; + LIST *listp = h->new_env->references, *refs = NULL, *t; if (fputs ("References: ", out) == EOF) return (-1); @@ -422,12 +417,11 @@ mutt_copy_header (FILE *in, HEADER *h, FILE *out, int flags, const char *prefix) /* clearing refs from memory */ for (t = refs; refs; refs = t->next, t = refs) - safe_free ((void **)&refs); + FREE(&refs); if (fputc ('\n', out) == EOF) return (-1); } -#undef NEW_ENV if (h->old || h->read) {