Mutt
From MediaWiki
Contents |
Overview
Mutt is a console based mail client for UNIX systems.
Compile
Compile mutt-devel with the following options
# etc/pkgtools.conf 'mail/mutt-devel' => 'WITH_MUTT_MAILDIR_HEADER_CACHE=yes WITH_MUTT_SIDEBAR_PATCH=yes WITH_MUTT_GPGME=yes',
Configuration
Signature
Use random fortune signature.
folder-hook . 'set signature=fortune|'
SpamAssassin
macro index S "|/usr/local/bin/razor-report" macro index X "| spamassassin -r"
Colours
color normal default default color hdrdefault brightwhite default color quoted brightcyan default color signature red default color indicator black brightwhite color error brightred default color status brightwhite blue color tree white default # the thread tree in the index menu color tilde magenta default color message brightcyan default color markers brightcyan default color attachment brightmagenta default color search default green # how to hilite search patterns in the pager color body magenta default "(ftp|http)://[^ ]+" # point out URLs color body magenta default [-a-z_0-9.]+@[-a-z_0-9.]+ # e-mail addresses color underline brightgreen default color index cyan default '~N' # Hightlight new mails
GPG
GPG is a little tricky to setup. Install GnuPG from ports and generate your keys
- Copy /usr/local/share/examples/mutt/gpg.rc to $HOME/.muttrc/
- List your key ids
[buffy] ~> gpg2 --list-keys mail@shankerbalan.net Warning: using insecure memory! pub 1024D/4150573D 2008-07-06 uid Shanker Balan (Personal Use) <mail@shankerbalan.net> sub 2048g/A1F15114 2008-07-06
- Update muttrc to use gpg.rc' and your key
source ~/.mutt/gpg.rc # PGP set crypt_autosign=yes set pgp_sign_as=0x4150573D
With crypt_autosign=yes set, you need to key in your passphrase each time you send a mail.
Addons
URL View
- See UrlView on opening URLs with mutt.
MS Word
There are multiple ways to view MS .doc files under Mutt. AntiWord and Catdoc are two common applications to use. To have Mutt use either of these to view .doc files inline, update $HOME/.mailcap file as below:
- AntiWord
application/msword; antiword %s; copiousoutput
- Catdoc
application/msword; catdoc %s; copiousoutput