# A sample mutt configuration file. # # Author: Alessandro Dotti Contra # # Revision: 0.2 # #=============================================================================== # GLOBAL SETTINGS #=============================================================================== # mailbox type (mbox|MMDF|MH|Maildir) # set mbox_type = mbox # where mailboxes are stored # # this value can be used later prepending a '+' or '=' to the mailbox name # set folder = $HOME/Mail # spoolfile # set spoolfile = /var/mail/adotti # how frequently mailboxes are checked for new messages (in seconds) # set mail_check = 60 # move read messages from spoolfile # # if set to yes or ask-yes, you also need to define the mailbox where # messages must be saved # # set mbox = $HOME/Mail/read-messages # unset move # keep a copy of sent messages # set copy = yes # confirm messages deletetion # set delete = yes # confirm mailboxes creation # set confirmcreate = yes # confirm appending of messages to a mailbox # set confirmappend = yes # default charset # set charset = "ISO-8859-15" # qualify all local addresses # set use_domain # set the envelope from using the "From:" header # set envelope_from #=============================================================================== # PERSONAL INFORMATIONS #=============================================================================== # real identity # set realname = "Alessandro Dotti Contra" # name and email address (the From: header) # set from = "Alessandro Dotti Contra " # alternate email address (can be a regular expression) # alternates = "me@domain.tld,adotti@nowhere.local" # prepend dash delimiters to the signature # set sig_dashes = yes # the file with the signature # set signature = $HOME/profile/signature.adc #=============================================================================== # MAILBOXES RELATED SETTINGS #=============================================================================== set postponed = +Drafts # postponed messages set record = +Sent # sent messages # mailboxes to watch for new messages mailboxes +announce mailboxes +newsletter mailboxes `echo $HOME/Mail/lists/*` mailboxes `echo $HOME/Mail/projects/*` #=============================================================================== # COMPOSE OPTIONS #=============================================================================== # default editor # set editor = "vim" # ask for a Cc: email address(es) # unset askcc # ask for a Bcc: email adress(es) # unset askbcc # confirm if a message really had to be postponed # set postpone = ask-yes # recall postponed messages when composing a new email # set recall = ask-no # abort messages not modifed or without a subject # set abort_nosubject = ask-yes set abort_unmodified = ask-yes # generate the "Followup To:" header when replying to a *know* mailing # list # set followup_to # use the "Reply To:" header when replying to a message # set reply_to = ask-yes # prepend dashes ("--\n") to the signature # set sig_dashes # quote the original text when forwarding a message # unset forward_quote # include the original message in the reply # set include = yes # forward a message as attachment # set mime_forward = ask-no # custom headers # # the following headers will be added to any outgoing email # my_hdr X-Organization: none # spell checking (program and options) # set ispell = "/usr/bin/ispell" #=============================================================================== # DISPLAY OPTIONS #=============================================================================== # primary messages sorting method # # (date|date-sent|date-received|from|mailbox-order|score|size|subjects|to) # # the 'reverse-' prefix force the reverse sorting method # set sort = threads # secondary messages sorting method # # 'reverse-' and 'last-' prefixes are allowed # set sort_aux = date # file browser's sorting method # # (alpha|date|size|unsorted) # set sort_browser = alpha # alias browser's sorting method # # (address|alias|unsorted) # set sort_alias = alias # message's header to show # ignore * unignore Date: From: To: Cc: Bcc: Subject: Newsgroups: # header's order # hdr_order From: To: Cc: Bcc: Subject: Date: Newsgroups: # number of messages to be always shown in the index # set pager_index_lines = 10 # display the next message automatically when the current one is read # set pager_stop = yes # number of lines to be displayed between the pages of the message # set pager_context = 2 # use ascii chars to display threads # set ascii_chars # string that marks quoted text # set indent_string = "|" # use only maeningful headers (and not the subject) to group messages by # thread # set strict_threads # highlight wrapped lines # set markers # page scrolling method for messages index # # if set, the scrolling method is page based, else it's line based # unset menu_scroll # mark unread messages as old # unset mark_old # # ATTACHMENS HANDLING # # helper applications # set mailcap_path = ~/.mailcap:/etc/mailcap # auto display the following mime type attachments # auto_view text/html # save attachments with the message when sending an email # set fcc_attach # # MENU CONFIGURATION # (refer the the mutt's manual for a complete list of available options) # # folders browser # set folder_format = "%t %N %-40.40f (%10s) [%d]" # index menu # set index_format = "[%2M]%Z%{%b %d} %-15.15n (%4l) %s" # status bar # set status_format = "%f: %M Msgs [%n New - %o Unrd - %F Flag - %d Del - %p Post]" # pager's status line # set pager_format = "%C/%m %F: %s" # compose menu # set compose_format = "Compose [Approx. msg size %l Atts %a]" # attachments menu # set attach_format = "%u%D%l %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s]" set message_format = "%s" # alias menu # set alias_format = "%2f %t %-20a %r" #=============================================================================== # LOOK AND FEEL #=============================================================================== color normal white black color indicator black green color status white blue color markers white black color bold green black color hdrdefault green black color quoted yellow black color attachment yellow black color header cyan black ^From: color header cyan black ^Subject: color body brightblue black (http|https|ftp)://[\-\.\,/&%~_:?=\#a-zA-Z0-9]+ color body green black [\-\.\,/&%~_:?=\#a-zA-Z0-9]+\@[\-\.\,/&%~_:?=\#a-zA-Z0-9]+ color index green black ~P color index cyan black "~f root" color index yellow black ~F #=============================================================================== # HOOKS (see mutt's manual for further details) #=============================================================================== # folder hooks # # these hooks apply on a per folder basis # # the first rule should be the default to be applied folder-hook . set sort = threads folder-hook lists/* exec 'collapse-all' # send hooks # # these hooks apply when a message is sent # # the first rule should be the default to be applied send-hook . my_hdr From: Alessandro Dotti Contra send-hook "~C list" my_hdr From: Alex #=============================================================================== # ADDRESS BOOK(S) #=============================================================================== # the alias file (it needs to be "sourced" at mutt startup) # set alias_file = $HOME/profile/adc-addressbook.mutt source $HOME/profile/addressbook-adc.mutt # show the sender's name, as stored in my alias file, in the email index # set reverse_alias = yes # alias sorting method (address|alias|unsorted) # set sort_alias = alias # use an external program to provide a list of email addresses # set query_command = "abook --mutt-query '%s'" #=============================================================================== # MAILING LISTS #=============================================================================== # the addresses which belong to mailing lists # subscribe list@lists.somewhere.tld subscribe another-list@lists.anywhere.tld #=============================================================================== # PGP RELATED SETTINGS #=============================================================================== # There are a lot of configuration parameters that control the use of # PGP to sign/encrypt messages. Please refer to the Mutt manual for more # information. # do not attempt to sign all outgoing messages # unset crypt_autosign # do not attempt to encrypt all outgoing messages # unset crypt_autoencrypt # automatically encrypt replies to messages which are encrypted # set crypt_replyencrypt # automatically sign replies to messages which are signed # set crypt_replysign