X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=handler.c;h=fc8037279ca493f87a6e6c6fa38fb360f5f17def;hp=ab47a382718b0d2d394eb517a4d4b20d3068ccaa;hb=28dbd9fbf148be07366048163fffbf7f55a57def;hpb=56025510c87ad388a257fcbd8b369b0edcf97c34 diff --git a/handler.c b/handler.c index ab47a38..fc80372 100644 --- a/handler.c +++ b/handler.c @@ -23,7 +23,6 @@ #include #include #include -#include #include @@ -32,7 +31,6 @@ #include "mutt.h" #include "recvattach.h" #include "handler.h" -#include "rfc1524.h" #include "rfc3676.h" #include "keymap.h" #include "copy.h" @@ -226,7 +224,6 @@ void mutt_decode_base64 (STATE * s, long len, int istext, iconv_t cd) buf[i++] = ch; } if (i != 4) { - debug_print (2, ("didn't get a multiple of 4 chars.\n")); break; } @@ -842,12 +839,12 @@ static int alternative_handler (BODY * a, STATE * s) while (b) { snprintf (buf, sizeof (buf), "%s/%s", TYPE (b), b->subtype); if (mutt_is_autoview (b, buf)) { - rfc1524_entry *entry = rfc1524_new_entry (); + rfc1524_entry *entry = rfc1524_entry_new(); if (rfc1524_mailcap_lookup (b, buf, entry, M_AUTOVIEW)) { choice = b; } - rfc1524_free_entry (&entry); + rfc1524_entry_delete(&entry); } b = b->next; } @@ -1059,7 +1056,7 @@ static int multipart_handler (BODY * a, STATE * s) static int autoview_handler (BODY * a, STATE * s) { - rfc1524_entry *entry = rfc1524_new_entry (); + rfc1524_entry *entry = rfc1524_entry_new(); char buffer[LONG_STRING]; char type[STRING]; char command[LONG_STRING]; @@ -1096,7 +1093,7 @@ static int autoview_handler (BODY * a, STATE * s) if ((fpin = safe_fopen (tempfile, "w+")) == NULL) { mutt_perror ("fopen"); - rfc1524_free_entry (&entry); + rfc1524_entry_delete(&entry); return (-1); } @@ -1172,7 +1169,7 @@ static int autoview_handler (BODY * a, STATE * s) if (s->flags & M_DISPLAY) mutt_clear_error (); } - rfc1524_free_entry (&entry); + rfc1524_entry_delete(&entry); return (rc); } @@ -1323,13 +1320,13 @@ int mutt_body_handler (BODY * b, STATE * s) snprintf (type, sizeof (type), "%s/%s", TYPE (b), b->subtype); if (mutt_is_autoview (b, type)) { - rfc1524_entry *entry = rfc1524_new_entry (); + rfc1524_entry *entry = rfc1524_entry_new(); if (rfc1524_mailcap_lookup (b, type, entry, M_AUTOVIEW)) { handler = autoview_handler; s->flags &= ~M_CHARCONV; } - rfc1524_free_entry (&entry); + rfc1524_entry_delete(&entry); } else if (b->type == TYPETEXT) { if (ascii_strcasecmp ("plain", b->subtype) == 0) {