X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=.muttrc;h=4e697175a4c85fa6a2d17548f86c18f2819d4895;hb=de9637c9d2e672a04d08e63d9e76eab82c04d908;hp=fbe02cb20c7c6ad715178b0ec19f4f6f52571aa0;hpb=2447232e487e4f2cded8d57532bd35faa1e70655;p=mail.git diff --git a/.muttrc b/.muttrc index fbe02cb..4e69717 100644 --- a/.muttrc +++ b/.muttrc @@ -3,6 +3,8 @@ 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 @@ -123,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. @@ -267,24 +270,18 @@ bind index V show-version bind pager V show-version bind index A create-alias bind pager A create-alias -#macro index S add_spammer.pls="SPAM\n" -#macro pager S add_spammer.pls="SPAM\n" -#macro index X |"spamassassin -r \n" -#macro pager X |"spamassassin -r \n" 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 "\\T" "=TODO\r" -macro pager "\\T" "=TODO\r" ## ============================================== ## Bindings for editing and reloading the .muttrc ## ============================================== -macro generic ,ve "!gnuclient ~/.muttrc\n" +macro generic ,ve "!sane_editor ~/.muttrc\n" macro generic ,vu ":source ~/.muttrc\r" -macro generic ,va "!gnuclient ~/.mail_aliases \n" +macro generic ,va "!sane_editor ~/.mail_aliases \n" ## ====================== ## Bindings for index @@ -334,19 +331,13 @@ 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 \n send-message +# 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" -# funky gimmick, but I never use it =) -#macro pager ,s "|festival --tts\r" - -#macro index M "c{imap1.bonn.id-pro.net}\n" - macro pager "i" "?" macro index "i" "?" @@ -385,15 +376,12 @@ 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-rule:" +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 "^message-id: .*pine" -color header yellow default "^X-Fnord:" -color header yellow default "^X-WebTV-Stationery:" color header yellow default "^X-Message-Flag:" color header yellow default "^X-Diagnostic:" @@ -422,14 +410,12 @@ 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 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 '~s tgil' -# color index cyan default '~s gilbertt ~f cvs-commits-list' color index brightgreen default '~p' # mail to myself color index brightcyan default '~P' # mail from myself color index magenta default ~F # Flagged @@ -445,6 +431,7 @@ 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: @@ -488,6 +475,8 @@ 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 " @@ -499,12 +488,10 @@ macro generic ,an my_hdr "From: Don Armstrong " ## 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/lists Mail/bugs -mindepth 1 -maxdepth 1 -type d -printf '%f\n'` unsubscribe * -subscribe `cd ~/Mail/lists && echo *` -subscribe `cd ~/Mail/bugs && echo *` +subscribe `find ~/Mail/lists Mail/bugs -mindepth 1 -maxdepth 1 -type d -printf '%f\n'` ## "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 @@ -515,9 +502,10 @@ 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/lists -mindepth 1 -maxdepth 1 -type d -printf '+lists/%f\n'` +mailboxes `find ~/Mail/bugs -mindepth 1 -maxdepth 1 -type d -printf '+bugs/%f\n'` # integration with org mode macro index \eR "|~/bin/remember_mail\n" -macro pager \eR "|~/bin/remember-mail\n" +macro pager \eR "|~/bin/remember_mail\n" +