Closed
Bug 19403
Opened 25 years ago
Closed 21 years ago
Edit filters for multiple newsgroups simultaneously, a.k.a "server wide news filters"
Categories
(SeaMonkey :: MailNews: Message Display, enhancement, P3)
SeaMonkey
MailNews: Message Display
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: revenant, Assigned: mscott)
References
Details
(Keywords: helpwanted)
Attachments
(1 file, 10 obsolete files)
13.82 KB,
patch
|
Details | Diff | Splinter Review |
I have Communicator 4.6, so please forgive me if 4.7 has already addressed this.
At the moment, it appears that if you want to apply a specific filter (e.g.
CONTAINS "Netscape") to multiple newsgroups that you have to set up
the filter individually in each and every newsgroup you want to apply it to.
It would be very handy to be able to edit the filters for multiple newsgroups
simultaneously.
Thank you.
Updated•25 years ago
|
Assignee: phil → nobody
Summary: RFE: Edit filters for multiple newsgroups simultaneously. → [HELP WANTED] Edit filters for multiple newsgroups simultaneously.
Whiteboard: [HELP WANTED]
Comment 1•25 years ago
|
||
Add to [help wanted] list
Updated•25 years ago
|
Keywords: helpwanted
Updated•25 years ago
|
Summary: [HELP WANTED] Edit filters for multiple newsgroups simultaneously. → Edit filters for multiple newsgroups simultaneously.
Whiteboard: [HELP WANTED]
Comment 2•22 years ago
|
||
I entirely agree. There should at least be an easy way to have a filter for a
whole news account and even for all newsgroups on all accounts.
Comment 3•22 years ago
|
||
That could be an entry like mynewsserver.org > (all)
I think that's really neccessary... I'm not willing to add the same filter that
marks messages from me for twelve groups.
Comment 4•21 years ago
|
||
OMG this is so old. Why anybody hasn't done this yet? I totally agree, this
feature would be very useful.
Updated•21 years ago
|
OS: Windows 98 → All
Hardware: PC → All
Assignee | ||
Comment 5•21 years ago
|
||
working on a patch...
Assignee: nobody → mscott
Summary: Edit filters for multiple newsgroups simultaneously. → Edit filters for multiple newsgroups simultaneously, a.k.a "server wide news filters"
Assignee | ||
Comment 6•21 years ago
|
||
Assignee | ||
Comment 7•21 years ago
|
||
Attachment #146391 -
Attachment is obsolete: true
Assignee | ||
Comment 8•21 years ago
|
||
Attachment #146417 -
Attachment is obsolete: true
Assignee | ||
Comment 9•21 years ago
|
||
things to figure out:
a) the order, server or per group filter first, see my "// XXX ask david b,
should m_filterList or m_serverFilterList be first?" comment
b) I started out doing the temporary filter thing, but I'm not sure it's the way
to go. I don't want to mark the filters from the filterlist for the group as
temporary, as changes I make to them I want changes to them to persist on disk.
(There is UI for them, unlike the MDN / temp spam stuff for mail). I also have
the luxury for news filters we never move message, so I can always process
filters, so I could just get two filter lists and apply them. Also, I need the
filter log for server wide actions to be off the server, if that makes sense.
NS_IMETHODIMP nsNNTPNewsgroupList::ApplyFilterHit(nsIMsgFilter *aFilter,
nsIMsgWindow *aMsgWindow, PRBool *aApplyMore)
{
NS_ENSURE_ARG_POINTER(aFilter);
NS_ENSURE_ARG_POINTER(aApplyMore);
NS_ENSURE_TRUE(m_newMsgHdr, NS_ERROR_UNEXPECTED);
NS_ENSURE_TRUE(m_newsDB, NS_ERROR_UNEXPECTED);
// you can't move news messages, so applyMore is always true
*aApplyMore = PR_TRUE;
c) I also have to figure out a better fix for the issue FilterListDialog.js
function onFilterServerClick(selection)
{
var itemURI = selection.getAttribute('id');
// Return if same server is selected.
// XXX this "!itemURI" thing is a hack
// we come into onFilterServerClick twice
// and when you choose a news server, and the second time it is ""
if (!itemURI || itemURI == gCurrentServerURI)
return;
Status: NEW → ASSIGNED
Comment 10•21 years ago
|
||
- if (type.Equals("nntp")) {
+ if (type.Equals("nntp") && !isServer) {
can you fix the braces here? A few K&R'isms have crept into this file, and I'd
like to nip that in the bud...thx for fixing the other cases :-)
if (a)
{
}
I believe the per-newsgroup filters should probably go first. It doesn't matter
right now since nothing stops filter execution for newsgroups, but if something
does, like adding a "stop execution" action, then users should be able to
override the global filters in the per-newsgroup filters.
I believe you can just use the member variable, mIsServer, instead of calling
GetIsServer. It's just code bloat to call that method and check the error
return, when we have a member var already...I can't imagine a scenario where
you're calling GetIsServer that we haven't set mIsServer already...
other than that, looks fine to me.
Assignee | ||
Comment 11•21 years ago
|
||
Attachment #146419 -
Attachment is obsolete: true
Assignee | ||
Comment 12•21 years ago
|
||
Comment 13•21 years ago
|
||
The recent addition to the summary line discards the possibility of setting a
filter across all servers, which would be useful just as well.
Assignee | ||
Comment 14•21 years ago
|
||
Attachment #146431 -
Attachment is obsolete: true
Attachment #146432 -
Attachment is obsolete: true
Assignee | ||
Comment 15•21 years ago
|
||
I still need to make sure that with the MarkThreadWatched / MarkThreadIgnored
changes (for bug #227224) works.
I have a feeling that I'll need to move that code to after the point where we
call AddNewHdrToDB().
Assignee | ||
Comment 16•21 years ago
|
||
Attachment #146434 -
Attachment is obsolete: true
Assignee | ||
Comment 17•21 years ago
|
||
Attachment #146456 -
Attachment is obsolete: true
Comment 18•21 years ago
|
||
it should work to set the flag on the hdr and then add it to the db...let me see
why that doesn't work.
Comment 19•21 years ago
|
||
the mark thread watched/ignored filter actions work in the db, but the view
isn't getting notified, so you don't see the watch/ignore icon until you go to
another newsgroup and then back to the original one. I could just fix the thread
code to call back into the db to have the correct notifications sent around, and
save you adding state to nsNNTPNewsgroupList...
Assignee | ||
Comment 20•21 years ago
|
||
> The recent addition to the summary line discards the possibility of setting a
> filter across all servers, which would be useful just as well.
we'll have to spin that off into a new bug. next up will be global mail filters.
Assignee | ||
Comment 21•21 years ago
|
||
Attachment #146457 -
Attachment is obsolete: true
Assignee | ||
Comment 22•21 years ago
|
||
Attachment #146467 -
Attachment is obsolete: true
Assignee | ||
Comment 23•21 years ago
|
||
fixed.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment 24•21 years ago
|
||
We have a chance to get this fix into the 1.7 branch or is it already done?
verified.
Status: RESOLVED → VERIFIED
Assignee | ||
Comment 25•21 years ago
|
||
Attachment #146468 -
Attachment is obsolete: true
Assignee | ||
Comment 26•21 years ago
|
||
fixed on the 0.6 tbird branch
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•