libnotify reports spam detected by internal TB junk filter

Bug #461505 reported by jmrk
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Thunderbird Indicator
In Progress
Medium
Unassigned

Bug Description

At least in my case this is quite annoying since I'm filtering ~300 spam mails a day with the TB junk filer. There should be an option to enable/disable junk reports.

Revision history for this message
Ruben Verweij (ruben-verweij) wrote :

Thanks for your bug report and help in making this addon better. I am working on this and I will post back when I have any results worth mentioning.

Changed in libnotify-mozilla:
assignee: nobody → Ruben Verweij (ruben-verweij)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Ruben Verweij (ruben-verweij) wrote :

I committed a (possible) fix. Could you please test it? The code is in the branch linked to this report. If you need any help with testing, please let me know.

Changed in libnotify-mozilla:
status: In Progress → Fix Committed
Revision history for this message
jmrk (joergen-kornfeld) wrote :

Tested it... might be some improvement. I started a bit debugging and it seems to be that junkScore is empty even when the mail is classified as spam, but i also had once a junk score of 100 (with no notification). Sorry that I cannot help further, my JS skills are pretty limited.. For testing I changed the code to:

  OnItemAdded: function OnItemAdded(aParentItem, aItem)
  {
    var header = aItem.QueryInterface(Components.interfaces.nsIMsgDBHdr);
    var junkScore = header.getStringProperty("junkscore");
    var isJunk = ((junkScore != "") && (junkScore != "0"));
----------------------
  var prompts = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
                        .getService(Components.interfaces.nsIPromptService);
     prompts.alert(null, "junkScore", junkScore);
----------------------
    if(!isJunk){
     var folder = header.folder;

     if (!this.checkFolder(folder)) {
       return;
     }

thx for any help and merry christmas!

Revision history for this message
Ruben Verweij (ruben-verweij) wrote :

Strange... I will have to investigate this a little bit further then. Thanks for your help and a merry christmas to you too! ;-)

Changed in libnotify-mozilla:
status: Fix Committed → In Progress
Revision history for this message
Burkart Lingner (burkart) wrote :
Revision history for this message
Burkart Lingner (burkart) wrote :

On my system spam was also displayed the same way as regular new messages so I wrote a patch. It removes the event handler binding for OnItemAdded() whose junk checking didn't work for me. Instead I added a new event handler msgsClassified() which is called after messages have passed the junk filter. This function then calls the old OnItemAdded() to make the change as minimal as possible. The patch is relative to the current version 1.1 (not trunk).

To try out the patch, replace thunderbird-indicator.jar under ~/.<email address hidden>/chrome/ with the version attached to this post.

Changed in libnotify-mozilla:
assignee: Ruben Verweij (ruben-verweij) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.