Skip to content
Browse files

Use a script to add addresses to the lists file

  • Loading branch information...
1 parent 5bc6f64 commit 6662ce6f7df20e2ea5df0318f85c01c57631e596 @ISF committed Mar 5, 2013
Showing with 8 additions and 0 deletions.
  1. +1 −0 .mutt/macros.muttrc
  2. +7 −0 .scripts/get_ml.sh
View
1 .mutt/macros.muttrc
@@ -6,6 +6,7 @@ macro index \Cv "<enter-command> set my_crypt_verify_sig=\$crypt_verify_sig<ente
macro pager \Cv "<exit><enter-command> set my_crypt_verify_sig=\$crypt_verify_sig<enter> <enter-command> set crypt_verify_sig=yes<enter> <display-message><enter-command> set crypt_verify_sig=\$my_crypt_verify_sig<enter>" 'Verify PGP signature'
macro pager \Cu <pipe-entry>'urlscan -c'<enter> 'Follow links with ulrscan'
macro index,pager .b "<pipe-message>goobook add<return>" "Add the sender address to Google contacts"
+macro index,pager \Ca "<pipe-message>~/.scripts/get_ml.sh<return>" "Add the mailing list to the subscribe file"
# movementation between account folders
macro index *g "<change-folder>.mail/gmail/INBOX<enter>"
View
7 .scripts/get_ml.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+# Extract a mailing list address from a message
+
+HEADER="List-Post"
+
+grep $HEADER - | egrep -o "\<mailto:.*\>" | cut -d ":" -f 2 >> ~/.mutt/lists.muttrc

0 comments on commit 6662ce6

Please sign in to comment.
Something went wrong with that request. Please try again.