Mutt usage notes Information from http://www.devshed.com/Server_Side/Administration/Mutt/page4.html and http://www.mutt.org/doc/manual/ and http://www.math.fu-berlin.de/~guckes/mutt/setup.html Mutt comes with two main views, like pine: index view and pager view. Index is lots of messages; pager is individual messages, like you'd expect. Keys: where what's it do? a both creates an _alias to an email address b both _bounces a message c both views a different mailbox (_changes it, perhaps?) esc-c both _change to a folder in readonly mode esc-C both decode a message and _Copy it to a folder d both _delete the current message D index _Delete messages matching a pattern ^D both _Delete thread e both _edit the raw message f both _forwards a message F index mark message as important ^G input Abort h pager show complete _headers for the message j index moves one line up, like in vim k index moves one line down, like in vim l index show messages matching a pattern L both? _List reply, enhanced ^L index clear and redraw the screen m both composes a _message N index mark message as _New ^N both go to _Next thread o index change current sort _order O index reverse current sort _Order P both jump to _Parent message in thread ^P both jump to _Previous thread q pager closes message (_quits it) q both _quits. Presumably this means quit in pager goes to index. r both _replies to a message s both _saves the message esc-s both _saves a decoded version of the message t index toggle the _tag on a message T index _Tag messages according to a pattern ^T index unTag messages according to a pattern esc-t index toggle _tag on a thread u index _undelete message U index _Undelete messages according to a pattern v both _views an attachment esc-v index Change the view of this thread (collapse/expand) esc-V index Change the view of all threads (collapse/expand) x index abort changes and eXit z index moves one page up Z index moves one page down (capital Z is heavier?) enter index opens message - pager moves one page up space pager moves one page down tab both? move to next new message ? both gives you help. Lists all keybindings for the current menu. = or home index Jump to the first entry * or End index Jump to the last entry @ index show _author's full email address / index search esc-/ index reverse search | both asks for a unix command and _pipes the current or tagged msgs ! both asks for a unix shell command and executes it Index status flags: D deleted d _deleted attachments K contains a PGP public _key N message is _new O message is _old P message is _PGP encrypted r message has been _replied to S message is PGP _signed, and the signature is succesfully verified s message is PGP _signed ! message is flagged * message is tagged + message is to you and you only T message is to you, but also to or cc'ed to others C message is cc'ed to you F message is from you L message is sent to a subscribed mailing list Some of the status flags can be turned on or off using set-flag (default: w) clear-flag (default: W) Pager commands: S _skip beyond quoted text T _Toggle quoted text \ toggle search pattern coloring ^ jump to the top of the message $ jump to the bottom of the message Compose options: a attach-file attach a file A attach-message attach message(s) to the message b edit-bcc edit the Bcc field c edit-cc edit the Cc field d edit-description edit description on attachment D detach-file detach a file f edit-fcc specify an ``Fcc'' mailbox ESC f edit-from edit the From field ^F forget-passphrase whipe PGP passphrase from memory i ispell check spelling (if available on your system) ESC k attach-key attach a PGP public key p pgp-menu select PGP options (``i'' version only) P postpone-message postpone this message until later q quit quit (abort) sending the message r edit-reply-to edit the Reply-To field s edit-subject edit the Subject t edit-to edit the To field w write-fcc write the message to a folder y send-message send the message configuration options set folder=~/mail sets the default folder to ~/mail set mbox=~/mail/inbox sets the inbox to ~/mail/inbox set record=~/mail/outbox sets the outbox to ~/mail/outbox set postponed=~/mail/postponed location of postponed messages set alias_file=~/mail/aliases.mutt location of alias file also add source ~/mail/aliases.mutt to get the information set postpone=ask-yes ask before postponing set delete=ask-yes ask before deleting set quit=yes don't ask before quitting When composing: set askcc show CC field set askbcc show BCC field unset edit_headers don't let me edit headers while composing set include=yes include body of previous msg in reply set fast_reply skip prompts when replying set reply_to=yes use Reply-To field for addresses Headers: ignore * ditch all headers unignore date from: to cc subject organization show these Color: first color is foreground; second is background color index brightwhite default ~N index: color new msgs bold color status brightblue magenta color status line ugly color signature brightyellow black color signatures color attachment brightyellow default color attachments color search brightred default color search commands color quoted brightyellow default color replies color quotedl magenta default color list replies color body cyan default "((ftp|http|https)://|news:)[^ >)\"\t]+" # URLs color body cyan default "[-a-z_0-9.+]+@[-a-z_0-9.]+" # email Index formatting: set index_format="%4C %Z %{%b %d} %-15.15L (%4l) %s" translates to: set index_format="number status date sender lines subject" set attribution="%n, who happens to be smarter than you, thinks:" sets the inserted reply message set forward_format="Fw: %s" adds Fw: to the subject of forwards Mailing lists: Mutt has two relevant commands: lists and subscribe. lists is used to tell mutt about lists to which you aren't subscribed--those to which you can send but from which you cannot receive. Subscribe is used for lists to which you are actually subscribed. It is important that mailing list addresses be nonambiguous, as they're how mutt differentiates between lists. L replies directly to the list, rather than to the private sender of a list message. Threading: See the commands in the command table. Key mapping: bind index c mail # "c" -> new message in index bind index m change-folder # "m" -> switch mailbox in index bind pager c mail # "c" -> new message in pager bind pager m change-folder # "m" -> switch mailbox in pager bind pager / search # bind / to search as in vim Macros: macro index \cu |urlview\n # "^u" -> launch urlview in index macro pager \cu |urlview\n # "^u" -> launch urlview in pager These let you harvest URLs and lynx them by pressing ^u Folder hooks: folder-hook =inbox set sort=date-sent # sort inbox by date folder-hook =lists/melonfire-dev set sort=threads # sort mailing lists by thread these change the behavior for given folders--inbox sorted by date, lists/melonfire-dev by threads Other useful things: set hostname="melonfire.com" attaches a default hostname to unqual addrs set mail_check=60 # check mail every 60 seconds set timeout=30 # 30 seconds inactivity before checking mail set beep_new # beep if new mail comes in mailboxes =lists/melonfire-dev # mailboxes which get new mail mailboxes =irc-friends specify which mailboxes get new mail if you're, say, using procmail. set alternates="\^(\ (icarus@somehost\\.com)\ |(i@someotherhost\\.com)\ )$" # these are all my addresses i.e. have it treat messages from you carefully set from="The Geek Prince " # reset From: field to this my_hdr Weather: Cloudy with prospects of rain # custom header my_hdr Web_Ad: Visit us online at http://www.melonfire.com/ # custom header allows you to generate new and/or "fake" headers set user_agent # add User-Agent: header (tell 'em it's mutt) Using tags: T set tags by pattern t set tags by hand ;command do command to all tagged msgs Aliasing: alias hae "Hollis A. Easter" alias hae Hollis Easter # no quoting if no special chars alias h hae # shortened alias for hae alias moco "Mixed Company": blah, dmister, easter; #semi-delimited list Limiting: l limits the index to messages containing note that you can't do this to repeatedly select.