Closed Bug 169557 Opened 24 years ago Closed 19 years ago

incorporate basic message filtering plugin interface

Categories

(MailNews Core :: Backend, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.2beta

People

(Reporter: dmosedale, Assigned: dmosedale)

References

(Blocks 1 open bug)

Details

Attachments

(4 files, 7 obsolete files)

5.32 KB, patch
Bienvenu
: review+
sspitzer
: superreview+
Details | Diff | Splinter Review
651 bytes, patch
dmosedale
: review+
sspitzer
: superreview+
Details | Diff | Splinter Review
813 bytes, patch
dmosedale
: review+
sspitzer
: superreview+
Details | Diff | Splinter Review
2.38 KB, patch
dmosedale
: review+
sspitzer
: superreview+
Details | Diff | Splinter Review
I've got the beginnings of such a thing, let's start fleshing it out. It's worth reading bug 151622 (talks about filters and scoring), bug 11035 (especially comment 31 by alecf) as we're thinking about this stuff.
Blocks: 11035, 151622
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.2beta
Attached patch nsIMsgFilterPlugin.idl, v0.1 (obsolete) — — Splinter Review
This currently only contains methods for filtering on headers. Still need to add (at least) body based filtering, and Bayesian classification-correction methods.
Blocks: 120160
Blocks: bayesian
Here's a quick-n-dirty version of the glue that uses a single message filtering plugin for IMAP. This version is "diff -uw" for easier reading (ie don't try and apply to your tree). Needs a bit of cleanup.
Attached patch patch, v2 (obsolete) — — Splinter Review
OK, here's a slightly cleaned up, more complete version of the IMAP glue patch, complete with the interface file. It's still not quite ready for checkin, but people should be able to apply this version to their tree and use it. I think we probably ultimately want to do exactly what alecf suggested in the other bug, which will involve attaching an nsIMsgFilterPlugin to an nsIMsgFilter and then including that (invisibly) in the nsIMsgFilterList. However, that's not needed for the initial bootstrapping exercise.
Attachment #99742 - Attachment is obsolete: true
QA Contact: gayatri → laurel
Depends on: 170841
Newer version that adds some support for message body filtering. I'd like to check this into the tree so that others can start using it related to the bayesian work.
Attachment #99731 - Attachment is obsolete: true
Attachment #99786 - Attachment is obsolete: true
Comment on attachment 100782 [details] [diff] [review] interface patch, v3 r=bienvenu
Attachment #100782 - Flags: review+
Comment on attachment 100782 [details] [diff] [review] interface patch, v3 sr=sspitzer the proof is in the pudding. these interfaces aren't set in stone, but if we have something that uses them that is working, let's get them in and refine as we go.
Attachment #100782 - Flags: superreview+
Patch checked in. This interface will need a bunch more massaging, so I'm leaving this bug open for the moment.
Attachment #100782 - Attachment description: patch, v3 → interface patch, v3
Here's basic glue to call the plugin interface from the IMAP code. Some stuff is commented out (like the actual plugin calls) and some is hardcoded (like whether or not to download all headers), so it's not quite ready for checkin. But if you uncomment CallFilterPlugins(), it will work with the Bayesian stuff currently in the tree.
there are A LOT of formatting changes in these patches that makes it very difficult for me to figure out what's actually changed. I'll keep looking, but it's going to take a lot of time.
Attached patch proposed fix for pop3 and imap (obsolete) — — Splinter Review
this patch gets spam filtering working with the bayesian spam filter plugin. I moved some code from nsImapMailFolder.cpp to nsMsgDBFolder.cpp so it could be shared.
Attachment #100958 - Attachment is obsolete: true
Attachment #100959 - Attachment is obsolete: true
Attached patch patch addressing Seth'scomments (obsolete) — — Splinter Review
use junkscore instead of score, #ifdef out the places where the rubber hits the road
Attachment #102268 - Attachment is obsolete: true
the reason the last message often didn't get scored was that the code that exports the new set into a key array was skipping the last message in a range. Dan, can you r=? I'll get Seth to sr. I'll keep looking into the problem where the url queue gets stalled, but I don't have a reproducible case. I also have a fix so that the scoring urls will put messages in the memory cache correctly, which I'll attach in a sec.
Comment on attachment 102276 [details] [diff] [review] patch addressing Seth'scomments this was checked in.
Attachment #102276 - Attachment is obsolete: true
Comment on attachment 104527 [details] [diff] [review] fix last msg not getting scored problem. r=dmose
Attachment #104527 - Flags: review+
Comment on attachment 104528 [details] [diff] [review] fix handling of header=filter urls and memory cache r=dmose
Attachment #104528 - Flags: review+
Comment on attachment 104527 [details] [diff] [review] fix last msg not getting scored problem. sr=sspitzer
Attachment #104527 - Flags: superreview+
Comment on attachment 104528 [details] [diff] [review] fix handling of header=filter urls and memory cache sr=sspitzer (do we need something similar for pop? mTryingToReadPart is imap only, but maybe there is somethign similar in the pop protocol code.)
Attachment #104528 - Flags: superreview+
no, there's no code in pop3/mailbox that checks for the ?header=filter, and we don't use the memory cache for local msgs, so I don't think we need to do anything about the pop3 case.
this fixes white listing, and makes it so we set a score on whitelisted messages, so they look scored.
Comment on attachment 104567 [details] [diff] [review] fix whitelisting, and score whitelisted msgs r=dmose
Attachment #104567 - Flags: review+
Product: MailNews → Core
is this finished? or is it still open for items mentioned in comment 3?
QA Contact: laurel → backend
Let's mark it fixed - any remaining or new issues can be covered in other bugs.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: