summaryrefslogtreecommitdiffstats
path: root/handler.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-07-26 17:08:07 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-07-26 17:08:07 +0000
commit19aeb698975267694f5b3ef03c259c09a96616d2 (patch)
tree24df84f2d3c4496e1c18365b7d52f9267348f0c7 /handler.c
parent15dd1d8f4baf025aadf52aafa5ecbf2519b2f8ea (diff)
When an attachment's content-disposition is different from "inline",
and if the user sets the use_cdisp option, don't auto_view this part.
Diffstat (limited to 'handler.c')
-rw-r--r--handler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/handler.c b/handler.c
index 39dfff94..39561e22 100644
--- a/handler.c
+++ b/handler.c
@@ -1324,7 +1324,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 (b, type))
+ if (mutt_is_autoview (b, type) && (b->disposition == DISPINLINE || !option (OPTUSECDISP)))
{
rfc1524_entry *entry = rfc1524_new_entry ();