Giter Site home page Giter Site logo

friedpotat0 / spam-scores Goto Github PK

View Code? Open in Web Editor NEW
41.0 6.0 3.0 768 KB

Thunderbird add-on to display spam scores according to mail headers. Supports spam/ham score headers of Rspamd and SpamAssassin. The add-on adds a column with the overall spam score to the mail list view and shows details of any matched spam/ham rule.

Home Page: https://addons.thunderbird.net/de/thunderbird/addon/spam-scores/

License: Other

JavaScript 86.96% CSS 5.99% HTML 6.66% Shell 0.38%
thunderbird rspamd spamassassin email thunderbird-addon thunderbird-extension spam-scores

spam-scores's Introduction

Spam Scores (Thunderbird Add-on)

Spam Scores is an add-on for Thunderbird (Version 91.0a1 - *). For Thunderbird 78.* the last working version of this add-on is 1.3.1.

The add-on can display spam scores according to mail headers. The add-on supports spam/ham score headers of Rspamd, SpamAssassin and MailScanner. It adds a column with the overall spam score to the mail list view and shows details of any matched spam/ham rule.

⚠️ The add-on needs mails with headers like "X-Spamd-Result", "X-Spam-Report", "X-Rspamd-Report/-Score", "X-SpamCheck", "X-Spam-Status" or "X-VR-SPAMSCORE" to work. If a mail does not have one of these headers, it cannot display any spam score. Please make sure to check your mails for these headers before creating an issue. The add-on does not currently support spam headers from GMX, as these have a different score scale.

Add-on Screenshot

To display the spam score column, right-click on the title bar of the columns in the list view and select "Spam score". If the column is empty, you must first restart Thunderbird and then right-click on any folder and select "Properties" and "Repair Folder". This will scan the mail headers of all mails in this folder so that the spam score column can be displayed correctly. Repair all folders like this in which you want to display this column.

If you have mails with the header "X-MYCOMPANY-MailScanner-SpamCheck", you have to open one of these mails first and then restart Thunderbird and repair the folder. Otherwise the spam score of the mails containing these headers will not be displayed.

The total score of each mail with an existing spam header will be displayed along with a red, yellow or green icon depending on the score. The colours are by default calculated as follows:

  • Positive Score Score greater than 2
  • Neutral Score Score between -2 and 2 (both inclusive)
  • Negative Score Score less than -2

The icon score ranges can be changed in the add-on options.

Furthermore, a button is displayed in the action bar of any opened mail with the respective total score of the mail. Clicking on the button opens a popup with detailed information on all individual rules. In addition to the name and the partial score, a description and, if available in the mail header, the value on the basis of which the score was calculated is displayed.

Installation

You can download the latested version reviewed by moz://a directly on the Thunderbird Add-on page or through your installed Thunderbird client by clicking on the menu button followed by "Add-ons" and typing "Spam Scores" in the search bar.

Additionally the latest reviewed version is available on the Releases page of this GitHub repository.

To test versions that have not yet been published, you can always download the files from any branch and create a new ZIP file containing all files in the "Spam-Scores-[BRANCH_NAME]" folder. Then you can add the file to thunderbird by drag & drop to install the new version. Please keep in mind that you might not receive future updates until you reinstall a reviewed version directly from Thunderbird's add-on page or through the releases page of this repository.

Options

Settings Screenshot

The default icon ranges can be changed in the add-on settings in Thunderbird. Furthermore individual score ranges can be completely hidden. For example, this can be used to show the icon and score only for mails that are spam. The detailed rules of any opened mail can still be accessed regardless of this setting.

Translations

At the moment the add-on is mostly written in English. Some parts like the settings and the description are also translated to German. Please refer to the section Contributing if you would like to help by translating the add-on to different languages.

License

The add-on is released under the CC BY-NC-SA 4.0 (Attribution-NonCommercial-ShareAlike 4.0 International) license.

Contributing

If you notice any bugs, do not hesitate to open an issue about it. Please understand that I develop the add-on in my spare time and may not be able to solve problems directly. If you want to contribute to the project by fixing bugs, implementing new features or translating the add-on, please feel free to open a pull request.

spam-scores's People

Contributors

dlh2 avatar friedpotat0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

dlh2 drwonky arthaud

spam-scores's Issues

Questions regarding score ranges

Dear Mr Christian Zaenker, creator of SPAM SCORE vers. 1.3,

Hello, would you please give me more information about your add-on called SPAM SCORE vers. 1.3, which I have installed on my Thunderbird 91.11.0 (32-bit) (= for win 10),

please, first and foremost, by being so kind as to answer the following 4 questions:

  1. on what methods is it based? = I mean, how does it calculate the score?

  2. does the score 1.6 mean that it is MORE likely to be a spam than score 0.00, as I can’t help understanding at first glance, //OR, instead, does it mean that it is LESS likely to be a spam than score 0.00?

  3. does the score -1.6 mean that it is LESS likely to be a spam than score 0.00, as I can’t help understanding at first glance, //OR, instead, does it mean that it is MORE likely to be a spam than score 0.00?

  4. what is the threshold score for an email to be considered a spam? e.g is an e-mail to be considered spam past if Spam Score’s spam score is higher than 2.00 (or less than 2.00, depending to the answer to points 2. and 3. above)?

Unfortunately, this part of the “Read it” that I found at https://github.com/friedPotat0/Spam-Scores#readme , which I am quoting below, does NOT answer my core doubt (my core doubt being “whether a positive: number means the e-mail message is more likely or less likely to be spam (/including phishing, scams, attachments containing viruses, and the like, and, conversely, whether a negative: number means […]”

“The total score of each mail with an existing spam header will be displayed along with a red, yellow or green icon depending on the score. The colours are by default calculated as follows:

Negative Score GREEN   = Score greater than 2
Neutral Score YELLOW= between -2 and 2 (both inclusive)  
Positive Score RED       = Score less than -2

   The icon score ranges can be changed in the [add-on options](https://github.com/friedPotat0/Spam-Scores#options).“

[End of quotation]

Would you like to know why it doesn't solve my doubt?

Because a) although I can “guess” that the GREEN colour means “OK”, and therefore “not-spam”,

and that that the RED colour means “OK”, and therefore “not-spam”,

yet, I cannot rely on guessing: I need to read it spelled out, typed in black and white by you, to be assured that I am getting it right.

b) because, unless I get point a) above solved , (= i.e. if you don’t solve my point a) above),

and, moreover, if you don’t give me any advice/guidance/ tip about the threshold past which one usually be confident that one has spotted a real spam (i.e. not a “false positive”)⟶

I cannot figure out the meaning of the sentence “Neutral Score YELLOW= between -2 and 2 (both inclusive) “ which is therefore not helpful to me, but just adds to my frustration.

……………………………………………………………...
Thank you very much,

I will be looking forward to your answers in your kind reply.

Yours sincerely,

Owariysy

P.S.
wait a minute:
when I copied and pasted this whole letter of mine that I had written on a thundebird page,
the part of your Read me
" GREEN = Score greater than 2
YELLOW= between -2 and 2 (both inclusive)
Score RED = Score less than -2 "
suddenly appeared with the tags negative Score, Neutral Score, Positive score, as follows:

Negative Score GREEN   = Score greater than 2
Neutral Score YELLOW= between -2 and 2 (both inclusive)  
Positive Score RED       = Score less than -2

So, it seems that we users cannot readthe aforesaid tags because thery are hidden, encrypted, so to speak, in the HTML code: is that so?

= THIS "glitch" IS SHOWN IN THE ATTACHED= UPLOADED FILE named
"See for yourself here that those 'negative-positive-neutral' tags...

See for yourself here that those 'negative-positive-neutral' tags do not show on users' PCs - 2022-07-06 at 21hours28min  Italian time
See for yourself here that those 'negative-positive-neutral' tags do not show on users' PCs - 2022-07-06 at 21hours28min  Italian time

Message threads are not displayed

Describe the bug
I always display my messages in threads:
Screenshot from 2021-04-01 11-25-24
but after installing Spam-Scores I cannot display them in threads anymore if I have the Spam scores column displayed.

Reproduction steps

  1. Display your messages in threads.
  2. Install Spam-Scores according to the instructions.
  3. Add the Spam scores column.
  4. The threading disappeared.

Expected behavior
I would expect, that the messages are still displayed in treads. If the thread is collapsed, either do not display any spam score or display the highest (this could be configurable).

Thunderbird (please complete the following information):

  • OS: Linux Mint 20.1
  • Version: 78.7.1 (64-bit)

Spam Score add-on (please complete the following information):

  • Version: [e.g. 1.1.5] 1.1.6

Spam score not shown in Mail Collums

Good day,

first of all: cool addon! i searched something like this a long time :)

but i got a issue:

image

Unfortunately, the spam score is not displayed next to my mails. Only when I open the mail can I see the score at the bottom. Is this a bug or do I have to do something special?

Thunderbird Version: 78.7.0 (64-bit)

Error parsing detail rules with content preview header

I tested the new add-on version 1.3.1. Unfortunately, it isn't quite good yet.
The error repeats, when the number 30 appears in Content Preview. Maybe, here's the problem?

Example 1:
obraz

Source 1:

MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="_=aspNetEmail=_4d1094a12e524faf8923828cde92cb72"
Precedence: bulk
List-Unsubscribe: <http://info.topdelivery.net.pl/appreg/panel/Redirect.aspx?link_id=4833DA5C-36E3-4DF7-9695-D7E616F146EF&mail_id=01a6f998-3ea6-497a-9954-568e7f737fc1&d=14A96185-339C-41B4-8E28-CB069D47DA14&cntct_id=DWMTLRQjAFkMe1tBaW5AQhN9FDcRdhRoAQhCel0QPSJCSkZ4&p1=FBNFExdQBDNLWxYpa1trICl6ZXRddFkOBWkWbWULFQhLCCggHXRfdC1BEh4ZRXRKAVwNdxIIOGkbIHh0AXRpURIYDDpjC0QOAg8EbBpOXVESKiMuKnUoOGQZUBVtCnZmS2YLWGpcHDJNZWVpGSZPGnAcDWV4GgEMeB5xdHl7Yh4%2fVw9WKHwGZARbCFFZenk%3d&p2=EHhWL0UAUkReXB4IcUVuVltnfFZefxJiUz4zdGIHM1tLcglXAWExBENWehEeTx5fAR0mMkxZH0MsAgk8NjQyCF5CRhh4VhBlHhMZaExOCVsfVk1eDi1fS3R%2bUkd1AHgNWxUKVmEKbxVPFX88TFIiExppemdsFA4BfgoG&site=aHR0cCUzYSUyZiUyZmluZm8udG9wZGVsaXZlcnkubmV0LnBsJTJmYXBwcmVnJTJmcGFuZWwlMmZSZWdpc3Rlck91dFBhZ2UuYXNweCUzZm1haWxfaWQlM2QlMjMlMjNtYWlsX2lkJTIzJTIzJTI2YW1wJTNiZCUzZDE0QTk2MTg1LTMzOUMtNDFCNC04RTI4LUNCMDY5RDQ3REExNA%3d%3d>
Feedback-ID: :53537:65841:net.pl
X-Sid: [email protected]
Message-ID: <[email protected]>
X-Spam-Subject: ***SPAM***  =?utf-8?B?TmllIHByemVnYXAhIE5vd2/Fm2NpIC0yNSUgeiBrb2RlbSBGUkVTSDI1IQ==?=
X-Spam-Status: Yes, score=13.3
X-Spam-Score: 133
X-Spam-Bar: +++++++++++++
X-Spam-Report: Spam detection software, running on the system "xxxxx",
 has identified this incoming email as possible spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 root\@localhost for details.
 Content preview:  SprawdĹşsporstylestory_mailing-sale DARMOWA DOSTAWA OD 200
    PLN Â Â  / Â Â  30 DNI NA ZWROT Â Â  / Â Â  BEZPIECZNE ZAKUPY Â Â  / Â Â 
    RATY 0%Kampania realizowana przez Redgroup do bazy partnera Kampani [...]
    
 Content analysis details:   (13.3 points, 4.0 required)
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  4.5 URIBL_DBL_SPAM         Contains a spam URL listed in the Spamhaus DBL
                             blocklist
                             [URIs: topdelivery.net.pl]
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
  5.0 URIBL_BLACK            Contains an URL listed in the URIBL blacklist
                             [URIs: topdelivery.net.pl]
 -0.0 SPF_PASS               SPF: sender matches SPF record
  0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level
                             mail domains are different
  0.0 HTML_FONT_LOW_CONTRAST BODY: HTML font color similar or
                             identical to background
  0.0 HTML_IMAGE_RATIO_02    BODY: HTML has a low ratio of text to image
                             area
  0.0 HTML_MESSAGE           BODY: HTML included in message
  0.5 KAM_REALLYHUGEIMGSRC   RAW: Spam with image tags with ridiculously
                              huge http urls
 -0.1 DKIM_VALID             Message has at least one valid DKIM or DK signature
  0.1 DKIM_SIGNED            Message has a DKIM or DK signature, not necessarily
                             valid
 -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from
                             envelope-from domain
  5.0 KAM_VERY_BLACK_DBL     Email that hits both URIBL Black and Spamhaus
                              DBL
X-Spam-Flag: YES

Example 2:
obraz

Source 2:

MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="_=aspNetEmail=_4d1094a12e524faf8923828cde92cb72"
Precedence: bulk
List-Unsubscribe: <http://info.topdelivery.net.pl/appreg/panel/Redirect.aspx?link_id=4833DA5C-36E3-4DF7-9695-D7E616F146EF&mail_id=01a6f998-3ea6-497a-9954-568e7f737fc1&d=14A96185-339C-41B4-8E28-CB069D47DA14&cntct_id=DWMTLRQjAFkMe1tBaW5AQhN9FDcRdhRoAQhCel0QPSJCSkZ4&p1=FBNFExdQBDNLWxYpa1trICl6ZXRddFkOBWkWbWULFQhLCCggHXRfdC1BEh4ZRXRKAVwNdxIIOGkbIHh0AXRpURIYDDpjC0QOAg8EbBpOXVESKiMuKnUoOGQZUBVtCnZmS2YLWGpcHDJNZWVpGSZPGnAcDWV4GgEMeB5xdHl7Yh4%2fVw9WKHwGZARbCFFZenk%3d&p2=EHhWL0UAUkReXB4IcUVuVltnfFZefxJiUz4zdGIHM1tLcglXAWExBENWehEeTx5fAR0mMkxZH0MsAgk8NjQyCF5CRhh4VhBlHhMZaExOCVsfVk1eDi1fS3R%2bUkd1AHgNWxUKVmEKbxVPFX88TFIiExppemdsFA4BfgoG&site=aHR0cCUzYSUyZiUyZmluZm8udG9wZGVsaXZlcnkubmV0LnBsJTJmYXBwcmVnJTJmcGFuZWwlMmZSZWdpc3Rlck91dFBhZ2UuYXNweCUzZm1haWxfaWQlM2QlMjMlMjNtYWlsX2lkJTIzJTIzJTI2YW1wJTNiZCUzZDE0QTk2MTg1LTMzOUMtNDFCNC04RTI4LUNCMDY5RDQ3REExNA%3d%3d>
Feedback-ID: :53537:65841:net.pl
X-Sid: [email protected]
Message-ID: <[email protected]>
X-Spam-Subject: ***SPAM***  =?utf-8?B?TmllIHByemVnYXAhIE5vd2/Fm2NpIC0yNSUgeiBrb2RlbSBGUkVTSDI1IQ==?=
X-Spam-Status: Yes, score=13.3
X-Spam-Score: 133
X-Spam-Bar: +++++++++++++
X-Spam-Report: Spam detection software, running on the system "xxxxx",
 has identified this incoming email as possible spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 root\@localhost for details.
 Content preview:  SprawdĹşsporstylestory_mailing-sale DARMOWA DOSTAWA OD 200
    PLN Â Â  / Â Â  30 DNI NA ZWROT Â Â  / Â Â  BEZPIECZNE ZAKUPY Â Â  / Â Â 
    RATY 0%Kampania realizowana przez Redgroup do bazy partnera Kampani [...]
    
 Content analysis details:   (13.3 points, 4.0 required)
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  4.5 URIBL_DBL_SPAM         Contains a spam URL listed in the Spamhaus DBL
                             blocklist
                             [URIs: topdelivery.net.pl]
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
  5.0 URIBL_BLACK            Contains an URL listed in the URIBL blacklist
                             [URIs: topdelivery.net.pl]
 -0.0 SPF_PASS               SPF: sender matches SPF record
  0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level
                             mail domains are different
  0.0 HTML_FONT_LOW_CONTRAST BODY: HTML font color similar or
                             identical to background
  0.0 HTML_IMAGE_RATIO_02    BODY: HTML has a low ratio of text to image
                             area
  0.0 HTML_MESSAGE           BODY: HTML included in message
  0.5 KAM_REALLYHUGEIMGSRC   RAW: Spam with image tags with ridiculously
                              huge http urls
 -0.1 DKIM_VALID             Message has at least one valid DKIM or DK signature
  0.1 DKIM_SIGNED            Message has a DKIM or DK signature, not necessarily
                             valid
 -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from
                             envelope-from domain
  5.0 KAM_VERY_BLACK_DBL     Email that hits both URIBL Black and Spamhaus
                              DBL
X-Spam-Flag: YES

Originally posted by @MXEH in #33 (comment)

When Spam Scores enabled unable to scroll Junk folder when message is selected

Describe the bug
If you select a message in the message list in the Junk folder, you cannot scroll the list whereby the selected message is outside of the viewport.

Reproduction steps

  • Enable spam scores extension
  • Go to the Junk folder
  • Click on a message
  • Try to use the scroll bar or mouse wheel
  • You cannot scroll, the viewport "rubberbands" back to having the selected message shown

Expected behavior
Normal behavior is that selected message scrolls outside of the viewport and a "shadow" cursor follows the mouse. This is what happens when the plugin is disabled.

Screenshots
A screenshot wouldn't be helpful, the problem is only demonstrable interactively.

Thunderbird (please complete the following information):

  • OS: Fedora 34
  • Version: 102.1.2 (64-bit)
  • Package directly downloaded from Mozilla

Spam Score add-on (please complete the following information):

  • Version: 1.4.1

Additional context
Plugin works fine otherwise, the only issue I notice is the scrolling issue. Problem abates when disabling the plugin.

Is it possible to add support for fastmail

Fastmail adds headers of the following format:

X-Spam-known-sender: no
X-Spam-sender-reputation: 500 (none)
X-Spam-score: 0.0
X-Spam-hits: DCC_REPUT_00_12 -0.8, HTML_IMAGE_ONLY_28 0.726, HTML_MESSAGE 0.001,
  ME_SENDERREP_NEUTRAL 0.001, MIME_HTML_ONLY 0.1, RCVD_IN_MSPIKE_H2 -0.001,
  SPF_HELO_NONE 0.001, SPF_PASS -0.001, T_SCC_BODY_TEXT_LINE -0.01,
  UNPARSEABLE_RELAY 0.001, LANGUAGES nl, BAYES_USED none, SA_VERSION 3.4.2
X-Spam-source: IP='#.#.#.#', Host='{url}',
  Country='US', FromHeader='nl', MailFrom='nl'

To be honest I haven't really used your extension yet, as the only thing I see is the spam score, not a breakdown of the causes.
Is it possible to add support for Fastmail?

A related suggestion: maybe it is good to set an expectation for a handful of popular mail providers like Gmail in your readme and on addons.mozilla.org. If the provider doesn't add the relevant headers there is of course nothing the extension can do, but it seems like it doesn't function.

Spam Score only shown in Mail, Column show NaN

Thunderbird 78.5.0 64 bit, Spam Score v 1.1.3 same problem, Spam Score and Report is correctly shown when viewing an email, but it's not shown in the column (show NaN ). The Header is "X-Server3-MailScanner-SpamCheck".
Tryed with open email, restart and repair folder.

Support X-Ham-Report for detailed report info

In SpamAssassin/cPanel, non-spam emails have the detailed report placed into the X-Ham-Report header rather than X-Spam-Report. This causes the Spam Scores button to show "No details available" on non-spam emails, though it works properly for spam emails. The two headers are the same format, other than the name and the Ham version saying "...NOT identified...".

X-Spam-Status: No, score=-2.0
X-Ham-Report: Spam detection software, running on the system "mx.example.com",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 root\@localhost for details.

image

X-Spam-Status: Yes, score=3.5
X-Spam-Report: Spam detection software, running on the system "mx.example.com",
 has identified this incoming email as possible spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 root\@localhost for details.

image

Spam Score only shown in Mail, Column is Empty

Title says it all. Thunderbird Version: 78.3.1 (32-Bit). My Spam Score is correctly shown when viewing an email, but it's not shown in the column. The relevant Header is "X-Spamd-Result".

Score icon ranges resetting after restart

The score icon ranges are resetting to the default values after restarting thunderbird.
After clicking at the options tab of the addon, the icons are back to the values provided in the settings.

wrong rules report

hello
find wrong score report in some mailscanner email, like this one with header attached below report wrong rule 47 with score 12.... seem get it form X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] ?

X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - xxxxxxxxxx.com
X-AntiAbuse: Original Domain - xxxxxxxxxx.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - xxxxxxxxxx.com
X-Get-Message-Sender-Via: xxxxxxxxxx.com: authenticated_id: xxxxxxxxxx.com
X-Authenticated-Sender: xxxxxxxxxx.com: xxxxxxxxxx.com
X-Source:
X-Source-Args:
X-Source-Dir:
X-PlusHosting-MailScanner-Information: Please contact the ISP for more information
X-PlusHosting-MailScanner-ID: 1kkRY0-0002YS-Fx
X-PlusHosting-MailScanner-From: xxxxxxxxxx.com
X-Server3-MailScanner-Information: Please contact the ISP for more information
X-Server3-MailScanner-ID: 1kkRYg-0003QP-9c
X-Server3-MailScanner: Found to be clean
X-Server3-MailScanner-SpamCheck: non spam, SpamAssassin (not cached,
punteggio=3.702, necessario 6, BAYES_50 0.80, DKIM_SIGNED 0.10,
DKIM_VALID -0.10, DKIM_VALID_AU -0.10, DKIM_VALID_EF -0.10,
HTML_IMAGE_RATIO_04 0.00, HTML_MESSAGE 0.00, KAM_SHORT 0.00,
PYZOR_CHECK 0.70, SPF_PASS -0.00, ZZ_COUNTRY_WHITE 0.50,
ZZ_RBL_BARRACU 1.90)
X-Server3-MailScanner-SpamScore: sss
X-Server3-MailScanner-From: xxxxxxxxxx.com
spamscore

Add support for X-Rspamd-[...] headers

Is your feature request related to a problem? Please describe.
The Servers of my hosting provider (https://uberspace.de/de/) only add spam-headers of the format:

X-Rspamd-Bar: /
X-Rspamd-Report: XM_UA_NO_VERSION(0.01) MIME_GOOD(-0.1) MIME_BASE64_TEXT(0.1) MISSING_TO(2) RCVD_NO_TLS_LAST(0.1) BAYES_HAM(-2.999991)
X-Rspamd-Score: -0.889991

or

X-Rspamd-Bar: ++++++++++++
X-Rspamd-Report: URI_COUNT_ODD(1) FUZZY_DENIED(10.348733) FROM_EXCESS_QP(1.2) RCVD_NO_TLS_LAST(0.1) R_MIXED_CHARSET(1.785714) BAYES_HAM(-2.999999) R_PARTS_DIFFER(0.790523) ONCE_RECEIVED(0.1) MIME_GOOD(-0.1) HAS_LIST_UNSUB(-0.01) BAD_REP_POLICIES(0.1)
X-Rspamd-Score: 12.314971

The add-on does not seem to recognize these. No Scores are shown.

Describe the solution you'd like
Add support for parsing these header fields in addition to X-Spam-[...]

Popup with detailed information

There's also a problem the popup with detailed information on all individual rules. It displays correctly only in the Vertical View layout. In others, depending on the height of the message window, the information doesn't appear completely and the scroll bar doesn't appear.

Vertical View
obraz

Wide View or Classic View
obraz

Thunderbird Version: 78.14.0 (OS: Windows 7; )
Spam Score add-on Version: 1.2.0, 1.3.1

Empty popup on second opening (macOS Big Sur)

Describe the bug
The popup with the detailed information is empty whenever I open it a second time. Regardless if it is the same message or a different one. Regardless of time passed since first opening it. Only a complete restart of thunderbird fixes the issue (but again only one popup-opening)

Reproduction steps
Click on "Spam Score"-Button twice to open the details popup.
Second popup is visually empty.
(It is however possible to select the content and copy/paste it somewhere else, which indicates that it's only a color problem?)

Expected behavior
Details should alway be visible.

Screenshots
First poup

Second popup

Thunderbird (please complete the following information):

  • OS: macOS Big Sur (11.6.1)
  • Version: 91.9.0 (and all previous versions released this year)

Spam Score add-on (please complete the following information):

  • Version: 1.4.0

Additional context
Works as intended on macOS Mojave (10.14.6) / TB 91.9.0 / SS 1.4.0
Focing dark or light theme does not make a difference

Thunderbird 102: Column disappears after restart

Hello,

after the initial setup Spam Score works without any problems:

SpamScores_1

However, after restarting Thunderbird, the column disappears and you cannot select it again at first:

SpamScores_2

You have to go to another folder and go back to the desired folder for Spam Score to show up again in the selection of columns:

SpamScores_3

I have tested this with a new profile. I've only been using Spam Score since Thunderbird 102, so I don't know if the problem was there before. However, there seems to be a similar problem with Send Later.

Apparently the Thunderbird developers wanted to change something about the startup behavior of add-ons, but I don't know if that was fully implemented (probably not according to an older comment from the Send Later developer).

FEAT Include GMX Spam Score

Hi Overthere,
great plugin thanks alot :-)

One suggestion: Is it possible to implement other spamscores as well, e.g. the one from GMX?

X-GMX-Antispam: 6 (nemesis text pattern profiler); Detail=V3;
X-Spam-Flag: YES

No X Spam-Report displayed for emails opened from EML file

Der Button zum Anzeigen des X Spam-Reports funktioniert nicht, wenn eine E-Mail aus einer EML Datei heraus in TB geöffnet wird.

Thunderbird mail client allows to view emails from the MBOX (within a TB profile) or from an EML file. The button "Spam Scores" in Thunderbird's Message viewer (to show the single rules results of the X Spam-Report) works only if an email is opened from the list view of the account profile (MBOX). If the same email gets exportet to an EML file and opened with the TB email viewer, the button just shows a litte oval-like shaped popup. I notices that some other AddOns I have installed do work in this mode, others don't.

screenshot

This behaviour can be reproduced by saving an email to an eml file and opening that file with TB.

Versions:
Windows 10
Thunderbird 91.8.1
Spam Scores 1.4.0

Look for header "x-hmailserver-reason-score"

Hi. I tried adding the above header to a local copy of the xpi (added to constants.js) and running it in Thunderbird 102, and I could get the extension to read the header value and display in the individual email header strip, but I couldn't work out how to make the value show in the "spam score" column, and when I accidentally clicked "sort by spam score" TB got very upset.

The value could be any integer as the server admin sets their own scoring for the various spam markers.

Could you please add it, or point me in the right direction beyond constants.js and I'll happily make a PR to integrate this header?

Add Option to use different Spam-Score-Headers

First of all, terrific work for bringing this addon to Thunderbird 78 users! Thanks a lot!

I am an old user of the plugin "Rspamd-spamness" which didn't make it to the new Thunderbird version.
It would be great, if your plugin would parse more and different Mail-Headers. It now seems to work with "X-Spam-Status", but i'm using different Mail-Servers and would appreciate parsing something like:

X-MyCompany-MailScanner-SpamCheck: spam, SpamAssassin (not cached, score=8, required 3,....)
X-MailScanner-SpamCheck: spam, SpamAssassin (not cached, score=5, required 3,....)
...

Would be nice for future versions, if there could be a option for adding different headers.

Keep up the good work.
Regards,
nyar

When installing, Spam Scores appends to the last existing filter header instead of creating a new filter header

Describe the bug
All should be clear in the first screen shot attached. Before installing Spam Scores, my list of message headers for filters included "List-Id" and "Reply-To". After installing, the last filter header is changed to "Reply-Tox-spam-score" instead of adding an additional filter header of "x-spam-score".

Also note that other extensions alter the filter list without allowing the user to edit them (see the second screen shot, starting with "Subject (RegEx)"). I'm not sure how this is done, but you may want to consider following suit.

Reproduction steps
Install Spam Scores.

Expected behavior
When installing Spam Scores, any new filters that are added to the list of custom message header filters should be appended to the list, not to the last list element.

Screenshots
Screen Shot 2022-06-07 at 4 34 37 PM
Screen Shot 2022-06-07 at 4 42 45 PM

Thunderbird (please complete the following information):

  • OS: macOS Monterey 12.4
  • Version: 91.10.0 64-bit

Spam Score add-on (please complete the following information):

  • Version: 1.4.0

Set good score higher than 0 (and spam score below 0)

Describe the bug
I want to set the spam score for good emails to 2, but the preferences page does not allow me to set it above 0.

I tried to find the value in the advanced configuration screen, but only found the entry spamscores.hello.

(I also tried to set the spam score for junk mails to below 0, but this is also not allowed.)

Reproduction steps

  1. Set the score for "red" emails above 0.
  2. Try to set the score for "green" emails to a value above 0. This does not work (and the upwards arrow is not greyed out, but that's a minor issue.)

Expected behavior
I would like to be able to set the "green" score to values higher than 0.

Thunderbird (please complete the following information):

  • OS: Linux Mint 20.1
  • Version: 78.7.1 (64-bit)

Spam Score add-on (please complete the following information):

  • Version: 1.1.6

v1.4.0 not working with Thunderbird 78

Describe the bug
Spam Score not working on latest release.

The Spam score button is here but only shows a 'green puzzle piece'. Clicking on it does not do anything.

Reproduction steps
Install or update to version 1.4.0

Expected behavior
The Spam score button should display the colored icon and the score.

Thunderbird (please complete the following information):

  • OS: Debian 11
  • Version: 78.14.0 (64-bit)

Spam Score add-on (please complete the following information):

  • Version: 1.4.0
    Additional context
    If I manually revert to 1.3.1, everything work fine again.

Add custom priority to mail header parsing

Add an add-on option to set a custom priority for the parsing of mail headers.

At the moment different spam headers in a single mail are parsed in the following order (first match is displayed, others are ignored):

  1. x-spamd-result
  2. x-spam-score
  3. x-spam-status
  4. x-*-mailscanner-spamcheck

Support for Sophos PureMessage Headers (X-PMX-Spam)

Is your feature request related to a problem? Please describe.
My University uses Sophos PureMessage to scan E-Mails for spam (https://www.sophos.com/de-de/products/puremessage.aspx/).
These Headers are currently not supported by SpamScores.
Some examples:

X-PMX-Version: 6.4.9.2830568, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2023.4.12.44816, AntiVirus-Engine: 5.97.0, AntiVirus-Data: 2023.2.17.5970002
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report='
 HTML_50_70 0.1, MIME_LOWER_CASE 0.05, BODYTEXTH_SIZE_10000_LESS 0, BODYTEXTH_SIZE_3000_MORE 0, BODY_SIZE_10000_PLUS 0, BULK_EMAIL_SENDER 0, CTYPE_MULTIPART_NO_QUOTE 0, DKIM_ALIGNS 0, DKIM_SIGNATURE 0, FONT_STYLE_0PT 0, HREF_LABEL_TEXT_NO_URI 0, HREF_LABEL_TEXT_ONLY 0, HTML_BAD_EXTRAS 0, LEGITIMATE_SIGNS 0, LIST_HEADER 0, NO_FUR_HEADER 0, OBFUSCATION 0, PRECEDENCE_HEADER 0, SENDER_NO_AUTH 0, SXL_IP_TFX_ESP 0, URI_WITH_PATH_ONLY 0, WEBMAIL_SOURCE 0, __ANY_URI 0, __BODY_NO_MAILTO 0, __BODY_TEXT_X4 0, __CANPHARM_UNSUB_LINK 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_ALT 0, __DATING_PHRASE 0, __DC_PHRASE 0, __DKIM_ALIGNS_1 0, __DKIM_ALIGNS_2 0, __FRAUD_COMMON 0, __FRAUD_JOB_HOURS 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __FRAUD_PARTNERSHIP 0, __FRAUD_REPLY 0, __FRAUD_URGENCY 0, __FROM_NAME_NOT_IN_BODY 0, __FUR_RDNS_SENDGRID 0, __HAS_FROM 0,
 __HAS_HTML 0, __HAS_LIST_HEADER 0, __HAS_LIST_UNSUBSCRIBE 0, __HAS_MSGID 0, __HIDDEN_HTML_CONTENT 0, __HIGHBIT_ASCII_MIX 0, __HREF_LABEL_TEXT 0, __HTML_AHREF_TAG 0, __HTML_BAD_END 0, __HTML_BAD_START 0, __HTML_BOLD 0, __HTML_HREF_TAG_X2 0, __HTML_TAG_DIV 0, __HTML_TAG_TABLE 0, __HTTPS_URI 0, __HTTP_IMAGE_TAG 0, __IMG_THEN_TEXT 0, __LEGIT_LIST_HEADER 0, __MIME_HTML 0, __MIME_TEXT_H 0, __MIME_TEXT_H1 0, __MIME_TEXT_H2 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_TEXT_P2 0, __MIME_VERSION 0, __MSGID_HEX_844412 0, __MULTIPLE_URI_HTML 0, __MULTIPLE_URI_TEXT 0, __PHISH_SPEAR_HTTP_RECEIVED 0, __PRECEDENCE_BULK 0, __RCVD_FROM_SUSP_HOSTNAME 0, __SANE_MSGID 0, __SENDGRID_RCVD 0, __STOCK_PHRASE_7 0, __STYLE_RATWARE_NEG 0, __STYLE_TAG 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_ENDS_IN_SLASH 0, __URI_HAS_HYPHEN_USC 0, __URI_IN_BODY 0, __URI_IN_BODY_HTTP_X10 0, __URI_MAILTO 0, __URI_NOT_IMG 0,
 __URI_NS , __URI_REDIR 0, __URI_WITH_PATH 0'
X-PMX-Version: 6.4.9.2830568, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2021.4.7.110315, AntiVirus-Engine: 5.80.0, AntiVirus-Data: 2021.2.20.5800001
X-PMX-Spam: Gauge=IIIIIIIII, Probability=9%, Report='
 HTML_70_90 0.1, HTML_NO_HTTP 0.1, SUPERLONG_LINE 0.05, BODYTEXTH_SIZE_3000_MORE 0, BODYTEXTP_SIZE_3000_LESS 0, BODYTEXTP_SIZE_400_LESS 0, BODY_SIZE_10000_PLUS 0, BOUNCE_AUTORESP 0, BOUNCE_ENVELOPE 0, BOUNCE_GENERIC 0, BOUNCE_NDR 0, DKIM_ALIGNS 0, DKIM_SIGNATURE 0, IN_REP_TO 0, KNOWN_MTA_TFX 0, LEGITIMATE_SIGNS 0, LINK_TO_IMAGE 0, MSG_THREAD 0, NO_REAL_NAME 0, REFERENCES 0, SXL_IP_TFX_WM 0, URI_WITH_PATH_ONLY 0, WEBMAIL_SOURCE 0, __ANY_URI 0, __ARCAUTH_DKIM_PASSED 0, __ARCAUTH_DMARC_PASSED 0, __ARCAUTH_PASSED 0, __ARC_SEAL_MICROSOFT 0, __ARC_SIGNATURE_MICROSOFT 0, __ATTACHMENT_SIZE_0_10K 0, __BITCOIN_ADDRESS_OBFU 0, __BODY_NO_MAILTO 0, __BOUNCE_HDR_AUTOSUBMITTED 0, __BOUNCE_NDR_BODY_HIGH 0, __BOUNCE_NDR_CT_REPORT 0, __CP_URI_IN_BODY 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __DKIM_ALIGNS_1 0, __DKIM_ALIGNS_2 0, __DQ_NEG_HEUR 0, __DQ_NEG_IP 0, __FRAUD_CONTACT_ADDY 0,
 __FRAUD_MONEY 0, __FRAUD_MONEY_BIG_COIN 0, __FRAUD_MONEY_BIG_COIN_DIG 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_EURO 0, __FRAUD_MONEY_VALUE 0, __FRAUD_REFNUM 0, __FROM_NAME_NOT_IN_ADDR 0, __FROM_NAME_NOT_IN_BODY 0, __FROM_NO_NAME 0, __FUR_RDNS_OUTLOOK 0, __HAS_ATTACHMENT 0, __HAS_ATTACHMENT2 0, __HAS_FROM 0, __HAS_HTML 0, __HAS_MSGID 0, __HAS_REFERENCES 0, __HTML_BAD_END 0, __HTML_TAG_TABLE 0, __HTTPS_URI 0, __IN_REP_TO 0, __LINES_OF_YELLING 0, __MAIL_CHAIN 0, __MIME_BOUND_MANY_HEX 0, __MIME_HTML 0, __MIME_TEXT_H 0, __MIME_TEXT_H1 0, __MIME_TEXT_H2 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_TEXT_P2 0, __MIME_VERSION 0, __MSGID_DOMAIN_NOT_IN_HDRS 0, __MULTIPLE_URI_TEXT 0, __RDNS_WEBMAIL 0, __REFERENCES 0, __RFC822_ATTACH 0, __RUS_HASHBUSTER_1251 0, __SANE_MSGID 0, __STOCK_PHRASE_24 0, __SUBJ_ALPHA_END 0, __TAG_EXISTS_HTML 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0,
 __URI_HAS_HYPHEN_USC 0, __URI_IN_BODY 0, __URI_MAILTO 0, __URI_NOT_IMG 0, __URI_NO_WWW 0, __URI_NS , __URI_WITH_PATH 0'
X-PMX-Version: 6.4.9.2830568, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2023.4.25.124816, AntiVirus-Engine: 5.97.0, AntiVirus-Data: 2023.2.17.5970002
X-PMX-Spam: Gauge=XIIIIII, Probability=16%, Report='
 CTYPE_JUST_HTML 0.848, HTML_MIME_NO_HTML_TAG 0.8, HTML_70_90 0.1, BODYTEXTH_SIZE_10000_LESS 0, BODYTEXTH_SIZE_3000_MORE 0, BODY_SIZE_3000_3999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, BULK_EMAIL_SENDER 0, CTE_QUOTED_PRINTABLE 0, DKIM_ALIGNS 0, DKIM_SIGNATURE 0, DQ_S_H 0, FROM_NAME_PHRASE 0, HREF_LABEL_TEXT_NO_URI 0, HREF_LABEL_TEXT_ONLY 0, HTML_BAD_EXTRAS 0, KNOWN_MTA_TFX 0, LEGITIMATE_SIGNS 0, LINK_TO_IMAGE 0, NO_FUR_HEADER 0, OBFUSCATION 0, SENDER_NO_AUTH 0, SXL_IP_TFX_ESP 0, SXL_IP_TFX_WM 0, URI_WITH_PATH_ONLY 0, WEBMAIL_SOURCE 0, WEBMAIL_XMAILER 0, __AMAZON_DKIM 0, __AMAZON_MSGID 0, __ANY_URI 0, __BANNER_TRUSTED_SENDER 0, __BODY_NO_MAILTO 0, __BODY_TEXT_X4 0, __CANPHARM_UNSUB_HREF 0, __CT 0, __CTE 0, __CTYPE_HTML 0, __CTYPE_IS_HTML 0, __DKIM_ALIGNS_1 0, __DKIM_ALIGNS_2 0, __DQ_IP_FSO_LARGE 0, __DQ_IP_HIST 0, __DQ_NEG_DOMAIN 0, __DQ_NEG_HEUR 0, __DQ_NEG_IP 0,
 __DQ_S_HIST_1 0, __DQ_S_IP_100K 0, __DQ_S_IP_10K 0, __DQ_S_IP_1K 0, __DQ_S_IP_1MO 0, __DQ_S_IP_2D 0, __DQ_S_IP_RE_100_P 0, __DQ_S_IP_SP_0_P 0, __FROM_NAME_NOT_IN_BODY 0, __FROM_NOREPLY 0, __FUR_IP_AMAZON 0, __HAS_FROM 0, __HAS_HTML 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HEADER_ORDER_FROM 0, __HIDDEN_HTML_CONTENT 0, __HIGHBIT_ASCII_MIX 0, __HREF_LABEL_PHISH 0, __HREF_LABEL_TEXT 0, __HTML_AHREF_TAG 0, __HTML_BAD_END 0, __HTML_BAD_START 0, __HTML_HREF_TAG_X2 0, __HTML_TAG_CENTER 0, __HTML_TAG_DIV 0, __HTML_TAG_IMG_X2 0, __HTML_TAG_TABLE 0, __HTTPS_URI 0, __HTTP_IMAGE_TAG 0, __IMG_THEN_TEXT 0, __MIME_BOUND_CHARSET 0, __MIME_HTML 0, __MIME_HTML_ONLY 0, __MIME_TEXT_H 0, __MIME_TEXT_H1 0, __MIME_VERSION 0, __MULTIPLE_URI_HTML 0, __MULTIPLE_URI_TEXT 0, __PHISH_SPEAR_SUBJ_PREDICATE 0, __SANE_MSGID 0, __SPEAR_FROM_NAME 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0,
 __URI_ENDS_IN_SLASH 0, __URI_HAS_HYPHEN_USC 0, __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NO_MAILTO 0, __URI_NO_WWW 0, __URI_NS , __URI_WITH_PATH 0, __X_MAILER_PHPMAILER 0'
X-PMX-Version: 6.4.9.2830568, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2023.4.10.172716, AntiVirus-Engine: 5.98.0, AntiVirus-Data: 2023.4.10.5980001
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report='
 BODYTEXTH_SIZE_10000_LESS 0, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_2000_2999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, DATE_TZ_NA 0, DKIM_ALIGNS 0, DKIM_SIGNATURE 0, DQ_S_H 0, ECARD_WORD 0, FROM_NAME_PHRASE 0, HEX28_LC_NOT_GOOGLE 0, HREF_LABEL_TEXT_ONLY 0, HTML_BAD_EXTRAS 0, LIST_HEADER 0, NO_FUR_HEADER 0, SENDER_NO_AUTH 0, SINGLE_HREF_URI_IN_BODY 0, SINGLE_URI_IN_BODY 0, SUSPECTED 0, SUSP_IP_HIST 0, TEXT_DIRECTION 0, TEXT_DIR_LTR_ONLY 0, URI_WITH_PATH_ONLY 0, __AMAZON_PHRASE 0, __ANY_URI 0, __BODY_NO_MAILTO 0, __BODY_TEXT_X4 0, __CP_URI_IN_BODY 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_ALT 0, __DC_PHRASE 0, __DKIM_ALIGNS_1 0, __DKIM_ALIGNS_2 0, __DQ_IP_FSO_LARGE 0, __DQ_S_HIST_1 0, __DQ_S_IP_100K 0, __DQ_S_IP_10K 0, __DQ_S_IP_1MO 0, __DQ_S_IP_2D 0, __DQ_S_IP_MC_1 0, __DQ_S_IP_MC_1_P 0, __DQ_S_IP_RE_100_P 0, __DQ_S_IP_SC_1_P 0,
 __DQ_S_IP_SC_1_P_SP_50_P 0, __DQ_S_IP_SP_10_P 0, __DQ_S_IP_SP_25_P 0, __DQ_S_IP_SP_50_P 0, __DQ_S_IP_SP_5_P 0, __DQ_S_IP_SP_75_P 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __FRAUD_PARTNERSHIP 0, __FRAUD_URGENCY 0, __FROM_DOMAIN_NOT_IN_BODY 0, __FROM_NAME_NOT_IN_BODY 0, __GMAIL_HTTPREST 0, __HAS_FROM 0, __HAS_HTML 0, __HAS_MSGID 0, __HAS_SENDER 0, __HEX28_LC_BOUNDARY 0, __HIGHBIT_ASCII_MIX 0, __HREF_LABEL_TEXT 0, __HREF_LABEL_URI 0, __HTML_AHREF_TAG 0, __HTML_ATTR_DIR 0, __HTML_BAD_END 0, __HTML_BAD_START 0, __HTML_DIR_LTR 0, __HTML_TAG_DIV 0, __HTTPS_URI 0, __MIME_HTML 0, __MIME_TEXT_H 0, __MIME_TEXT_H1 0, __MIME_TEXT_H2 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_TEXT_P2 0, __MIME_VERSION 0, __MSGID_DOMAIN_NOT_IN_HDRS 0, __MULTIPLE_URI_TEXT 0, __OEM_PRICE 0, __RCVD_FROM_SUSP_HOSTNAME 0, __RCVD_GOOGLE_GMAILAPI 0, __RCVD_GOOGLE_IPV6 0, __SANE_MSGID 0,
 __SINGLE_URI_MPART_BOTH 0, __STOCK_PHRASE_7 0, __SUBJ_ALPHA_END 0, __TEXT_DIR_LTR 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NO_MAILTO 0, __URI_NS , __URI_WITH_PATH 0, __X_GM_MESSAGE_STATE 0, __X_GOOGLE_DKIM_SIGNATURE 0, __X_GOOGLE_SMTP_SOURCE 0, __YOUTUBE_RCVD 0'

Describe the solution you'd like
The Spam Score being shown

Describe alternatives you've considered
Not supporting the header

Additional context
Have not yet found a good documentation on what the report numbers mean and how/if the spam probability can be directly calculated from the report...

As one can see, the overall probability score is different than the current score of RSpamD / SpamAssassin etc., it's a percentage probability.

Maxing out one core and crashing TB

Describe the bug
Yesterday, suddenly, Spam Scores started maxing out one core continuously until TB eventually hangs and crashes.

Reproduction steps
¯\_(ツ)_/¯
I have 5 email accounts (2 are Gmail) in TB, and the Spam Scores column is enabled for all of them.

Expected behavior
Spam Scores should not cause TB to max out one core, and it should not cause TB to crash.

Screenshots
N/A

Thunderbird (please complete the following information):

  • OS: Arch Linux
  • Version: 102.4.2 (64-bit)

Spam Score add-on (please complete the following information):

  • Version: 1.4.1

Additional context
N/A

Error in additional information about spam

Spam detail parameters aren't read correctly. Reading starts with "Content preview", if the word in capital letters appears. Due to incorrect reading of rule names, more rules appear in the list with errors. The values aren't read at all and only 0 appear. Values aren't read and only 0 appear.

obraz
obraz
obraz

SpamAssassin: Version: 3.4.4
Thunderbird: Version: 78.14.0 (OS: Windows 7; )
Spam Score add-on: Version: 1.2.0

Spam score column not longer available in Thunderbird 115

Describe the bug
Spam score column not longer available in Thunderbird 115. There were GUI changes in Thunderbird 115. I guess it broke the column feature. The button in the message area still works fine.

Reproduction steps
Right click the column headers and the spam score option is no longer available

Expected behavior
The spam score column should be available

Thunderbird (please complete the following information):

  • Windows 11

Spam Score add-on (please complete the following information):

  • Version: 1.4.1

Contributors discussion

I don't know how we should contact between us so I make this "issue"

Roadmap

  • Fix current Issues
  • Code optimization
  • Add the enhancements/features

Suggestions by contributors

  • dlh2: Spam auto-delete (As Thunderbird doesn't support compare filters)

Keine Anzeige von ScoreIcons in der Spam Score Spalte

Hallo, also auf diesem Wege, ich habe alles mehrfach wie in der Anleitung beschrieben gemacht, es wird lediglich 1 Mail von tausenden mit einem Score angezeigt (Grün), alle anderen Mails sind leer? habe mehrere Rechner probiert, überall dasselbe? was tun?
image

Duplicates in score list

Describe the bug
Some (most/all) individual scores are listes twice in the detailed list. Sometimes even with different scores
In the example:
RCVD_IN_PBL is listed with 3.3as well as 0
DATE_IN_PAST_03_06 is listed with 1.6as well as 0
BAYES_00 is listed with -1.9as well as 0

T_SCC_BODY_TEXT_LINE is listed with and without description

Expected behavior
Each score should only be listed once, with the right score

Screenshots
1
2

Thunderbird (please complete the following information):

  • OS: macOS Mojave (10.14.6) & Big Sur (11.6.1)
  • Version: 91.9.0

Spam Score add-on (please complete the following information):

  • Version: 1.4.0

Additional context

Source:

X-Spam-Level: *
X-Spam-Status: No, score=1.7 required=5.0 tests=BAYES_00,BITCOIN_ONAN,
	BITCOIN_SPAM_02,DATE_IN_PAST_03_06,PDS_BTC_ID,RCVD_IN_DNSWL_HI,
	RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RCVD_IN_VALIDITY_RPBL,RCVD_IN_XBL,
	RDNS_NONE,SPF_FAIL,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED
	autolearn=no autolearn_force=no version=3.4.2
X-Spam-Report: 
	*  0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was
	*      blocked.  See
	*      http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
	*      for more information.
	*      [URIs: olefa.com]
	*  3.3 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL
	*      [186.82.84.17 listed in zen.spamhaus.org]
	*  0.4 RCVD_IN_XBL RBL: Received via a relay in Spamhaus XBL
	* -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
	*      [score: 0.0000]
	*  1.3 RCVD_IN_VALIDITY_RPBL RBL: Relay in Validity RPBL,
	*      https://senderscore.org/blocklistlookup/
	*      [186.82.84.17 listed in bl.score.senderscore.com]
	* -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/,
	*      high trust
	*      [186.82.84.17 listed in list.dnswl.org]
	*  0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
	*  1.6 DATE_IN_PAST_03_06 Date: is 3 to 6 hours before Received: date
	*  0.0 SPF_FAIL SPF: sender does not match SPF record (fail)
	*      [SPF failed: Please see http://www.openspf.org/Why?s=mfrom;id=info%40olefa.com;ip=186.82.84.17;r=s1.educdesign.lu]
	*  0.0 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP
	*      address
	*      [186.82.84.17 listed in dnsbl.sorbs.net]
	*  0.8 RDNS_NONE Delivered to internal network by a host with no rDNS
	* -0.0 T_SCC_BODY_TEXT_LINE No description available.
	*  0.0 PDS_BTC_ID FP reduced Bitcoin ID
	*  0.2 BITCOIN_SPAM_02 BitCoin spam pattern 02
	*  1.0 BITCOIN_ONAN BitCoin + [censored]

Headers as they are displayed by Thunderbird:
Thunderbird headers display

Might be regex having problems with something in the description, e.g. + in BITCOIN_ONAN?

Es werden nur bei älteren E-Mails vereinzelt Spam-Scores angezeigt

Hi,

ich nutze Thunderbird 91.0.1 (64-Bit).

Mein Posteingang hat über 7000 E-Mails (IMAP).
Wenn ich den Posteingang anklicke und wie geschildert auf Eigenschaften und Reparieren klicke, erhalte erst mehrfach die Meldung, dass das Senden der E-Mail fehlgeschlagen und ist und wenn er durch ist, hat nur ein Bruchteil der E-Mails einen Spam-Score obwohl alle E-Mails einen haben.

Was mache ich falsch?

Please replace .png with .svg icons

Is your feature request related to a problem? Please describe.
On hi-res screens, the icons indicating the spam score becomes somewhat fuzzy:
Screenshot from 2021-04-01 19-54-59
Please compare it to the star, which is crisp.

Describe the solution you'd like
Replacing the icon with a .svg file should keep scaling problems at bay.

Additional context
The Show InOut add-on had a similar problem which was sorted by replacing the icon with a .svg file.

Add support for X-VR-SPAMSCORE headers (OVH)

Is your feature request related to a problem? Please describe.
The Servers of my hosting provider (https://ovh.es/) only add spam-headers of the format:

X-VR-SPAMSTATE: SPAM
X-VR-SPAMSCORE: 800
X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvtddrudejiedgheehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucgorfhhihhshhhinhhgqdfuohhrthfjughrucdlfedttddmnegohfhorhgsihguuggvnhfjughrucdlhedttddmnecujfgurhephffufffvtgfgsehhjedttddttdejnecuhfhrohhmpeeulhhoohguucfrrhgvshhsuhhrvgcujfgvrghlthhhuceonhhorhgvphhlhiesphhhohhnhhhordhnvghtqeenucggtffrrghtthgvrhhnpeehfffhheeltedttdfgleejveejteffjeehjeduueejjeeileehleeuudffgefhleenucffohhmrghinhepnhhuihguhidrtghomhenucfkpheptddrtddrtddrtddpgeehrddugeekrddutddrvddtvdenucfhohhrsghiugguvghnjfgurhephffufffvtgfgsehhjedttddttdejnecurfhhihhshhhinhhgufhorhhtjfgurhepfffghffuvfgtsehhjedttddttdejnecuufhprghmkfhppfgvthifohhrkhepgeehrddugeekrddutddrvddtvdenuceurggutfgvphhuthffohhmrghinhepphhhohhnhhhordhnvghtnecuvehluhhsthgvrhfuihiivgepfeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepihhnfedvrdhmrghilhdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomheppdhrtghpthhtoheprggumhhinhesthgvmhgtohdrvghs

The add-on does not seem to recognize these. No Scores are shown.

Describe the solution you'd like
Add support for parsing these header fields in addition to X-VR-SPAMSCORE[...]

Add support for X-Spam-Report header added by Exim

Would it be possible to add support for headers added by Exim? Since I'm not using rspamd in milter mode. Especially the detailed view with the used symbols would be the most interesting for me.

Example headers:

X-Spam-Status: No, score=1.9
X-Spam-Score: 1.9
X-Spam-Bar: +
X-Spam-Report: Action: no action
 Symbol: HAS_REPLYTO(0.00)
 Symbol: BAYES_SPAM(0.02)
 Symbol: FORWARDED(0.00)
 Symbol: IP_REPUTATION_HAM(-0.00)
 Symbol: R_SPF_ALLOW(0.00)
 Symbol: TO_DN_NONE(0.00)
 Symbol: DKIM_TRACE(0.00)
 Symbol: HAS_X_PRIO_THREE(0.00)
 Symbol: SUBJECT_ENDS_EXCLAIM(0.00)
 Symbol: FORGED_SENDER(0.00)
 Symbol: MIME_TRACE(0.00)
 Symbol: RCVD_TLS_LAST(0.00)
 Symbol: ASN(0.00)
 Symbol: FROM_NEQ_ENVFROM(0.00)
 Symbol: ARC_NA(0.00)
 Symbol: R_DKIM_ALLOW(0.00)
 Symbol: FROM_HAS_DN(0.00)
 Symbol: FORGED_SENDER_FORWARDING(0.00)
 Symbol: TO_MATCH_ENVRCPT_ALL(0.00)
 Symbol: URIBL_GREY(1.50)
 Symbol: REPLYTO_DOM_NEQ_FROM_DOM(0.00)
 Symbol: PREVIOUSLY_DELIVERED(0.00)
 Symbol: FORGED_SENDER_VERP_SRS(0.00)
 Symbol: RCPT_COUNT_ONE(0.00)
 Symbol: BAD_REP_POLICIES(0.10)
 Symbol: MANY_INVISIBLE_PARTS(0.05)
 Symbol: DMARC_NA(0.00)
 Symbol: MIME_HTML_ONLY(0.20)
 Symbol: RWL_MAILSPIKE_POSSIBLE(0.00)
 Symbol: RCVD_COUNT_TWO(0.00)
 Message-ID: [email protected]
X-Spam-Flag: NO

Add option to show column icons and scores only for spams

Is your feature request related to a problem? Please describe.
Personally when I am looking at the message list, I only want a quick overview, so I am only interested if an email was classified as spam, especially:

  • I am not interested if it was not considered to be spam. Showing the green icons is distracting me from the important information, that the message might be spam (information overload …)
  • and I am definitely not interested in the spam score. That's a detail I can investigate in the message pane, if I am thus inclined.

Describe the solution you'd like

  1. I would like a column, showing only if a message is considered as spam, that is, it only shows the red icon, so that it clearly stands out.
  2. I would like a column, which does not show the spam score.

I can think of two approaches:

  1. Make the column configurable, so that you can select what is shown. I can think of those selectable options: Red icon, yellow icon, green icon, score as number.
  2. Provide an additional column which only shows the red icon.

My preferred approach would be to have a second column, which is configurable. Why? If I look through my spam folder, I might want to se the spam score in the message list … So for me two different columns would be the best.

If the column width gets smaller, the header is truncated to e.g. Spa…. An icon would be appreciated here (TB already has one for its own Junk Status column).

Describe alternatives you've considered
I can "remove" the score by making the column so small, that just the icon is displayed. But I still get the green (and yellow) icons (and the column header now looks awful).

Additional context
The toolbar button in the message pane shows Spam score: xxx, which takes up quite a lot of space. Can this somehow be shortened? Maybe just show the (numerical) score? Because the tooltip carries the full name.

Icon as column header

Is your feature request related to a problem? Please describe.
If the column width gets smaller, the header is truncated to e.g. Spa….

Describe the solution you'd like
An icon would be appreciated here (TB already has one for its own Junk Status column).

Additional context
see #20

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.