X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=attach.c;h=3fbe7d2faf81442e2456348ac3048220592a30ee;hp=e1cd5b6b29d0603f82c275c8c036fe2025f39613;hb=201fd8633cc86ccda413c919ae6e2ae04e89b4a9;hpb=dc35ba82dbe9ba8cb27e623949dcd4b91930d3c5 diff --git a/attach.c b/attach.c index e1cd5b6..3fbe7d2 100644 --- a/attach.c +++ b/attach.c @@ -20,17 +20,18 @@ #include +#include +#include + #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 "copy.h" #include "mx.h" -#include "mutt_crypt.h" +#include #include "lib/debug.h" @@ -142,7 +143,7 @@ int mutt_compose_attachment (BODY * a) b = mutt_read_mime_header (fp, 0); if (b) { if (b->parameter) { - mutt_free_parameter (&a->parameter); + parameter_delete(&a->parameter); a->parameter = b->parameter; b->parameter = NULL; } @@ -399,7 +400,7 @@ int mutt_view_attachment (FILE * fp, BODY * a, int flag, HEADER * hdr, int unlink_tempfile = 0; is_message = mutt_is_message_type (a->type, a->subtype); - if (WithCrypto && is_message && a->hdr && (a->hdr->security & ENCRYPT) && + if (is_message && a->hdr && (a->hdr->security & ENCRYPT) && !crypt_valid_passphrase (a->hdr->security)) return (rc); use_mailcap = (flag == M_MAILCAP || @@ -865,7 +866,7 @@ int mutt_decode_save_attachment (FILE * fp, BODY * m, char *path, 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; }