X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=attach.c;h=d32f80cdf045c2981512233fcf1bd8484880dd5f;hp=5e43321884e0b1657d128fad43c16b07f4848d30;hb=2ce8de509852f47a90f834b3e8d047e054810309;hpb=49081299c673ceebc38d9a4f0985608cb3aecfce diff --git a/attach.c b/attach.c index 5e43321..d32f80c 100644 --- a/attach.c +++ b/attach.c @@ -8,24 +8,7 @@ * please see the file GPL in the top level source directory. */ -#if HAVE_CONFIG_H -# include "config.h" -#endif - -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include +#include #include @@ -175,7 +158,7 @@ int mutt_compose_attachment (BODY * a) goto bailout; } - mutt_free_body (&b); + body_list_wipe(&b); } } } @@ -358,7 +341,7 @@ int mutt_is_autoview (BODY * b, const char *type) mutt_check_lookup_list (b, _type, sizeof (_type)); type = _type; - if (mutt_needs_mailcap (b)) { + if (rfc1524_mailcap_isneeded(b)) { if (option (OPTIMPLICITAUTOVIEW)) return 1; @@ -400,7 +383,7 @@ int mutt_view_attachment (FILE * fp, BODY * a, int flag, HEADER * hdr, !crypt_valid_passphrase (a->hdr->security)) return (rc); use_mailcap = (flag == M_MAILCAP || - (flag == M_REGULAR && mutt_needs_mailcap (a))); + (flag == M_REGULAR && rfc1524_mailcap_isneeded(a))); snprintf (type, sizeof (type), "%s/%s", TYPE (a), a->subtype); if (use_mailcap) {