Closed
Bug 169557
Opened 24 years ago
Closed 19 years ago
incorporate basic message filtering plugin interface
Categories
(MailNews Core :: Backend, defect)
MailNews Core
Backend
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.
| Assignee | ||
Updated•24 years ago
|
| Assignee | ||
Comment 1•24 years ago
|
||
This currently only contains methods for filtering on headers. Still need to
add (at least) body based filtering, and Bayesian classification-correction
methods.
| Assignee | ||
Comment 2•24 years ago
|
||
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.
| Assignee | ||
Comment 3•24 years ago
|
||
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
Updated•24 years ago
|
QA Contact: gayatri → laurel
| Assignee | ||
Comment 4•24 years ago
|
||
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 5•24 years ago
|
||
Comment on attachment 100782 [details] [diff] [review]
interface patch, v3
r=bienvenu
Attachment #100782 -
Flags: review+
Comment 6•24 years ago
|
||
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+
| Assignee | ||
Comment 7•24 years ago
|
||
Patch checked in. This interface will need a bunch more massaging, so I'm
leaving this bug open for the moment.
| Assignee | ||
Updated•24 years ago
|
Attachment #100782 -
Attachment description: patch, v3 → interface patch, v3
| Assignee | ||
Comment 8•24 years ago
|
||
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.
| Assignee | ||
Comment 9•24 years ago
|
||
Comment 10•24 years ago
|
||
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.
Comment 11•24 years ago
|
||
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
Comment 12•24 years ago
|
||
use junkscore instead of score, #ifdef out the places where the rubber hits the
road
Attachment #102268 -
Attachment is obsolete: true
Comment 13•24 years ago
|
||
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 14•24 years ago
|
||
Comment 15•24 years ago
|
||
Comment on attachment 102276 [details] [diff] [review]
patch addressing Seth'scomments
this was checked in.
Attachment #102276 -
Attachment is obsolete: true
| Assignee | ||
Comment 16•24 years ago
|
||
Comment on attachment 104527 [details] [diff] [review]
fix last msg not getting scored problem.
r=dmose
Attachment #104527 -
Flags: review+
| Assignee | ||
Comment 17•24 years ago
|
||
Comment on attachment 104528 [details] [diff] [review]
fix handling of header=filter urls and memory cache
r=dmose
Attachment #104528 -
Flags: review+
Comment 18•24 years ago
|
||
Comment on attachment 104527 [details] [diff] [review]
fix last msg not getting scored problem.
sr=sspitzer
Attachment #104527 -
Flags: superreview+
Comment 19•24 years ago
|
||
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+
Comment 20•24 years ago
|
||
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.
Comment 21•24 years ago
|
||
this fixes white listing, and makes it so we set a score on whitelisted
messages, so they look scored.
| Assignee | ||
Comment 22•24 years ago
|
||
Comment on attachment 104567 [details] [diff] [review]
fix whitelisting, and score whitelisted msgs
r=dmose
Attachment #104567 -
Flags: review+
Updated•24 years ago
|
Attachment #104567 -
Flags: superreview+
Updated•21 years ago
|
Product: MailNews → Core
Comment 23•19 years ago
|
||
is this finished? or is it still open for items mentioned in comment 3?
QA Contact: laurel → backend
Comment 24•19 years ago
|
||
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
Updated•18 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•