X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=copy.c;h=46dfd647c60d42b6d50268acb07a9ad66ac1d8b5;hp=97b73c02e249e8c0e57237a5991ed06835a604d2;hb=ac813896ca32d850febc2d95065ac4fa040f11f9;hpb=4761fa78a6dfc9437caa6e6e0aac806e50e01c83 diff --git a/copy.c b/copy.c index 97b73c0..46dfd64 100644 --- a/copy.c +++ b/copy.c @@ -11,11 +11,17 @@ # include "config.h" #endif +#include +#include +#include +#include + #include #include #include #include #include +#include #include @@ -26,13 +32,6 @@ #include #include "mutt_idna.h" -#include "lib/debug.h" - -#include -#include -#include -#include /* needed for SEEK_SET under SunOS 4.1.4 */ - static int address_header_decode (char **str); static int copy_delete_attach (BODY * b, FILE * fpin, FILE * fpout, char *date); @@ -48,7 +47,7 @@ mutt_copy_hdr (FILE* in, FILE* out, off_t off_start, off_t off_end, int ignore = 0; char buf[STRING]; /* should be long enough to get most fields in one pass */ char *nl; - LIST *t; + string_list_t *t; char **headers; int hdr_count; int x; @@ -367,7 +366,7 @@ mutt_copy_header (FILE * in, HEADER * h, FILE * out, int flags, if (flags & CH_UPDATE) { if ((flags & CH_NOSTATUS) == 0) { if (h->env->irt_changed && h->env->in_reply_to) { - LIST *listp = h->env->in_reply_to; + string_list_t *listp = h->env->in_reply_to; if (fputs ("In-Reply-To: ", out) == EOF) return (-1); @@ -381,7 +380,7 @@ mutt_copy_header (FILE * in, HEADER * h, FILE * out, int flags, } if (h->env->refs_changed && h->env->references) { - LIST *listp = h->env->references, *refs = NULL, *t; + string_list_t *listp = h->env->references, *refs = NULL, *t; if (fputs ("References: ", out) == EOF) return (-1); @@ -389,7 +388,7 @@ mutt_copy_header (FILE * in, HEADER * h, FILE * out, int flags, /* Mutt stores references in reverse order, thus we create * a reordered refs list that we can put in the headers */ for (; listp; listp = listp->next, refs = t) { - t = p_new(LIST, 1); + t = p_new(string_list_t, 1); t->data = listp->data; t->next = refs; } @@ -936,7 +935,7 @@ static int address_header_decode (char **h) format_address_header (h, a); - address_delete (&a); + address_list_wipe(&a); p_delete(&s); return 1;