Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: [Original edit by AlexAndr] regex: add '#' and '+' to the list of symbols valid in the local-part of an e-mail address

...

No Format
SADIR=~/.spamassassin
SENTMAIL=~/mail/Sent

cat $SENTMAIL |
        grep -Ei '^(To|cc|bcc):' |
	grep -oEi '[a-z0-9_.=/#+-]+@([a-z0-9-]+\.)+[a-z]{2,}' |
	tr "A-Z" "a-z" |
	sort -u |
        xargs -n 100 echo "whitelist_from" > $SADIR/sent_whitelist

...