Under Development
stars

MIME & Attachments#

Commands for MIME type handling, auto-view, attachment counting, and content preferences.

:alternative-order#

Set the preference order for viewing multipart/alternative messages.

  • alternative-order <type> [<type> ...] β€” list types in order of preference

alternative-order text/plain text/enriched text/html

:unalternative-order#

Remove types from the preference order.

  • unalternative-order * β€” reset to default

  • unalternative-order <type> β€” remove a specific type

unalternative-order *

:auto-view#

Automatically display MIME types inline using a mailcap entry.

  • auto-view <type> [<type> ...] β€” add types for inline display

auto-view text/html
auto-view text/html application/pdf text/calendar
auto-view application/pgp-encrypted

:unauto-view#

Remove types from the auto-view list.

  • unauto-view * β€” remove all

  • unauto-view <type> β€” remove a specific type

unauto-view *
unauto-view text/html

:attachments#

Define rules for how NeoMutt counts attachments (affects %X, %Q, %q expandos).

  • attachments +<disposition> <type> β€” count a type as an attachment

  • attachments -<disposition> <type> β€” don’t count a type

  • attachments ? β€” show current rules

Dispositions: I (inline) or A (attached).

attachments +A */.*
attachments +I text/plain
attachments -A text/x-vcard
attachments -A message/external-body
attachments -I message/external-body
attachments ?

See also

$index_format

:unattachments#

Remove attachment counting rules.

  • unattachments * β€” remove all rules

  • unattachments +A <type> β€” remove a specific rule

unattachments *
unattachments +A text/x-vcard

:mime-lookup#

Tell NeoMutt to look up mailcap handlers for specific MIME types via the mailcap file.

  • mime-lookup <type> [<type> ...]

mime-lookup application/octet-stream

:unmime-lookup#

Remove custom MIME-lookup rules.

  • unmime-lookup * β€” remove all

  • unmime-lookup <type> β€” remove a specific type

unmime-lookup *

:mailto-allow#

Permit specific header fields to be set by mailto: URLs.

  • mailto-allow * β€” allow all headers

  • mailto-allow <field> [<field> ...] β€” allow specific headers

mailto-allow subject body cc
mailto-allow in-reply-to

:unmailto-allow#

Disallow headers in mailto: URL processing.

  • unmailto-allow * β€” disallow all headers

  • unmailto-allow <field> β€” disallow a specific header

unmailto-allow *
unmailto-allow body