MozillaZine


Removal of {Disarmed} from Subject Line

Discussion of features in Mozilla Thunderbird
BobBoffin
 
Posts: 3
Joined: July 19th, 2021, 10:37 am

Post Posted July 20th, 2021, 8:12 am

Recently a program called MailScanner has been actively looking at emails directed through a number of servers and adding the text {Disarmed} to the subject line if it has found and removed code from the email that sends information back to the originator of the message. I now find that the majority of my emails are so marked.

While I applaud the motives behind MailScanner's actions I find the additional text annoying and over long. In some cases it could even remove significant details from a long subject line.

Looking at the documentation of how to write an addon I wonder if it would be possible to write an addon that examined the subject of each incoming email and replaced the {Disarmed} text with something shorter such as a single rarely used character (or possibly more than 1).

Clearly there is code in Thunderbird that can examine incoming emails as that is how message filters work but I'm not sure if addons can use this.

Please could somebody advise me whether such an approach would work or suggest another way to achieve my aim.

Bob Boffin

tanstaafl
Moderator

User avatar
 
Posts: 48171
Joined: July 30th, 2003, 5:06 pm

Post Posted July 20th, 2021, 1:19 pm

Take a look at the FiltaQuilla add-on at https://addons.thunderbird.net/en-US/th ... la/?src=ss . It even supports letting you run javascript as part of an action in a message filter. You can automatically run messages filters when fetching or sending messages.

https://quickfilters.quickfolders.org/filtaquilla.html

BobBoffin
 
Posts: 3
Joined: July 19th, 2021, 10:37 am

Post Posted July 21st, 2021, 3:38 am

Thank you for this. I'll take a look and see if it meets my needs. I should have realised that filters offered a good approach as I use them a lot anyway.

Bob Boffin

BobBoffin
 
Posts: 3
Joined: July 19th, 2021, 10:37 am

Post Posted July 21st, 2021, 9:48 am

FiltaQuilla was the answer. I adapted the Javascript example to replace {Disarmed} at start of the subject line with %% whenever the subject begins with (Disarmed}

The only minor issue is that the display of the folder doesn't refresh automatically.

Many thanks for your assistance and advice.

Bob Boffin

mgagnonlv
 
Posts: 796
Joined: February 12th, 2005, 8:33 pm

Post Posted July 23rd, 2021, 6:25 pm

I haven't tested the product, but from what I see, you can configure MailScanner differently as shown here:
https://www.mailscanner.info/MailScanne ... %20Subject

You can keep the subject line unchanged, tag it either at the beginning or the end (so you would see more of the standard subject), and I think you can replace "Disarmed" with some other tag of your liking like {safe} or {*}.
Michel Gagnon
Montréal (Québec, Canada)

Return to Thunderbird Features


Who is online

Users browsing this forum: No registered users and 3 guests