X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=.muttrc;h=f0cf086e2d7c1213e292bac77e14ac9e1142127a;hb=e0c20984c69e448c269ec715c840780760360172;hp=385cef98c0ee5535e65b00c3a68cb23424246123;hpb=347d9e8ed99ecab08177a795fe7cc98f6fedfd72;p=mail.git diff --git a/.muttrc b/.muttrc index 385cef9..f0cf086 100644 --- a/.muttrc +++ b/.muttrc @@ -101,7 +101,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,7 +125,8 @@ alternates "\^(\ ((don(\\+.*)?@(.*\\.)?(donarmstrong|anylevel|oneinfinity)\\.(com|org|net))\ |(don(\\+.*)?@(.*\\.)?(rzlab|pellam)\\.ucr\\.edu)\ |(don(\\+.*)?@(.*\\.)?debian\\.org)\ -))$" # alternate usernames +|donarm(\\+.*)?@(.*\\.)?illinois\\.edu)\ +)$" # alternate usernames set gecos_mask="^[^,]*" # Parse the GECOS field from passwd file. @@ -269,10 +270,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 @@ -302,13 +306,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" @@ -438,14 +442,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 @@ -454,43 +450,35 @@ 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 debian- "source ~/.mutt/identity_debian" +folder-hook bdo_role "source ~/.mutt/identity_owner" +folder-hook 0_ldo_role "source ~/.mutt/identity_listmaster" -#reply-hook '~C don@debian.org' my_hdr "From: Don Armstrong " +# INBOX hook +folder-hook INBOX "reply-hook \"~C donarm@illinois.edu\" source ~/.mutt/identity_illinois; reply-hook \"~C don@debian.org\" source ~/.mutt/identity_debian; reply-hook \"!(~C donarm@illinois.edu|~C don@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 @@ -501,8 +489,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"