with the <tt/-B8BITMIME/ flag when sending 8-bit messages to enable ESMTP
negotiation.
+<sect2>use_cdisp<label id="use_cdisp">
+<p>
+Type: boolean<newline>
+Default: unset
+
+When this option is set, mutt will restrict the auto_view feature to
+body parts which carry a content-disposition field with the value
+inline, or no such field.
+
<sect2>use_domain<label id="use_domain">
<p>
Type: boolean<newline>
/* 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 ();
{ "tmpdir", DT_PATH, R_NONE, UL &Tempdir, 0 },
{ "to_chars", DT_STR, R_BOTH, UL &Tochars, UL " +TCF" },
{ "use_8bitmime", DT_BOOL, R_NONE, OPTUSE8BITMIME, 0 },
+ { "use_cdisp", DT_BOOL, R_NONE, OPTUSECDISP, 0 },
{ "use_domain", DT_BOOL, R_NONE, OPTUSEDOMAIN, 1 },
{ "use_from", DT_BOOL, R_NONE, OPTUSEFROM, 1 },
{ "user_agent", DT_BOOL, R_NONE, OPTXMAILER, 1},
OPTTILDE,
OPTUNCOLLAPSEJUMP,
OPTUSE8BITMIME,
+ OPTUSECDISP,
OPTUSEDOMAIN,
OPTUSEFROM,
OPTWAITKEY,
{
PARAMETER *parms;
- if (!mutt_strncasecmp ("inline", s, 6))
- ct->disposition = DISPINLINE;
+ if (!mutt_strncasecmp ("attach", s, 6))
+ ct->disposition = DISPATTACH;
else if (!mutt_strncasecmp ("form-data", s, 9))
ct->disposition = DISPFORMDATA;
else
- ct->disposition = DISPATTACH;
+ ct->disposition = DISPINLINE;
/* Check to see if a default filename was given */
if ((s = strchr (s, ';')) != NULL)