Bug 894 - -W adds malformed e-mail addresses to white list
Summary: -W adds malformed e-mail addresses to white list
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: spamassassin (show other bugs)
Version: 2.20
Hardware: All All
: P2 minor
Target Milestone: ---
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-14 18:39 UTC by Gary Funck
Modified: 2002-09-24 03:52 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Funck 2002-09-14 18:39:56 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
Comment 1 Justin Mason 2002-09-24 11:52:36 UTC
OK, should be fixed; it now looks for mailto:'s and strips
the prefix.