Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: SpamAssassin: devel

[Bug 6780] Existing but empty From: and To:

 

 

SpamAssassin devel RSS feed   Index | Next | Previous | View Threaded


bugzilla-daemon at bugzilla

May 14, 2012, 9:18 AM

Post #1 of 1 (143 views)
Permalink
[Bug 6780] Existing but empty From: and To:

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6780

Mark Martinec <Mark.Martinec [at] ijs> changed:

What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|Undefined |3.4.0

--- Comment #5 from Mark Martinec <Mark.Martinec [at] ijs> ---
> hmm... MISSING_HEADERS is operating only on To: header

Right, your rules set seems more to the point.


If multiple (although illegal) From/To/Cc header fields are taken
into account, a regexp /m flag should be used:

header __HAS_FROM exists:From
header __HAS_TO exists:To
header __HAS_CC exists:CC
header __EMPTY_FROM From =~ /^\s*$/m
header __EMPTY_TO To =~ /^\s*$/m
header __EMPTY_CC Cc =~ /^\s*$/m

meta EMPTY_FROM_OR_TO_OR_CC (__EMPTY_FROM && __HAS_FROM) || (__EMPTY_TO &&
__HAS_TO) || (__EMPTY_CC && __HAS_CC)
describe EMPTY_FROM_OR_TO_OR_CC Contains a header field that is blank and
shouldn't be.
score EMPTY_FROM_OR_TO_OR_CC 1.0


( If we don't care to for multiple instances, a rule like
header __EMPTY_FROM From !~ /\S/
might be faster. )

Btw, a __HAS_FROM rule we already have (along with
__HAS_RCVD, __HAS_MESSAGE_ID, __HAS_DATE and __HAS_SUBJECT).
Can't hurt to add __HAS_TO and __HAS_CC for completeness,
even if it turns out they won't be used.

--
You are receiving this mail because:
You are the assignee for the bug.

SpamAssassin devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.