X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=handler.c;h=fc8037279ca493f87a6e6c6fa38fb360f5f17def;hb=49081299c673ceebc38d9a4f0985608cb3aecfce;hp=4129fda38e6231eb9208430e3e4d20fa66abc339;hpb=23e6291cb5d5b4cd2008403d8b628007fd75ff23;p=apps%2Fmadmutt.git diff --git a/handler.c b/handler.c index 4129fda..fc80372 100644 --- a/handler.c +++ b/handler.c @@ -31,7 +31,6 @@ #include "mutt.h" #include "recvattach.h" #include "handler.h" -#include "rfc1524.h" #include "rfc3676.h" #include "keymap.h" #include "copy.h" @@ -840,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; } @@ -1057,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]; @@ -1094,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); } @@ -1170,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); } @@ -1321,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) {