Closed
Bug 17483
(killfile)
Opened 25 years ago
Closed 22 years ago
[FEATURE] implementation of news filters
Categories
(MailNews Core :: Backend, enhancement, P3)
MailNews Core
Backend
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.3alpha
People
(Reporter: laurel, Assigned: sspitzer)
References
(Blocks 5 open bugs, )
Details
(Keywords: helpwanted)
Attachments
(2 files, 10 obsolete files)
(deleted),
image/gif
|
Details | |
(deleted),
patch
|
Bienvenu
:
superreview+
|
Details | Diff | Splinter Review |
This bug is to track the backend implementation of news filters.
Once this is implemented in basic terms, please provide info on any intended
exceptions to the 4.5 news fitlering implementation.
Assignee | ||
Comment 1•25 years ago
|
||
accepting.
Assignee | ||
Comment 2•25 years ago
|
||
marking m15.
Comment 3•25 years ago
|
||
No you didn't. (sspitzer)
Comment 6•25 years ago
|
||
[FEATURE] bugs past M16 are OUT for this release. Marking M20. If you disagree
with this action, please help me explain it to the PDT.
Target Milestone: M17 → M20
Moving target milestone to "future" to be reviewed at a later time
Target Milestone: M20 → Future
Updated•24 years ago
|
Keywords: mozilla1.0
Assignee | ||
Comment 8•23 years ago
|
||
not sure what changes are required to the front end or back end to get this
working, but it sure would be nice.
4.x windows (maybe mac, too) supported it.
note to self, check the migration code.
Keywords: 4xp
Assignee | ||
Comment 9•23 years ago
|
||
this bug covers the FE and BE work necessary.
the first thing to do is to get newsgroups to show up in the filter picker.
Summary: [FEATURE] Backend implementation of news filters → [FEATURE] implementation of news filters
Comment 10•23 years ago
|
||
See bug 84036. News accounts were visible in the filter picker at one point,
even though that was never implemented.
Comment 11•23 years ago
|
||
It would be great if the same UI could be used for mail and news so that I can
e.g. apply filters to both (flag message if my nick name appears, etc...).
But then some filters make no sense and had to be disabled. It might be easier
to create a separate UI in the end, wouldn't it?
Comment 12•23 years ago
|
||
Adding my vote of "please please please do this" to this. Also, OE has this.
Comment 13•23 years ago
|
||
I'd also like to add a please-please-pretty-please-with-sugar-on-top vote.
There are a couple of posters on some of the newsgroups that I read who are
really getting on my nerves, and I'd like to be able to block them.
Blocks: GlobalFilters
Reporter | ||
Comment 14•23 years ago
|
||
*** Bug 108709 has been marked as a duplicate of this bug. ***
Updated•23 years ago
|
Comment 15•23 years ago
|
||
Almighty Mozilla team, I besiege thee! We needeth news filters to block all
those evil cratures on usenet! So have mercy!
Comment 16•23 years ago
|
||
cybermage: I beseech thou to use the correct words if you insist on making light
of such a heavy matter. For the request for which you have pleaded, we require a
chronology potion, such that time be stopped whilst we affect ourselves upon
this feature.
Comment 17•23 years ago
|
||
about correct words: I'd need a spellchecker with a proper AI for that...; in
any case, it should be animated, in the form of a doggy, or a cute cat. Hmmm,
sounds awfully familiar somehow.
:-)
Comment 18•23 years ago
|
||
*** Bug 138760 has been marked as a duplicate of this bug. ***
Comment 19•22 years ago
|
||
*** Bug 153627 has been marked as a duplicate of this bug. ***
Comment 20•22 years ago
|
||
It is unbelieveable to me that this bug has not been fixed. Newsgroup filtering
is essential to any useful newsgroup tool, plus version 4.x had this capability.
Get it done already! I went out of my way to create a bugzilla login just to
submit this. This question comes up so many times on the netscape newsgroups
it's not even funny.
Comment 21•22 years ago
|
||
No evangelism comments, please. If you want this fixed, write the code, or vote
for it.
Comment 22•22 years ago
|
||
*** Bug 162106 has been marked as a duplicate of this bug. ***
Comment 23•22 years ago
|
||
Just added my vote. Would love to help with this, but my C programming skills
are as rusty as the gun turret they just pulled up from the USS Monitor.
Reporter | ||
Comment 24•22 years ago
|
||
*** Bug 168527 has been marked as a duplicate of this bug. ***
Comment 25•22 years ago
|
||
With 96 votes and no detectable activity, how about marking this helpwanted?
(I'm not sure who is supposed to do that. The owner, I'd think.) As the bug is
also assigned, chances are that a contributor looking for a bug to fix won't
catch this one in her net :-/
Comment 26•22 years ago
|
||
helpwanted.
Especially in observance of bug 163993 and bug 92997.
Blocks: advocacybugs
Keywords: helpwanted
Updated•22 years ago
|
Alias: killfile
Comment 27•22 years ago
|
||
Bug #19442 is a general filtering feature, and should not be considered blocked
by this bug.
No longer blocks: 19442
Comment 28•22 years ago
|
||
As a 'non-coder', is there anything else I can do to help implement this
feature, besides voting for it?
Comment 29•22 years ago
|
||
solon: you can certainly help in writing test cases / test outline for this
feature if it ever gets implemented.
Take a look at http://www.mozilla.org/quality/mailnews/tests/index.html for
examples of the test outlines already present for existing features.
Comment 30•22 years ago
|
||
This lack of functionality renders the news reader nigh on unuseable.
Particularly when groups that I use are being flooded by script kiddies. Even if
it were implemented using the 'custom header' filter as used in the mail
filtering, it would be a god send. Why is there not a common message filter
class that can parse and filter messages on their headers?
IMHO - this is the single biggest functional deficiency in the news component.
Does it appear anywhere on the road map?
Updated•22 years ago
|
Severity: normal → enhancement
Keywords: mozilla1.0 → mozilla1.3
Comment 31•22 years ago
|
||
I take issue with the severity change from "normal" to "enhancement". This is
not an "enhancement", this is basic newsreader functionality.
Comment 32•22 years ago
|
||
Garth, the plain fact is that the newsreader does work. The lack of filtering is
a huge problem, but at least you can read Usenet. The fact that filtering is a
very, very badly needed feature doesn't mean it isn't a feature, and thus for
Bugzilla purposes considered an enhancement.
What is needed is a higher prioritization of this bug. Currently, it is set only
at P3, which is somewhere in the middle. Now that Mozilla 1.2 is nearly out the
door, it's time this badly needed feature got more attention. I'm not aware of
anything in the newsreader that is needed more. I recommend P1 priority.
The keyword "helpwanted" is outstanding on this bug. If somebody could
contribute a patch, I'm sure the assignee would be appreciative.
Comment 33•22 years ago
|
||
I've said it before and I'll say it again - contribute something or stop
complaining. Nobody owes you this feature.
Assignee | ||
Comment 34•22 years ago
|
||
implementing this will mean we can turn on the spam feature (when it lands) for
news. (see #169638)
for spam, we need to hook into the bayesian filters after the normal filters
are run.
here's the steps I'll take to implement this:
step 1
1) show newsgroups (not servers) in the filter list dialog
2) make it so the right criteria and actions show up for online news filters
(no offline yet.)
subject / sender (contains/is/begins with/ends with)
then mark thread, watch thread, ignore thread. (4.x had delete?)
3) fix the news code to get the filter service, and do the right thing to the
incoming news message
step 2:
4) look into 4.x delete action
5) filter logging
6) offline news filters (different table for UI)
Assignee | ||
Comment 35•22 years ago
|
||
Assignee | ||
Comment 36•22 years ago
|
||
working on this js error:
JavaScript error:
line 0: uncaught exception: [Exception... "Component returned failure code:
0x8
0004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIMsgFolder.getFilterList]" nsresult:
"0x8
0004001 (NS_ERROR_NOT_IMPLEMENTED)" location: "JS frame ::
chrome://messenger/c
ontent/FilterListDialog.js :: setServer :: line 162" data: no]
Assignee | ||
Comment 37•22 years ago
|
||
Assignee | ||
Comment 38•22 years ago
|
||
I think I see what "delete" did in 4.x on delete, we wouldn't even both to add
it to the db. (different than ignore)
Attachment #105001 -
Attachment is obsolete: true
Attachment #105003 -
Attachment is obsolete: true
Assignee | ||
Comment 39•22 years ago
|
||
more items:
1) instead of n.m.p.xul/rules.dat, we should be doing n.p.m.xul (summary file
is n.p.m.xul.msf). this is how 4.x did it, so if we do it the same way,
migration will work.
2) show ignore thread / watch thread in action menu list (as well as delete
and mark as read, which are already there
3) hide other actions for news
4) allow filter create to set the filter type (InboxRule / NewsRule)
Comment 40•22 years ago
|
||
I think a pretty separator between the mail accounts and the news
accounts/groups in the drop-down would make the distinction between them clearer.
Assignee | ||
Comment 41•22 years ago
|
||
Attachment #105005 -
Attachment is obsolete: true
Assignee | ||
Comment 42•22 years ago
|
||
"I think a pretty separator between the mail accounts and the news
accounts/groups in the drop-down would make the distinction between them
clearer."
do you find the screen shot (see http://bugzilla.mozilla.org/attachment.cgi?
id=105002&action=view) unclear?
We don't have a separator between accounts in other pickers.
Comment 43•22 years ago
|
||
> do you find the screen shot (see http://bugzilla.mozilla.org/attachment.cgi?
id=105002&action=view) unclear?
Not really but I'm not an average user.
> We don't have a separator between accounts in other pickers.
Here it's a little different though. Mail accounts are selected directly while
newsgroups are selected by first selecting the news server (well, expanding its
menu) and then the particular group.
That said, I don't think separators between mail servers and news servers in
other pickers would be a bad thing.
Assignee | ||
Comment 44•22 years ago
|
||
Attachment #105024 -
Attachment is obsolete: true
Assignee | ||
Comment 45•22 years ago
|
||
cool, I was able to create filters to watch and ignore threads.
still need to:
1) hide other actions for news
2) test that delete and mark as read filters
3) fix "manually run selected filter(s) on folder" picker in filter list dialog
for news
4) test out filter logging
there's some optimizations that could be made, too.
but I'd land what I've got now for 1.3 alpha, as it's usable.
Assignee | ||
Comment 46•22 years ago
|
||
mark as read worked. (so cool, when I post to newsgroups, I mark my own posts
as read.)
some more todo items:
1) pre-flight account picker (if newsgroup selected in folder pane)
2) spin off bugs about offline news filters
3) test logging
Assignee | ||
Updated•22 years ago
|
Target Milestone: Future → mozilla1.3alpha
Assignee | ||
Comment 47•22 years ago
|
||
Attachment #105026 -
Attachment is obsolete: true
Assignee | ||
Comment 48•22 years ago
|
||
completed items:
1) create filter from messages UI should be enabled for news
2) run filters folder picker and button hidden for news
3) pre-flight account picker (if newsgroup selected)
todo list:
1) pre-flight account picker (if host selected) and
account central filter UI (pick the first newsgroup?)
select first newsgroup, but what if no newsgroups?
2) test logging
3) test delete
4) optimize, code cleanup, self review
5) log bug, about offline news filters
6) log bug, about filter after the fact for news
7) log bug, plug in spam stuff
8) log bug, disable "Run filters on Selected folders" UI when server selected
Attachment #105038 -
Attachment is obsolete: true
Assignee | ||
Comment 49•22 years ago
|
||
delete works as does logging.
updated todo list:
1) pre-flight account picker (if host selected) and
account central filter UI (pick the first newsgroup?)
select first newsgroup, but what if no newsgroups?
2) optimize, code cleanup, self review
3) log bug, about offline news filters
4) log bug, about filter after the fact for news
5) log bug, plug in spam stuff
6) log bug, disable "Run filters on Selected folders" UI when servers are
selected
Assignee | ||
Comment 50•22 years ago
|
||
Attachment #105049 -
Attachment is obsolete: true
Assignee | ||
Comment 51•22 years ago
|
||
I think we should be able to do "isn't" rules with with news filters.
We can't do it with online news searches / filters, but we can with filters.
(we can do anything with offline news searches, since we have the bodies
locally, but offline news filters aren't implemented yet).
So instead of:
[Subject / Sender] [contains / is / begins with / ends with] [...]
[delete | watch | ignore | mark as read]
Looking at how the code works, we could also do:
message-id, date, size, references, lines (though not sure how useful some of
these would be to most users)
We should be able to do "isn't" and "doesn't contain".
When mscott's view code fully lands, we'll be able to do
[Sender] is in [Personal Addressbook]
I think we can also add more actions, like labels, priority, and flagging.
Comment 52•22 years ago
|
||
a few ? nits, other than that, looks fine.
+ if (getScopeFromFilterList(gFilterList) ==
Components.interfaces.nsMsgSearchScope.news)
+ defaultAction = nsMsgFilterAction.Delete
+ else
+ defaultAction = nsMsgFilterAction.MoveToFolder;
+
can use the ? operator here and below.
+ var hide = false;
+
+ if (element.getAttribute("hideforscope") == aScope)
+ hide = true;
+ else if (element.getAttribute("showforscope") &&
(element.getAttribute("showforscope") != aScope))
+ hide = true;
this can just be:
var hide = (element.getAttribute("hideforscope") == aScope)
|| (element.getAttribute("showforscope") &&
(element.getAttribute("showforscope") != aScope));
firstItem = (server.type == "nntp") ? msgFolder.URI : rootFolder.URI
+ if (server.type == "nntp")
+ firstItem = msgFolder.URI;
+ else
firstItem = rootFolder.URI;
and this comment can either be removed, or should be reworded - it was basically
a note to myself in the code this was taken from:
+ // for ignore and watch, we will need the db
+ // to check for the flags in msgHdr's that
+ // get added, because only then will we know
+ // the thread they're getting added to.
Comment 53•22 years ago
|
||
Comment on attachment 105053 [details] [diff] [review]
updated patch, skip the filter stuff when downloading headers if the filter count is zero
sr=bienvenu, modulo the nits.
Attachment #105053 -
Flags: superreview+
Assignee | ||
Comment 54•22 years ago
|
||
Attachment #105053 -
Attachment is obsolete: true
Assignee | ||
Comment 55•22 years ago
|
||
1) add more functionality.
Beyond, 4.x, 1.3 alpha will be able to do:
[Subject | Sender] [contains| doesn't contain | is | isn't | begins with | ends
with] [...]
and also:
[Date] [is | isn't | < | > | == ] [...]
and the availabe actions are
[delete | watch | ignore | mark as read | label | set priority | flag]
and once it's supported (from mscott's view code), we'll be able to do:
[Sender] [is in] [addressbook]
2)
in 4.x, news filter name was netscape.test.dat, not netscape.test, so I fixed
that.
Attachment #105145 -
Attachment is obsolete: true
Assignee | ||
Comment 56•22 years ago
|
||
see two spin off bugs:
bug 178397 (about using HEAD command for more headers)
bug 178398 (about other XOVER fields)
I'll seek a re-review from bienvenu, and land in early 1.3 alpha
Assignee | ||
Comment 57•22 years ago
|
||
Attachment #105167 -
Attachment is obsolete: true
Comment 58•22 years ago
|
||
Is there a bug for mscott's view code? (because I REALLY want to be able to do
"sender is not in address book" - obviously not part of this bug, but I'd like
to find the right one
Comment 59•22 years ago
|
||
Comment on attachment 105173 [details] [diff] [review]
themes part checked in (bug #178061). but patch includes fix for #123767
sr=bienvenu (but you can change all the PR_FREEIF's to PR_Free, if the code
returns immediately after the Free (PR_Free checks for null - PR_FREEIF checks
for null, AND nulls out the pointer)
Attachment #105173 -
Flags: superreview+
Comment 60•22 years ago
|
||
> Is there a bug for mscott's view code?
Bug 176850.
Assignee | ||
Comment 61•22 years ago
|
||
fixed. I'll spin up other issues that I know about in new bugs, and list them
back here in this bug.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment 62•22 years ago
|
||
Now that this bug is being dealt with, I've run out of excuses to give ben@netscape.com as to why I haven't reinstalled Mozilla yet..
Assignee | ||
Comment 63•22 years ago
|
||
spin off bug:
implement filter after the fact for news. [bug 178870]
Reporter | ||
Comment 64•22 years ago
|
||
Marking this bug verified, feature implemented, generally working. Any specific
issues found with news filters will be logged separately.
OK using nov19 commercial trunk.
Status: RESOLVED → VERIFIED
Comment 65•22 years ago
|
||
*** Bug 182987 has been marked as a duplicate of this bug. ***
Comment 66•22 years ago
|
||
I'm afraid, I cannot see where the specific bug I reported is duplicated here. Please
clarify.
Comment 67•22 years ago
|
||
Stewart, you've reported Bug 182987 as newsgroup filters (usenet killfiles) not
opening a dialogue box in 1.2. That's because newsgroup filters have not been
implemented at all until the 1.3 stream, and that's what this bug (the one
you've been duped to) refers to.
Newsgroup filters have been implemented, and are available if you want to
download one of the nightly builds that will be the basis for the 1.3 release.
Hope this helps
Comment 68•22 years ago
|
||
*** Bug 184648 has been marked as a duplicate of this bug. ***
Comment 69•21 years ago
|
||
Might be we have a backend for News Filters, but we only had it for a very short
time, actually it does not work, pls. see the many bugs concerning this feature.
Actual build confirming this problem:
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.5b) Gecko/20030910
I am afraid we have a regression here
Rainer
Comment 70•21 years ago
|
||
News filters don't work in 1.6final or 1.7alpha either
Someone should reopen it
Comment 71•21 years ago
|
||
News filters don't work in 1.6final or 1.7alpha either
Someone should reopen it
Comment 72•21 years ago
|
||
this bug was fixed. if things don't work today, find or file a new bug.
Comment 73•21 years ago
|
||
See unconfirmed bug 225454, http://bugzilla.mozilla.org/show_bug.cgi?id=225454
It seems to have started not working again with 1.6.0
Updated•20 years ago
|
Product: MailNews → Core
Comment 74•18 years ago
|
||
News filtering works for me running Thunderbird version 1.5.0.9 (20061207) but only for postings I receive AFTER I set the filter.
Consequently, the menu item "Tools -> Run Filters on Selected Folder" is NOT available for news folders. Please see enhancement request bug 178870.
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•