THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
No Format |
---|
#!/bin/sh
SADIR=~/.spamassassin
SENTMAIL=~/mail/Sent
rm -f $SADIR/sent_whitelist
for x in `grep "^To:" $SENTMAIL |
grep -o "[[:alnum:]\.\+\-\_]*@[[:alnum:]\.\-]*" |
tr -s "A-Z" "a-z" |
sort -u` ;
do echo "whitelist_from $x" >> $SADIR/sent_whitelist
done
cat $SADIR/user_prefs.base $SADIR/sent_whitelist > $SADIR/user_prefs
|
...