Penguin
Annotated edit history of MuttNotes version 1, including all changes. View license author blame.
Rev Author # Line
1 AristotlePagaltzis 1 !!! [HTML] [Email]
2
3 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:
4
5 <verbatim>
6 text/html ; lynx -force_html %s
7 </verbatim>
8
9 A more "integrating" alternative is to add <tt>set implicit_autoview</tt> to your [.muttrc] and make the <tt>.mailcap</tt> line something like
10
11 <verbatim>
12 text/html ; lynx -force_html -dump %s ; copiousoutput
13 </verbatim>
14
15 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.)
16
17 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.
18
19 !!! Automating messages with [Mutt]
20
21 If you want to send a message with Mutt with an attachment, like you would with mail(1), use:
22
23 <verbatim>
24 mutt -a $FILENAME -s $SUBJECT $TO < /dev/null
25 </verbatim>
26
27 cat(1)~ing a file into mutt doesn't seem to work the same way.
28
29 [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.
30
31 !!! Forcing headers
32
33 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]:
34
35 <verbatim>
36 my_hdr From: test@example.com
37 set realname="Real Name"
38 </verbatim>
39
40 !!! Hooking up with Courier IMAP mailboxes
41
42 If you use MailDir format mailboxes (for example, Courier IMAP) and you want to read them locally with [Mutt]:
43
44 <verbatim>
45 export MAIL=~/Maildir/
46 </verbatim>
47
48 and insert the following line into [.muttrc]:
49
50 <verbatim>
51 set folder=~/Maildir/
52 </verbatim>
53
54 ----
55 Part of CategoryMailNotes