]> git.donarmstrong.com Git - mail.git/blobdiff - .muttrc
fix the path to find
[mail.git] / .muttrc
diff --git a/.muttrc b/.muttrc
index b17b214326a99e39be15dc49ce9e721c0d5fa956..4e697175a4c85fa6a2d17548f86c18f2819d4895 100644 (file)
--- a/.muttrc
+++ b/.muttrc
@@ -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.
 
@@ -430,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:
 
@@ -473,6 +475,8 @@ folder-hook 0_ldo_role my_hdr "From: Don Armstrong <don@debian.org>"
 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 <donarm@illinois.edu>\""
+folder-hook !INBOX "unhook reply-hook"
 
 #reply-hook '~C don@debian.org' my_hdr "From: Don Armstrong <don@debian.org>"
 
@@ -484,12 +488,10 @@ macro generic   ,an   my_hdr "From: Don Armstrong <don@donarmstrong.com>"
 ## 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
@@ -500,8 +502,8 @@ 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"