Bug 6727

Summary: matching headers in rfc822 attachment
Product: Spamassassin Reporter: Matus UHLAR - fantomas <uhlar>
Component: LibrariesAssignee: SpamAssassin Developer Mailing List <dev>
Status: RESOLVED INVALID    
Severity: normal CC: sidney
Priority: P2    
Version: unspecified   
Target Milestone: Undefined   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Matus UHLAR - fantomas 2011-12-14 10:46:26 UTC
I was trying to match within Received: headers of message/rfc822 attachment for specific content. I need to bump score if a mesage contains rfc822 attachment with specific content in headers of the attachment.

Unfortunately neither of the rules allows this:
- headers searches only main message headers
- body/rawbody search only bodies of message and attachments 
- mimeheader is not designed to match other than MIME headers.

Full searches even in main message headers, which is not what I want
I can not make a meta rule to exclude content matching in main headers, because both headers can match, and I need match specifically headers of included message.
Comment 1 Sidney Markowitz 2022-04-25 08:00:03 UTC
This isn't a SpamAssassin bug. It is more like an old request for advice that could have been asked on the users mailing list.