# include "config.h"
#endif
+#include <string.h>
+#include <stdlib.h>
+#include <ctype.h>
+#include <unistd.h>
+
#include <lib-lib/macros.h>
#include <lib-lib/mem.h>
#include <lib-lib/str.h>
#include <lib-lib/file.h>
#include <lib-lib/ascii.h>
+#include <lib-lib/debug.h>
#include <lib-mime/mime.h>
#include <lib-crypt/crypt.h>
#include "mutt_idna.h"
-#include "lib/debug.h"
-
-#include <string.h>
-#include <stdlib.h>
-#include <ctype.h>
-#include <unistd.h> /* 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);
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;
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);
}
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);
/* 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;
}
format_address_header (h, a);
- address_delete (&a);
+ address_list_wipe(&a);
p_delete(&s);
return 1;