# include "config.h"
#endif
+#include <ctype.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <sys/wait.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <string.h>
+#include <errno.h>
+
#include <lib-lib/mem.h>
#include <lib-lib/ascii.h>
#include <lib-lib/str.h>
#include <lib-lib/file.h>
#include <lib-lib/macros.h>
+#include <lib-lib/debug.h>
+
+#include <lib-sys/unix.h>
#include <lib-mime/mime.h>
+#include <lib-ui/curses.h>
+#include <lib-ui/menu.h>
+
#include "mutt.h"
#include "handler.h"
#include "recvattach.h"
-#include "mutt_menu.h"
-#include "mutt_curses.h"
#include "keymap.h"
#include "rfc1524.h"
#include "pager.h"
#include "mx.h"
#include <lib-crypt/crypt.h>
-#include "lib/debug.h"
-
-#include <ctype.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <sys/wait.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <string.h>
-#include <errno.h>
-
int mutt_get_tmp_attachment (BODY * a)
{
char type[STRING];
b = mutt_read_mime_header (fp, 0);
if (b) {
if (b->parameter) {
- mutt_free_parameter (&a->parameter);
+ parameter_list_wipe(&a->parameter);
a->parameter = b->parameter;
b->parameter = NULL;
}
void mutt_check_lookup_list (BODY * b, char *type, int len)
{
- LIST *t = MimeLookupList;
+ string_list_t *t = MimeLookupList;
int i;
for (; t; t = t->next) {
int mutt_is_autoview (BODY * b, const char *type)
{
- LIST *t = AutoViewList;
+ string_list_t *t = AutoViewList;
char _type[SHORT_STRING];
int i;
m->length = 0;
m->encoding = saved_encoding;
if (saved_parts) {
- mutt_free_header (&m->hdr);
+ header_delete(&m->hdr);
m->parts = saved_parts;
m->hdr = saved_hdr;
}