Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
MuttNotes
Edit
PageHistory
Diff
Info
LikePages
!!! [HTML] [Email] If you actually want to read any [HTML] [Email] you get, you can get [Mutt] to delegate arbitrary [MIME] types to other programs (it will default to your pager for <tt>text/*</tt> types). Add the following line to your <tt>.mailcap</tt> file: <verbatim> text/html ; lynx -force_html %s </verbatim> A more "integrating" alternative is to add <tt>set implicit_autoview</tt> to your [.muttrc] and make the <tt>.mailcap</tt> line something like <verbatim> text/html ; lynx -force_html -dump %s ; copiousoutput </verbatim> This will cause [Mutt] to transparently invoke [Lynx] and display its output in the integrated pager for any [HTML] message. (<tt>set implicit_autoview</tt> enables this for all [MIME] types with a <tt>copiousoutput</tt> keyword.) Incidentally, [vilistextum | http://bhaak.dyndns.org/vilistextum/] is an excellent tool for such on-the-fly conversion of [HTML], as it launches and runs nearly instantly even on old and aging machines, where [Lynx] takes its sweet time. !!! Automating messages with [Mutt] If you want to send a message with Mutt with an attachment, like you would with mail(1), use: <verbatim> mutt -a $FILENAME -s $SUBJECT $TO < /dev/null </verbatim> cat(1)~ing a file into mutt doesn't seem to work the same way. [Mutt] (and most other command-line mail programs) take stdin(3) to be the body of the message. That won't work if you expect it to add all the nice [MIME] headers and stuff for attachments. !!! Forcing headers To have a more descriptive <tt>From:</tt> than just <tt>root</tt> when you happen to be mailing from that account (not something you should do habitually), add these settings to your [.muttrc]: <verbatim> my_hdr From: test@example.com set realname="Real Name" </verbatim> !!! Hooking up with Courier IMAP mailboxes If you use MailDir format mailboxes (for example, Courier IMAP) and you want to read them locally with [Mutt]: <verbatim> export MAIL=~/Maildir/ </verbatim> and insert the following line into [.muttrc]: <verbatim> set folder=~/Maildir/ </verbatim> ---- Part of CategoryMailNotes
One page links to
MuttNotes
:
Mutt