diff --git a/.config/mutt/global.muttrc b/.config/mutt/global.muttrc index e016a90..b476e98 100644 --- a/.config/mutt/global.muttrc +++ b/.config/mutt/global.muttrc @@ -102,6 +102,9 @@ macro index \eh "$prefix/libexec/gpg-wks-client --receive | msmtp macro index,pager a "set my_pipe_decode=\$pipe_decode pipe_decodeabook --add-emailset pipe_decode=\$my_pipe_decode; unset my_pipe_decode" "add the sender address to abook" macro index \Cr "T~UN." "mark all messages as read" +macro index L "sed -e /^From/d -e s/To:/From:/ | abook --add-email" "add the to: address to abook?" +macro index \Cl " grep 'From: ' | sed 's/From: //' >| /tmp/sender:set my_sender=\"`cat /tmp/sender`\"\n l~f \"$my_sender\"\n" "custom filter" +# :set my_sender=\"`cat /tmp/sender`\"\n l~f \"$my_sender\"\n" \ macro index O "~/.local/bin/mailsync &" "run mailsync to sync all mail" macro index \Cf "unset wait_keyprintf 'Enter a search term to find with notmuch: '; read x; echo \$x >~/.cache/mutt_terms~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;s/\^id:// for@a;$,=\"|\";print@a' | perl -le '@a=<>; chomp@a; s/\\+/\\\\+/ for@a;print@a' \`\"" "show only messages matching a notmuch pattern" macro index A "all\n" "show all messages (undo limit)"