> I'd like to be able to sort by spamassasin score things that end up in
> my inbox. I've noticed the score directive in muttrc, can I set it to
> capture that from the e-mail header or do I have to setup a number of
> score directives?
> Any help would be much appreciated.
source . "/usr/local/bin/spamassassin2muttscore|"
source . "~/.mutt/mutt.blacklist"
source . "~/.mutt/mutt.whitelist"
rm $HOME/.mutt/mutt.blacklist 2> /dev/null
rm $HOME/.mutt/mutt.whitelist 2> /dev/null
cat $HOME/.spamassassin/blacklist | while read addr; do
[ -n '$addr' ] && echo "score \"~f "$addr"\" -9999" >> $HOME/.mutt/mutt.blacklist
cat $HOME/.spamassassin/whitelist | while read addr; do
[ -n '$addr' ] && echo "score \"~f "$addr"\" 20" >> $HOME/.mutt/mutt.whitelist
This is only a part of my fairly complicated setup. But you get the
idea. Note: These are long lines.