X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=.muttrc;h=080cc4536b35ea19214629ab981332b801b0f6e1;hb=7d99c863aad491b163e929b6245973bf61e929e3;hp=5f333b7560cb763062e5b89133202de4401ede73;hpb=30de2c40af325a83d4ae040a9f83f0b023455c56;p=mail.git diff --git a/.muttrc b/.muttrc index 5f333b7..080cc45 100644 --- a/.muttrc +++ b/.muttrc @@ -5,7 +5,6 @@ set alias_file=~/.mail_aliases source /usr/lib/mutt/source-muttrc.d| -set abort_nosubject=no set autoedit unset beep set bounce=yes @@ -13,28 +12,17 @@ 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 @@ -43,7 +31,7 @@ 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. +unset 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 @@ -93,7 +81,6 @@ 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 @@ -101,7 +88,7 @@ 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 signature='~/.signature' # Signature (See send-hook!) set spoolfile=+INBOX # Maildir incoming file (~/Mail/incoming) set narrow_tree=yes @@ -125,8 +112,8 @@ alternates "\^(\ ((don(\\+.*)?@(.*\\.)?(donarmstrong|anylevel|oneinfinity)\\.(com|org|net))\ |(don(\\+.*)?@(.*\\.)?(rzlab|pellam)\\.ucr\\.edu)\ |(don(\\+.*)?@(.*\\.)?debian\\.org)\ -|donarm(\\+.*)?@(.*\\.)?illinois\\.edu) -))$" # alternate usernames +|donarm(\\+.*)?@(.*\\.)?illinois\\.edu)\ +)$" # alternate usernames set gecos_mask="^[^,]*" # Parse the GECOS field from passwd file. @@ -135,7 +122,6 @@ set quote_regexp="^( {0,5}[>|:%]| {0,5}[a-z0-9]+[>|]+)+" 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 @@ -143,11 +129,11 @@ set date_format="!%a %b %d, %Y at %I:%M:%S%p %Z" set forward_format="(fwd) %s" # subject of forwarded mails -spam 'X-Spam-Level: \*\*\*\*\*\*\*\*' 8 -spam 'X-Spam-Level: \*\*\*\*\*\*' 6 +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 +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" @@ -270,10 +256,13 @@ 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" +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" + +macro pager ,e "ripmime -i - -d ~/attachments/" +macro index ,e "ripmime -i - -d ~/attachments/" ## ============================================== ## Bindings for editing and reloading the .muttrc @@ -303,13 +292,13 @@ macro index ,n "l~N\n" # ====================================== # Quickly change to my favorite folders: # ====================================== -macro index "\\d" "c=lists/debian-devel\r" +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 "\\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" @@ -439,14 +428,6 @@ unignore X-Diagnostic: 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 @@ -455,45 +436,36 @@ folder-hook INBOX set sort=date-received 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 "; +# identities +# default +source "~/.mutt/identity_default" # 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" +folder-hook debian- "source ~/.mutt/identity_debian" +folder-hook bdo_role "source ~/.mutt/identity_owner" +folder-hook 0_ldo_role "source ~/.mutt/identity_listmaster" +folder-hook !debian-|bdo_role_|0_ldo_role "source ~/.mutt/identity_default" -#reply-hook '~C don@debian.org' my_hdr "From: Don Armstrong " +# INBOX hook +folder-hook INBOX "reply-hook ~Cdonarm@illinois.edu source ~/.mutt/identity_illinois; reply-hook ~Cdon@debian.org source ~/.mutt/identity_debian; reply-hook !(~Cdonarm@illinois.edu|~Cdon@debian.org) source ~/.mutt/identity_default" +folder-hook !INBOX "unhook reply-hook" -macro generic ,ad my_hdr "From: Don Armstrong " -macro generic ,an my_hdr "From: Don Armstrong " +macro generic ,ad ":source ~/.mutt/identity_debian\r" +macro generic ,an ":source ~/.mutt/identity_default\r" +macro generic ,as ":source ~/.mutt/identity_illinois\r" ## "lists" adds a list of mailing lists addresses -## so mutt knows about these for showing them in the folder indes +## so mutt knows about these for showing them in the folder indexes ## 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 *` +lists `find ~/Mail/ -mindepth 1 -maxdepth 1 \( -iname 'lists.*' -o -iname 'bugs.*' \) -type d -printf '%f '|sed 's/(lists|bugs)\.//g'` unsubscribe * -subscribe `cd ~/Mail/lists && echo *` -subscribe `cd ~/Mail/bugs && echo *` +subscribe `find ~/Mail/ -mindepth 1 -maxdepth 1 \( -iname 'lists.*' -o -iname 'bugs.*' \) -type d -printf '%f '` ## "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 @@ -504,8 +476,7 @@ 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` +mailboxes `find ~/Mail/ -mindepth 1 -maxdepth 1 \( -iname 'lists.*' -o -iname 'bugs.*' \) -type d -printf '+%f '` # integration with org mode macro index \eR "|~/bin/remember_mail\n"