SA Bugzilla – Bug 894
-W adds malformed e-mail addresses to white list
Last modified: 2002-09-24 03:52:36 UTC
Given an e-mail message body of the following form: -----Original Message----- From: freddy@aol.com [mailto:freddy@domain.com] Sent: Thursday, September 12, 2002 9:48 PM To: barney@domain.com Subject: Re: lunch? sure - see you at noon <eof> spamassassin -W will add both freddy@aol.com and mailto:freddy@aol.com to the auto white list file. The address, "mailto:freddy@aol.com", seems wrong. The situation above comes up when a message is forwarded via M$FT's Outlook "forward" action. I'm using this in combination with the following procmailrc recipe to make it easy to add e-mail addresses from the mail client: # # Add the email addressess found in the body to the auto-whitelist # :0 b * ^From:.*barney@domain.com * ^Subject: white[ ]*list$ * ? test -x /usr/bin/spamassassin | /usr/bin/spamassassin -W
OK, should be fixed; it now looks for mailto:'s and strips the prefix.