set realname='Don Armstrong' source ~/.mail_aliases set alias_file=~/.mail_aliases source /usr/lib/mutt/source-muttrc.d| set abort_nosubject=no set autoedit unset beep set bounce=yes unset bounce_delivered set collapse_unread unset confirmappend unset confirmcreate set delete=yes set edit_headers set encode_from set folder = "~/Mail" set mime_forward set from = "Don Armstrong " unset help set header_cache = ~/.mutt/header_cache set hide_limited set history = 20 set ignore_list_reply_to set implicit_autoview set index_format="%4C %Z %[!%k:%M %m.%d.%y] %-15.15F (%?M?C%3M&%4c?) %?H?[%H] ?%s" set mailcap_path ="/etc/mailcap" unset maildir_trash unset mark_old set narrow_tree set pager_context = 2 set pager_stop = yes set postpone set quit = ask-yes set record="~/Mail/outbox" set reverse_alias = yes set save_history = 5 unset sig_dashes unset mark_old set sort_re # set: only put a child in a thread, if starts with Re: unset status_on_top # status line at the top or button? unset strict_threads # thread only by In-Reply-To/References or by Subject. set suspend # Ctrl-Z is able to suspend mutt. set thorough_search # MIME decode before searching. unset tilde # Internal Pager: ~~~~ at and of message? unset uncollapse_jump # don't move pointer, when uncollapsing thread unset use_8bitmime # run sendmail 8.8.x with -B8BITMIME to enable 8bit set use_domain # add $domain to all addresses without @host set use_from # generate a "From:" header (unless my_hdr From:) #unset use_ipv6 # Only use IPv4 address resolution. set user_agent # Create User-Agent: Mutt/ header. unset wait_key # Only "press a key" if return value non-zero set weed # weed headers, when forwarding with forward_decode set wrap_search # Wrap search to top/bottom. unset write_bcc # send Bcc: line to $sendmail set header_cache = ~/.mutt/header_cache set abort_nosubject=no # Abort, if message has no subject. set abort_unmodified=no # Abort, if message wasn't edited. set copy=yes # ask to save a copy of outgoing message? set delete=yes # ask for confirmation when deleting messages? set honor_followup_to=ask-yes # Ask whether to honor Mail-Followup-To header. set include=yes # quote message, when replying set mime_forward=ask-yes # use MIME when forwarding mails. set mime_forward_rest=ask-yes # forward attachments w/o autoview from attmenu set move=no # Move mail-spool to $mbox? set postpone=ask-yes # ask for postponing when doing an Abort. set print=ask-yes # ask whether you really want to print. set quit=yes # ask before quitting. set recall=no # don't ask for using postponed message. set reply_to=ask-yes # Use or ignore Reply-To. set certificate_file=~/.mutt/ca-certificates set history=200 # Size of the history buffer set pager_context=0 # number of lines, to display twice on PgUp/Down set pager_index_lines=6 # add small message index at top of pager (4) set read_inc=10 # Mutt will notify when reading mailbox messages set sendmail_wait=0 # >0 (wait seconds), 0 (forground), <0 (background) set sleep_time=2 # pause (in seconds) while showing info messages set sort=threads # sorting the mails in threads set sort_aux=date-received # sorting the threads set sort_browser=alpha set sort_alias=alias set display_filter="" # pipe message through this filter before displaying set editor="~/bin/sane_editor" set folder=~/Mail # where are the mailboxes (+ and = are shortcuts) set from="" # From: address (see send-hook my_hdr From) set mbox=+inbox # not used if "set move=no" set pager=builtin # internal pager: "builtin" or e.g. "less -e" set postponed=+postponed # folder for postponed messages set print_command="sed s/\f// | a2ps -2 -g --strip 1 -Email" set query_command="lbdbq %s" # query tlr's little brothers database. set record="~/Mail/outbox" # Don't save a copy of outgoing messages (Fcc) reset shell # Take shell from /etc/passwd set signature='~/.signature' # Signature (See send-hook!) set spoolfile=+INBOX # Maildir incoming file (~/Mail/incoming) set narrow_tree=yes set attach_sep="\n" # Separator to add between tagged attachements set charset="utf-8" # Charset of Terminal (for display) set send_charset="utf-8" # Charsets for outgoing messages. reset escape # ESC-char for internal editor (use default). reset hostname # FQDN (use default). set indent_string="> " # Quoting mails with this string. set mh_seq_flagged="flagged" # Name of MH sequence used for flagged msgs. set mh_seq_replied="replied" # Name of MH sequence used for replied msgs. set mh_seq_unseen="unseen" # Name of MH sequence used for unseen msgs. set simple_search="~f %s | ~C %s | ~s %s" # default pattern (Fr|To|Cc|Su) set status_chars="-*%A" # status of mbox (unchanged, changed, readonly, attach) set to_chars=" +TCF " # no to me, only to me, not only to me, Cc: to me, # from me, to subscribed mailinglist. set mbox_type=Maildir alternates "\^(\ ((don(\\+.*)?@(.*\\.)?(donarmstrong|anylevel|oneinfinity)\\.(com|org|net))\ |(don(\\+.*)?@(.*\\.)?(rzlab|pellam)\\.ucr\\.edu)\ |(don(\\+.*)?@(.*\\.)?debian\\.org)\ |donarm(\\+.*)?@(.*\\.)?illinois\\.edu)\ ))$" # alternate usernames set gecos_mask="^[^,]*" # Parse the GECOS field from passwd file. set quote_regexp="^( {0,5}[>|:%]| {0,5}[a-z0-9]+[>|]+)+" # for color quotes set reply_regexp="^((re(\\^[0-9])? ?:|a(nt)?w(ort)?:|wg:|\\(fwd\\))[ \t]*)*" # Subject prefixes (removed on answering and threading) #set reply_regexp="^(re|aw):[ \t]+" # Default set date_format="!%a %b %d, %Y at %I:%M:%S%p %Z" # control output of %d in index_format. strftime(3) # here: Monday Dec 06, 1997 at 08:30:42pm CET set forward_format="(fwd) %s" # subject of forwarded mails spam 'X-Spam-Level: \*\*\*\*\*\*\*\*' 8 spam 'X-Spam-Level: \*\*\*\*\*\*' 6 spam 'X-Spam-Level: \\*\\*\\*' 3 spam 'X-Spam-Level: \*\*' 2 spam 'X-Spam-Level: \*' 1 set index_format="%4C %Z %[!%k:%M %m.%d.%y] %-15.15F (%?M?C%3M&%4c?) %?H?[%H] ?%s" set message_format="%-.16n: %s" # string for message/rfc822 in attachment list set pager_format="-%Z- %C/%m [%[%H:%M]] %-17.17n %s" set post_indent_string="" # Footer (after quotes, before signature). set attribution='On %{%a, %d %b %Y}, %n wrote:\n' set folder_format="%3C %t%N %f" set compose_format="-- %v-- Compose [Approximate Message Size: %l Attachments: %a]%>-" # # Pretty Good Privacy (PGP): # set pgp_ignore_subkeys # On OpenPGP keys only show the main key, not the sub. set pgp_autosign # pgp sign every outgoing mail. (send-hook?) unset pgp_autoencrypt # pgp encrypt every outgoing mail. (send-hook?) set pgp_create_traditional=no # Use old-style PGP? (don't do it!) set pgp_replyencrypt # Encrypt replies on encrypted mail set pgp_replysign # Sign replies on signed mail set pgp_replysignencrypted # Sign replies on encrypted mail unset pgp_retainable_sigs # disable retainable signatures. set pgp_verify_sig=yes # ask me whether I want to check a pgp signature set pgp_timeout=7200 # forget PGP passphrase after 7200 seconds (=2 hours) set pgp_strict_enc # allway use QP enc. with PGP. unset pgp_long_ids # display 64bit PGP key-ids (don't change this!) set pgp_show_unusable # show unusable PGP keys in menu set pgp_use_gpg_agent # Use gpg_agent set pgp_entry_format="%4n %t%f %[%y/%m/%d] %4l/0x%k %-4a %2c %u" set pgp_sort_keys=trust set dsn_notify="failure,delay" set dsn_return="hdrs" unscore * unset score # turn off scoring set score_threshold_delete=-1 # mark messages with score <=value deleted set score_threshold_flag=9999 # mark messages with score >=value flagged set score_threshold_read=-1 # mark messages with score <=value read unmy_hdr * auto_view text/richtext text/html text/x-sgml text/x-vcard text/x-sh \ text/x-csrc text/tex text/-xtex text/english \ application/x-tex application/x-dvi \ application/x-gzip-dvi application/x-diff-gzip application/x-gzip \ application/x-gunzip application/x-bzip2 \ application/x-cpio application/x-gtar \ application/x-tar application/x-tar-gz application/x-rar-compressed \ application/x-zip-compressed application/zip application/x-csh \ application/x-sh application/x-script application/x-shellscript \ application/x-latex application/x-tex application/x-shar \ application/x-troff application/x-troff-man application/x-troff-me \ application/x-pgp-message application/msword \ application/ms-tnef application/ms-word application/rtf \ application/octet-stream application/x-tcl application/x-perl \ application/x-debian-package message/partial alternative_order text/enriched text/plain text/html # # monochrom terminals: # (none, bold, underline, reverse, standout) # # object attribute # mono normal none # normal text mono indicator reverse # actual message mono tree none # thread arrows mono status reverse # status line mono error bold # errors mono message none # info messages mono quoted bold # quoted text mono signature none # signature mono attachment underline # MIME attachments mono search reverse # search matches mono tilde none # ~ at bottom of msg mono markers bold # + at beginning of wrapped lines mono hdrdefault none # default header lines mono bold bold # hiliting bold patterns in body mono underline underline # hiliting underlined patterns in body # # object attribute RegExp # mono header bold "^(from|subject):" #mono body underline "((ftp|http|https)://|news:)[^ >)\"\t]+" mono body underline "((ftp|http|https)://|(file|news):|www\\.)[-a-z0-9_.:]*[a-z0-9](/[^][{} \t\n\r\"<>()]*[^][{} \t\n\r\"<>().,:!])?/?" mono body underline "[-a-z_0-9.]+@[-a-z_0-9.]+" mono body bold "(^| )\\*[-a-z0-9]+" ## ======================================================================== ## BIND - bind commands to keys. ## ======================================================================== ## ======================== ## Bindings for attach menu ## ======================== bind attach ' ' select-entry ## ============================ ## Bindings for index and pager ## ============================ ## Jumping to the next mail that is still unread. bind index \t next-new bind pager \t next-new bind index ' ' next-unread bind pager ' ' next-unread bind index V show-version bind pager V show-version bind index A create-alias bind pager A create-alias macro index S "s=spam/MANUALSPAM\r" macro pager S "s=spam/MANUALSPAM\r" macro index X "=spam/HAM\r" macro pager X "=spam/HAM\r" ## ============================================== ## Bindings for editing and reloading the .muttrc ## ============================================== macro generic ,ve "!sane_editor ~/.muttrc\n" macro generic ,vu ":source ~/.muttrc\r" macro generic ,va "!sane_editor ~/.mail_aliases \n" ## ====================== ## Bindings for index ## ====================== bind index P recall-message bind index s save-message bind browser x check-new bind index next-page bind index previous-page bind index x sync-mailbox bind index a tag-prefix bind index \; tag-entry macro index \cb "|urlview\n" macro index ,l "l~N ! ~p\n" macro index ,n "l~N\n" # ====================================== # Quickly change to my favorite folders: # ====================================== macro index "\\d" "c=lists/debian-devel\r" macro index "\\o" "c=outbox\r" macro index "\\t" "c=TODO\r"; macro index "\\b" "c=buildd_don\r" macro index I "c!\n" "Go to Inbox" macro pager "\\d" "c=lists/debian-devel\r" macro pager "\\t" "c=TODO\r"; macro pager "\\o" "c=outbox\r" macro pager "\\b" "c=buildd_don\r" macro pager I "c!\n" "Go to Inbox" # =========================== # Bindings for pager # =========================== bind pager / search bind pager L list-reply 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-unread # bind pager \cf forget-passphrase 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" "?" ## ===================================== ## Tom's cursor movement system [tm] ;-) ## ===================================== bind pager previous-line bind pager next-line bind pager exit bind pager view-attachments bind attach exit bind attach view-attach bind index display-message # Pre mutt 1.3.x, you'll want this instead: #macro index "c?" macro index "c?" bind browser select-entry bind browser exit ## ================= ## Color definitions ## ================= color attachment white magenta color body brightgreen default "ftp://[^ ]*" color body brightgreen default "[[:alnum:]][-+.#_[:alnum:]]*@[-+.[:alnum:]]*[[:alnum:]]" color body brightgreen default "" color bold green default color error red default color header yellow default "^from" color header green default "^from:" color header green default "^to:" color header green default "^cc:" color header green default "^date:" color header yellow default "^newsgroups:" color header yellow default "^reply-to:" color header brightcyan default "^subject:" color header red default "^x-spam-score:" color header yellow default "^x-mailer:" color header yellow default "^message-id:" color header yellow default "^Organization:" color header yellow default "^Organisation:" color header yellow default "^User-Agent:" color header yellow default "^X-Message-Flag:" color header yellow default "^X-Diagnostic:" color indicator white blue color markers red default color message white blue ## ================================================== ## Colorizing the body of messages (ie in the pager) ## ================================================== color normal white default # pager body # Coloring quoted text - coloring the first 7 levels: color quoted cyan default color quoted1 yellow default color quoted2 red default color quoted3 green default color quoted4 cyan default color quoted5 yellow default color quoted6 red default color quoted7 green default color signature brightred default color status white blue color tilde blue default color tree brightmagenta default color underline yellow default # color body yellow default "[;:]-[)/(|]" # colorise smileys # color body yellow default "[;:][)/(|]" color body brightblue default "(http|ftp|news|telnet|finger)://[^ ]*" color index yellow default ~N # New color index yellow default ~O # Old color index brightgreen default '~p' # mail to myself color index brightcyan default '~P' # mail from myself color index magenta default ~F # Flagged color index blue default ~T # Tagged color index red default ~D # Deleted # 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: # These can provide amusement unignore X-Fnord: X-WebTV-Stationery: X-Message-Flag: unignore Message-Id: # procmail rules for listmaster unignore X-Diagnostic: # ordering of headers in the pager unhdr_order * hdr_order Date: From: To: Cc: X-Newsreader: X-Mailer: Organization: Organisation: User-Agent: X-Fnord: X-WebTV-Stationery: X-Message-Flag: X-Diagnostic: Newsgroups: Reply-To: Subject: x-spam-rule: ## "alternates" tells mutt about your addresses. Mutt thus can show mails ## addresses to you in the folder index as "personal" using the flag '+'. #set alternates=((tom|gilbertt)@snowman.net|.*@linuxbrit.*|.*@offended.*|giblet@lunixbrat.com) folder-hook . my_hdr "From: Don Armstrong " folder-hook . unmy_hdr "Reply-To:" folder-hook . unmy_hdr "Cc:" folder-hook . set sort=threads folder-hook INBOX set sort=date-received # bug hooks #reply-hook "~h X-Debian-PR" my_hdr "X-Debbugs-No-Ack: yes no ack"; send-hook ~A unmy_hdr "X-Debbugs-No-Ack"; send-hook "(~C submit@bugs.debian.org |~C control@bugs.debian.org |~C \d+@bugs.debian.org)" my_hdr "X-Debbugs-No-Ack: yes no ack" set signature='~/lib/signature_stuff/pick_a_quote.pl|' send-hook '~t build ~s success' "set signature='' pgp_autosign=yes indent_string='' edit_headers=no editor='~/bin/buildd_script' fast_reply=yes pgp_create_traditional=yes include=yes pgp_sign_as=0x9D05D0BE" send-hook '!(~t build ~s success)' "set pgp_autosign=yes indent_string='> ' editor='~/bin/sane_editor' autoedit=yes edit_headers=yes fast_reply=no pgp_create_traditional=no include=yes signature='~/lib/signature_stuff/pick_a_quote.pl|' pgp_sign_as=0xD98C0FBA" # Fix the Mail-Followup-To for sdondley send-hook . unmy_hdr "Mail-Followup-To"; send-hook "(~f sdondley@gmail.com|~f s@gmail.com|~f s@dondley.com)" my_hdr "Mail-Followup-To: Don Armstrong "; # Debian folder hooks folder-hook debian- my_hdr "From: Don Armstrong " folder-hook bdo_role my_hdr "From: Don Armstrong " folder-hook bdo_role my_hdr "Reply-To: owner@bugs.debian.org" folder-hook bdo_role my_hdr "Cc: owner@bugs.debian.org" folder-hook 0_ldo_role my_hdr "From: Don Armstrong " folder-hook 0_ldo_role my_hdr "Reply-To: listmaster@lists.debian.org" folder-hook 0_ldo_role my_hdr "Cc: listmaster@lists.debian.org" folder-hook INBOX "reply-hook \"~C donarm@illinois.edu\" my_hdr \"From: Don Armstrong \"" folder-hook !INBOX "unhook reply-hook" #reply-hook '~C don@debian.org' my_hdr "From: Don Armstrong " macro generic ,ad my_hdr "From: Don Armstrong " macro generic ,an my_hdr "From: Don Armstrong " ## "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 *` lists `cd ~/Mail/bugs && echo *` unsubscribe * subscribe `cd ~/Mail/lists && echo *` subscribe `cd ~/Mail/bugs && 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 +INBOX mailboxes +TODO mailboxes +bdo_role mailboxes +buildd_don mailboxes +0_ldo_role mailboxes +oftc mailboxes `for file in ~/Mail/lists/*; do echo -n "+lists/$(basename $file) "; done` mailboxes `for file in ~/Mail/bugs/*; do echo -n "+bugs/$(basename $file) "; done` # integration with org mode macro index \eR "|~/bin/remember_mail\n" macro pager \eR "|~/bin/remember_mail\n"