You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by Apache Wiki <wi...@apache.org> on 2016/10/04 13:04:21 UTC

[Spamassassin Wiki] Update of "ManualWhitelist" by AlexAndr

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Spamassassin Wiki" for change notification.

The "ManualWhitelist" page has been changed by AlexAndr:
https://wiki.apache.org/spamassassin/ManualWhitelist?action=diff&rev1=27&rev2=28

Comment:
regex: add '#' and '+' to the list of symbols valid in the local-part of an e-mail address

  
  cat $SENTMAIL |
          grep -Ei '^(To|cc|bcc):' |
- 	grep -oEi '[a-z0-9_.=/-]+@([a-z0-9-]+\.)+[a-z]{2,}' |
+ 	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
@@ -71, +71 @@

  }}}
  
  Formail extracts lines only from RFC-822 header and concatenates continued fields providing an accurate list of all addresses.
-  
+ 
  == Building an auto-whitelist from LDAP ==
  
  If you run an LDAP-based addressbook, you can use the following simple cron job to build a whitelist nightly: