Configuring mutt to handle the same attachment differently in auto_view than in an attachment view -


i'd view text/html attachments inline auto_view. that's easy enough, w3m -dump invocation in .mailcap, , auto_view text/html in .muttrc.

the tricky part i'd still invoke browser session when view attachment explicitly. though had no -dump argument w3m mailcap entry.

i've tried effect 2 mailcap entries different flags, haven't had luck.

some fiddling , source got me answer question.

in mailcap file, can set 2 entries:

text/html; w3m -i %{charset} -t text/html; needsterminal; text/html; w3m -i %{charset} -dump -t text/html; copiousoutput; 

there 2 important parts here. first, copiousoutput flag indicates entry useful candidate auto_view. second, fact there entry above means non-auto_view uses (e.g. viewing attachment) try first.

so attachment views use first one, auto_view use second one. wanted.

source : http://www.mutt.org/doc/manual/manual-5.html#auto_view (see search order section)


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -