Comments (12)
Thanks for your feedback!
It should be no problem to add further support for this mail headers. Are there any detailed rules listed in this mail headers that can be parsed or only the overall score?
It would be nice if you could provide a full header example for each of your cases.
At the moment it is not planed to add an add-on setting to adjust the score parsing for custom mail headers directly by the user. So if there are any additional cases to consider, please feel free to post them here.
from spam-scores.
Hi.
Mostly i am using MailScanner as the spamfilter, which produces something like this
X-MyCompany-MailScanner-From: [email protected]
X-MyCompany-MailScanner-SpamScore: ssssssss
X-MyCompany-MailScanner-SpamCheck: spam, SpamAssassin (not cached, score=8.609,
required 3, BAYES_50 0.80, FREEMAIL_FORGED_FROMDOMAIN 0.25,
FREEMAIL_FROM 0.00, FROM_NOT_REPLYTO 2.00, GB_FREEMAIL_DISPTO 0.00,
HEADER_FROM_DIFFERENT_DOMAINS 0.25, HTML_FONT_LOW_CONTRAST 0.00,
HTML_MESSAGE 0.00, KAS_SPAM_BRBL 1.00, RDNS_NONE 0.79,
SCHAALIT_HEADER_4074 1.50, SPF_HELO_NONE 0.00, SPF_NONE 0.00,
SPOOFED_FREEMAIL 2.00, SPOOFED_FREEMAIL_NO_RDNS 0.02)
The name of the header differs from different MailScanner-Installations, so i can't mention all of them (for examply "X-SecondCompany-MailScanner-SpamCheck", etc....). All of them should have the keyword "MailScanner" in their name.
It can happen, that there are both my MailScanner-Headers and "X-Spam-Status" from somewhere else in the same mail, don't know how to tell your plugin which one is the preferred to show.
Hope this helps.
Thanks again,
nyar
from spam-scores.
Ok. So there are more things to do than simply adding support for MailScanner headers. Is it correct that after "X-MyCompany-MailScanner-SpamScore:" the total score (8.609) is written?
I've already implemented the MailScanner headers with variable company/domain names (X-*-MailScanner-SpamCheck/SpamScore). It is tested based on the example you've given.
At the moment different spam headers in a single mail are parsed in the following order (first match is displayed, others are ignored):
- x-spamd-result
- x-spam-score
- x-spam-status
- x-*-mailscanner-spamscore
If you like to test the new version, you can download the files from the mailscanner-headers branch (https://github.com/friedPotat0/Spam-Scores/archive/mailscanner-headers.zip) and create a new ZIP file containing all files in the "Spam-Scores-mailscanner-headers" folder. Then you can add the file to thunderbird by drag & drop to install the new version.
When installed, click on any of the mails containing an unrecognised MailScanner header and then restart Thunderbird. After the restart the folder containing messages with this headers have to be repaired in order to show the score in the score column.
from spam-scores.
Wow, fast work!
I installed you new version, but it does work not as expected.
It shows no numeric score in the mail list view and it shows "Spam Score: sssssss" in the action bar (and all triggered rules).
So it seems to use the "x-*-mailscanner-spamscore" header, which displays the score not as a number but with the letter "s" for each score-point. (The letter "s" is configurable by the MailScanner-user, so you can't depend on it). This is for better usage within sieve-filtering.
It is correct, that in the header "X-MyCompany-MailScanner-SpamCheck:" the total score is written as a number. You should parse in this header for the keyword score=8.609.
So perhaps you should change your code from "....SpamScore" to ".....SpamCheck".
Thanks for your time
nyar
from spam-scores.
Thanks for clarifiying. I was not aware of the fact that such a configurable spamscore header exists. I've changed the header to spamcheck. Please check out the new version (https://github.com/friedPotat0/Spam-Scores/archive/mailscanner-headers.zip).
from spam-scores.
Almost there.... :)
The mail list view now shows "NaN" instead of the number, but in the action bar the number is correctly displayed.
Maybe that's because the number from the Mailscanner-score is with three digits (8.609) behind the point instead the Spamassassin-score with only one digit (would be 8.6)....?
Still my problem exists with the order of parsing, because if a Spamassassin header is present it is shown instead my own Mailscanner-header, as you mentioned in your posting above. But i guess that's a little more complicated to change, so i am happy with all your support right now.
Really great work.
nyar
from spam-scores.
Have you tried restarting Thunderbird and repairing the folder containing the mails with this spam header? That is only necessary for the spam column in the mail list view.
from spam-scores.
I've opened a new issue for the header priority option. #7
from spam-scores.
Have you tried restarting Thunderbird and repairing the folder containing the mails with this spam header? That is only necessary for the spam column in the mail list view.
Both done, not getting better, still showing "NaN" in spam column, but correct Spam-Score in message action bar.
from spam-scores.
Hopefully it should be fixed now... π
from spam-scores.
Hopefully it should be fixed now... π
Correct. Thanks for the fast and great work!
from spam-scores.
The change is now publicly available in the new version 1.1.3
from spam-scores.
Related Issues (20)
- Es werden nur bei Γ€lteren E-Mails vereinzelt Spam-Scores angezeigt HOT 5
- Error in additional information about spam HOT 3
- Add support for X-VR-SPAMSCORE headers (OVH) HOT 2
- Popup with detailed information HOT 9
- Error parsing detail rules with content preview header HOT 6
- Contributors discussion HOT 1
- v1.4.0 not working with Thunderbird 78 HOT 5
- Is it possible to add support for fastmail HOT 1
- No X Spam-Report displayed for emails opened from EML file
- Empty popup on second opening (macOS Big Sur) HOT 11
- Duplicates in score list HOT 3
- When installing, Spam Scores appends to the last existing filter header instead of creating a new filter header
- Questions regarding score ranges HOT 3
- Thunderbird 102: Column disappears after restart HOT 6
- When Spam Scores enabled unable to scroll Junk folder when message is selected HOT 5
- Look for header "x-hmailserver-reason-score"
- Maxing out one core and crashing TB
- Support for Sophos PureMessage Headers (X-PMX-Spam)
- Support X-Ham-Report for detailed report info
- Spam score column not longer available in Thunderbird 115 HOT 24
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spam-scores.