Mac OS X 10.12.2: Mail ignores spam headers in emails

Originator:derMacEngel
Number:rdar://29720398 Date Originated:17-Dec-2016 03:03 PM
Status:Open Resolved:
Product:Mail Product Version:Mail 10.2 (3259)
Classification:Serious Bug Reproducible:Always
 
Summary:
The settings for junk mail in Mail.app contain a switch „Trust mail-headers for junk mail in emails“. Yet common anti-spam headers are ignored, for example DSPAM. 

Steps to Reproduce:
In Mail.app, activate the aforementioned setting. Setup mail server with dspam or SpamAssassin. Receive emails which contain spam-headers that clearly mark the mails as spam or as whitelisted, and still apply the wrong filter. 

As an example, here are some of the DSPAM headers for a newsletter I received, which Mail.app mistakenly marked as junk: 

X-Dspam-Probability: 0.0000
X-Binding: 1786589854
X-Elqsiteid: 1786589854
X-Dspam-Confidence: 0.9949
X-Dspam-Result: Whitelisted

In other words, the spam filter is 99,49% confident, that his opinion that it has a 0% chance of being spam is correct. Still, this email was in my junk mailbox when Mail.app received it via IMAP. 

Expected Results:
The mail should be put into my inbox with confidence, instead of being filtered. When the setting is activated, the headers should override mail’s built-in filtering. 

Actual Results:
The setting seems to have no effect. Mail applies the wrong filtering.

Regression:
This problem has been there as long as I remember using Mail.app. It’s high time the setting does what it promises.

Notes:
Provide additional information, such as references to related problems, workarounds and relevant attachments.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!