# Boolean Variables: # set foo # or unset foo # or toggle foo # or reset foo (reset to compile time default) # or set nofoo or set invfoo (inverts actual value) set hostname=minisol set mbox_type=Maildir set spoolfile="~/Maildir/" set folder="~/Maildir" set mask="!^\\.[^.]" set record="+.Sent" set postponed="+.Drafts" set sendmail="/usr/bin/nbsmtp -d gregoryjerome.com -h mail.gregoryjerome.com -f soljer@gregoryjerome.com" mailboxes `echo -n "+ "; find ~/Maildir -type d -name ".*" -printf "+'%f' "` # Aliases give you a basic addressbook. Use "A" to add a message's sender to # the aliases file, so you don't have to remember their address. # File to use for saving new aliases set alias_file=~/.mutt/aliases # File to search for aliases in source ~/.mutt/aliases set allow_8bit # use QP or Base64 if unset. unset arrow_cursor # "->" as cursor (faster on slow networks). unset ascii_chars # Use ASCII chars for threading arrows. unset askbcc # ask to fill out Bcc on mesg-send? unset askcc # ask to fill out CC on mesg-send? set attach_split # handle every single attachment instead of concat set attribution="* %n (%a) wrote:" set autoedit # start editor without asking for to, subject,... set auto_tag # if something is tagged, run commands on tagged msgs. set beep # beep on certain user errors and other errors set beep_new # beep on new mail unset bounce_delivered # unset => remove Delivered-To: when bouncing. set charset="iso-8859-1" set check_new # search for new messages in maildir/MH folders. unset collapse_unread # don't collapse threads with unread mails unset confirmappend # prompt for confirm when appending message to ex. mbox set confirmcreate # prompt for confirm when saving to non existing mbox set copy # always keep a copy of my mails set date_format="!%a %b %d, %Y at %I:%M:%S%p %Z" set default_hook="~f %s | ~t %s" set delete=yes # ask for confirmation when deleting messages? set delete_untag # untag messages when marking them for deletion. set edit_headers # put headers in editor when composing messages set editor="vim '+:5'" # Vim, of course set encode_from # use Quoted-Printable, if ^From in a mail. set fast_reply # do not ask for to, subject,... when replying. set fcc_attach # store attachments too when doing a Fcc set fcc_clear # FCCs will be stored unencrypted and unsigned # set followup_to # Add Mail-Followup-To header. #unset force_name # outgoing mail to be saved in folder of "login name" # set forward_decode # decode messages when forwarding without MIME #unset forward_decrypt # decrypt PGP message, when mime_forward and !mime_fw_d # set forward_quote # quote forwarded message, if not $mime_forward # set hdrs # nohdrs implies not to write my_hdr into mail. #unset header # quote full header on reply set help # show help in first line of the display unset hidden_host # when set, skip the host name part of hostname # set honor_followup_to # Mail-Followup-To header is honored? #unset ignore_list_reply_to # ignore Reply-To pointing back to mailinglist # set implicit_autoview # use autoview, if a "copiousoutput" is in mailcap. set include=yes # quote message, when replying set ispell="/usr/bin/aspell --mode=email check" # set mailcap_sanitize # remove ugly chars from mailcap % expands. set mail_check=5 set mark_old # mark new articles as old, when leaving mbox unset markers # put a '+' at the beginning of wrapped lines. set menu_scroll # scroll on last line of menu (set) or do a nextpage? unset meta_key # Don't interpret Alt-x as ESC x #unset metoo # should we keep ourselves in group replies? # set mh_purge # remove messages marked as deleted from MH folders. #unset mime_forward_decode # decode messages when forwarding with MIME set move=no # Move mail-spool to $mbox? set pager_index_lines=9 # number of lines to see from the index set pager_stop # Don't jump to next message at end of message. unset pgp_autosign set pgp_replysign # always sign reply to signed message set pgp_replyencrypt # always encrypt reply to encrypted message set pgp_replysignencrypted # yeah unset pgp_verify_sig # always verify pgp signatures unset pgp_show_unusable # Show non-usable keys on the PGP key selection menu? #unset pipe_decode # Weed headers and PGP-decode message before piping # set pipe_split # split tagged messages (or don't) when using "|" set print=ask-yes # ask me to print unset prompt_after # display prompt after exit from pager unset read_only # folders not read only set realname="Sol Jerome" #unset reply_self # if unset, a reply to yourself implies reply to other # set resolve # go to next undeleted message after modifying actual #unset reverse_alias # use realname from reverse alias lookup #unset reverse_name # Set "From" to address, where replied mail was sent to #unset save_address # Use full mail adress (with domain) as default folder. #unset save_empty # remove mailbox when last message is removed. #unset save_name # Fcc, if ~/Mail/ exists. #unset score # don't do scoring #unset sig_dashes # Don't prepend "-- \n" to the signature # set smart_wrap # wrap long lines at word boundary. set sort_re # set: only put a child in a thread, if starts with Re: set sort_aux=date-received # Sort threads by date received. set status_on_top # status line at the top or button? unset strict_threads # thread only by In-Reply-To/References or by Subject. unset thorough_search # MIME decode before searching. set tilde # Internal Pager: ~~~~ at and of message? unset uncollapse_jump # don't move pointer, when uncollapsing thread set user_agent # Create User-Agent: Mutt/ header. set wait_key # Only "press a key" if return value non-zero set wrap_search # Wrap search to top/bottom. # Quadoptions # set foo=yes # or set foo=ask-yes # or set foo=no # or set foo=ask-no # or reset foo (reset to compile time default) #set abort_nosubject=no # Abort, if message has no subject. #set abort_unmodified=yes # Abort, if message wasn't edited. #set honor_followup_to=yes # Ask whether to honor Mail-Followup-To header #set mime_forward=ask-no # use MIME when forwarding mails. #set postpone=ask-yes # ask for postponing when doing an Abort. #set quit=yes # ask before quitting. #set recall=no # ask for using postponed message. #set reply_to=yes # Use or ignore Reply-To. #set send_charset="us-ascii:iso-8859-1:utf-8" #set editor="vim '+/^$'" #set history=50 set indent_str="> " # change this and I'll kill you! ;-) #set mbox=~/mail/Inbox # Where is my main mailbox (where should read mail go) #set pager_context=3 #set pgp_timeout=1000 # number of seconds to cache passphrase #set postponed=~/mail/postponed #set quote_regexp="^( {0,4}-?[>|:%]| {0,4}[a-z0-9]+[>|]+)+" #set read_inc=20 #set reply_regexp="^((re|RE|SV|Re|r e|aw) ?:[ \t]*)*" #set simple_search="~f %s | ~C %s | ~s %s" # default pattern (Fr|To|Cc|Su) #set sort_alias=alias #set sort_browser=alpha #set spoolfile=~/mail/Inbox #set status_chars="-*%A" # status of mbox (unchanged, changed, readonly, attach) #set tmpdir="/tmp" #set to_chars=" +TCFL" #default (Not to me, To me, CC me, From me, mailing list) #set to_chars=" +TCF " #default (Not to me, To me, CC me, From me) #set write_inc=10 # number - display increment count for every n-th mail ## ====================================================================== ## Format Strings: ## ====================================================================== ## forward_format - format the text used in/x-tar-gz application/pgp-signature image/* set forward_format="(forw) [%a: %s]" set index_format="%4C %Z %[!%d/%b] %-17.17F (%3l) %s" set pager_format="%S [%C] %n (%l) %s" #set folder_format="%F %-8.8u %-8.8g %d %8s %N %f" set folder_format="%F %d %8s %N %f" set status_format="-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b? %?l? %l?]---(%s/%S)-%>-(%P)---" ## ======================================================================== ## BIND - bind commands to keys. ## ======================================================================== source ~/.mutt/bindings ## ============= ## spam handlers ## ============= #macro index S "get_from.pl >> ~/.procmail/spammers"s="SPAM\n" #macro pager S "get_from.pl >> ~/.procmail/spammers"s="SPAM\n" #macro index X "get_from.pl --domain >> ~/.procmail/spammers"s="SPAM\n" #macro pager X "get_from.pl --domain >> ~/.procmail/spammers"s="SPAM\n" #--------------------------------------------------------------------------- #macro index F "get_from.pl >> ~/.procmail/friends" #macro pager F "get_from.pl >> ~/.procmail/friends" #macro index \cb "sa-learn --spam --no-sync"s="SPAM\n" #macro pager \cb "sa-learn --spam --no-sync"s="SPAM\n" #macro index \cg "sa-learn --ham --no-sync"s="Inbox\n" #macro pager \cg "sa-learn --ham --no-sync"s="Inbox\n" #--------------------------------------------------------------------------- ## ============================================== ## Bindings for editing and reloading the .muttrc ## ============================================== macro generic ,vu ":source ~/.muttrc\r" ## These run fetchmail (or wake up the daemon) macro index G "!fetchmail -a -m 'procmail -d %T'\r" macro pager G "!fetchmail -a -m 'procmail -d %T'\r" ## ================== ## Bindings for index ## ================== #bind index P recall-message #bind index s save-message #bind browser x ceply #bind pager b bounce-message #bind pager f forward-message #bind pager m mail #bind pager g group-reply #bind pager j next-line #bind pager k previous-line bind pager : enter-command #bind pager p previous-undeleted #bind pager n next-undeleted #bind pager \n next-new #bind compose \n send-message #bind compose s send-message #bind pager ,p print-message #macro pager J "!gpg --keyserver wwwkeys.eu.pgp.net --recv-key " "Get PGP Key" #macro pager K "!gpg --lsign-key " "Sign PGP Key" #macro pager "i" "?" #macro index "i" "?" #macro compose S "Fgpg --clearsign\ny" "clearsign message" # run the little brother database query binary set query_command = "lbdbq %s" ## ================================================== ## Colorizing the body of messages (ie in the pager) ## ================================================== source ~/.mutt/colors # Headers to ignore/see # Ignore everything but the really important lines: #ignore * #unignore from: date subject to cc reply-to: #unignore organization organisation #unignore user-agent: x-agent: x-mailer: x-newsreader: #unignore newsgroups: posted-to: x-spam-rule: X-Spam-Status: X-SpamProbe: # These can provide amusement #unignore X-Fnord: X-WebTV-Stationery: X-Message-Flag: ## ======================================================================== ## AUTO_VIEW - tell mutt which "content types" to view with ## the command given in the $HOME/.mailcap file. ## ======================================================================== auto_view text/html text/enriched application/x-gunzip application/postscript /gif application/x-tar-gz application/pgp-signature image/* alternative_order text/plain text/html text # I like plaintext more than html # ordering of headers in the pager #unhdr_order * #hdr_order Date: From: To: Cc: X-Newsreader: X-Mailer: Organization: Organisation: User-Agesort=date-received #folder-hook "sent" set sort=reverse-date folder-hook . set 'sort=threads' folder-hook "sent" set sort=reverse-date folder-hook . 'macro index d "=Trash"' folder-hook =trash 'macro index d ' #save-hook .* =lists/%B #folder-hook . set signature=~/.signature #folder-hook . save-hook .* =lists/%B #folder-hook . unmy_hdr * #folder-hook . my_hdr From: Tom Gilbert #folder-hook . my_hdr X-Editor: Vim http://www.vim.org/ #folder-hook . my_hdr X-Info: http://www.linuxbrit.co.uk #send-hook . my_hdr X-Operating-System: Linux/`uname -r` (`uname -m`) #send-hook . my_hdr X-Uptime: \`uptime\` #folder-hook . set signature="~/.signature" #folder-hook crackmonkey my_hdr From: Tom Gilbert #folder-hook crackmonkey set signature="~/.signature.crackmonkey" #folder-hook . set pgp_create_traditional=no #folder-hook crackmonkey set pgp_create_traditional=yes ## "lists" adds a list of mailing lists addresses ## so mutt knows about these for showing them in the folder indes ## and to allow replying to them with the command "list-reply". ## The first part of the address (up to the @) should be used here. #unlists * # remove old entries first #lists `cd ~/mail/lists && echo *` #unsubscribe * #subscribe `cd ~/mail/lists && echo *` ## "mailboxes" defines the list of folders to be checked for new mail ## Mutt both can show the number of mailboxes with new mail in the index and ## you can cycle through these after giving the "change-folder" command. :-) #mailboxes ! #mailboxes +SPAM #mailboxes `for file in ~/mail/lists/*; do echo -n "+lists/$(basename $file) "; done`