summaryrefslogtreecommitdiffstats
path: root/handler.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-01-07 10:45:47 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-01-07 10:45:47 +0000
commitd084dc02709698b298f191947cbb42bb283250a0 (patch)
treece6107b9134d2717a1298f67c6ba9dc6a2b78255 /handler.c
parent246198ae90539dd2429032c1620044dde3d5176e (diff)
Updated implicit autoview handling from stable.
Diffstat (limited to 'handler.c')
-rw-r--r--handler.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/handler.c b/handler.c
index 3fda2c23..7392ea40 100644
--- a/handler.c
+++ b/handler.c
@@ -878,7 +878,7 @@ static void alternative_handler (BODY *a, STATE *s)
while (b)
{
snprintf (buf, sizeof (buf), "%s/%s", TYPE (b), b->subtype);
- if (mutt_is_autoview (buf))
+ if (mutt_is_autoview (b, buf))
{
rfc1524_entry *entry = rfc1524_new_entry ();
@@ -997,7 +997,7 @@ int mutt_can_decode (BODY *a)
char type[STRING];
snprintf (type, sizeof (type), "%s/%s", TYPE (a), a->subtype);
- if (mutt_is_autoview (type))
+ if (mutt_is_autoview (a, type))
return (rfc1524_mailcap_lookup (a, type, NULL, M_AUTOVIEW));
else if (a->type == TYPETEXT)
return (1);
@@ -1322,7 +1322,7 @@ void mutt_body_handler (BODY *b, STATE *s)
/* first determine which handler to use to process this part */
snprintf (type, sizeof (type), "%s/%s", TYPE (b), b->subtype);
- if (mutt_is_autoview (type))
+ if (mutt_is_autoview (b, type))
{
rfc1524_entry *entry = rfc1524_new_entry ();