Open Bug 615288 Opened 14 years ago Updated 2 years ago

"Create Filter From" message - filter is set up against Local Folders not mail account

Categories

(MailNews Core :: Filters, defect)

1.9.2 Branch
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: gld199, Unassigned, NeedInfo)

References

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6

Message filters are set up against Local Folders rather then the email Account when using "Create Filter From Message" on POP mail. Filter does nothing when checking mail.

Reproducible: Always

Steps to Reproduce:
1. I have Thunderbird set up with multiple POP email accounts, two of which deliver mail into subfolders of Local Folders.
2. View an email message sent to one of these accounts.
3. Go to menu Message -> Create Filter From Message...
4. Leaving other fields at their defaults, give the filter a name and select a target folder under Perform These Actions -> Move Message To
5. Click OK.
Actual Results:  
Message Filters pane is displayed and shows just-created filter has been set up under Local Folders.

When checking email, the filter does nothing.

Expected Results:  
The filter should be created against the email account into which the selected message was received.

When checking email, the filter should be applied.

Seems to work as expected when using Create Filter From Message on a message fetched via IMAP. This bug has been happening for at least a few weeks, as I have several inoperative message filters set up under Local Folders.

I was going to test this in the nightly build, but got a 404 not found on http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-comm-central-trunk/thunderbird-3.2a1pre.en-US.win32.installer.exe , then I got lost in a mirror, looking for the idiot-proof installer. Apologies.
(In reply to comment #0)
> User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.12)
> Gecko/20101026 Firefox/3.6.12 (.NET CLR 3.5.30729)
> Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.12)
> Gecko/20101027 Thunderbird/3.1.6
> 
> Message filters are set up against Local Folders rather then the email Account
> when using "Create Filter From Message" on POP mail. Filter does nothing when
> checking mail.

By design I think filters are account based.
 
> I was going to test this in the nightly build, but got a 404 not found on
> http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-comm-central-trunk/thunderbird-3.2a1pre.en-US.win32.installer.exe

https://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-comm-central/ you'll find what you want.
Component: General → Filters
Product: Thunderbird → MailNews Core
QA Contact: general → filters
Version: unspecified → 1.9.2 Branch
For pop3 accounts that deliver mail to the Local Folders Inbox (aka the Global Inbox), I believe we default to setting up the filters on the Local Folders Account, and both those filters and the per-account filters are applied for incoming mail.
OK. I tried the nightly build I found in Ludovic's list. Installed Mozilla/5.0 (Windows NT 6.0; rv:2.0b8pre) Gecko/20101208 Thunderbird/3.3a2pre

For my purposes its behaviour was just the same as Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6

I did play around with message filters some more and discovered that (both in the nightly build, and back in 3.1.6):

1) "create filter from message" (using message received in pop3 ac), and "apply filter when: checking mail or manually run" (default).... result: filter set up against Local Folders, filter DOES NOTHING a when checking mail

2) same conditions as (1) except change "apply filter when" from default to "checking mail (after classification) or manually run".... result: filter set up against Local Folders, filter IS APPLIED when checking mail

3) manually create a filter (Tools, Message Filters, Filters for: [select a POP3 account], New) and leave "apply filter when" at default "checking mail or manually run".... result: filter set up against Mail Account, filter IS APPLIED when checking mail

I still am sure that "Create Filter From Message" used to set them up against the relevant Mail Account, rather than Local Folders. I have always used this method of creating filters, and I have a very long list of filters showing under my yahoo account, and just a few recently created ones under Local Folders.

I clearly don't understand the difference between whether you apply a filter "after classification" or not, otherwise I would not have run into this problem. However, I don't think it makes much sense for the average end user if this tool creates filters which do nothing if default settings are used. From my point of view, I would be happy if using "create filter from message" went back to setting these up against the Mail Account into which the chosen message was received, OR you continue the new practice of setting POP3 email filters up against Local Folders, but you change the default "apply filter when" so that the filters work without further intervention from end users.
Are you using the Global inbox feature?
Do you have a separate Inbox under the POP3 account, and another one under Local Folders? Into which folder do your messages go when received?
Hi, sorry for not replying before.

Yes I do use the global inbox feature for some accounts, including the yahoo pop email account I've been having this issue with. When my yahoo pop email arrives it is delivered into:

Local folders > Inbox > Yahoo
(or Local folders > Junk)
(No mail ever gets delivered just into Local Folders > Inbox rather than one of its subfolders.)

I can't remember HOW I set "Local folders > Inbox > Yahoo" as the default destination for my yahoo emails, and I'm not sure if this is something you want to know.

Today I'm using Thunderbird 9.0.1, and I can still duplicate the bug as per my original post and comment 3.
A few revisions back, the default folder to apply messages to was changed from the mail account to the local folder for servers with global inbox feature. This was done because incoming (automatic filters) apply both the filters in the mail account, as well as the filters in the local folders account in that case. But manual filters apply only if the message exists in a folder for that account. So users would try to manually run filters, and they would not work since the filter was applied to the mail account, but the message was in the local account.

So in theory this change should have allowed the filters to now work properly in both cases.

So this is the step that should work but does not:

"1) "create filter from message" (using message received in pop3 ac), and "apply filter when: checking mail or manually run" (default).... result: filter set up against Local Folders, filter DOES NOTHING a when checking mail"

I can think of a couple of possibilities. First, perhaps the incoming mail is arriving on an account that does not have a global inbox (or the code somehow does not recognize that it does). Or the filters on the mail account are somehow preventing the local folder filters from applying, as IIRC the mail account filters run first.

To make progress, it would be very helpful if a new profile could be setup in an organized, known manner and the STR produced there.
As you say, it could be something particular to my settings that's screwing up the expected behaviour. I am probably not the best candidate for "setting up a fresh profile in an organised and known manner" though. I just generally flounder around until it works.
Removing myslef on all the bugs I'm cced on. Please NI me if you need something on MailNews Core bugs from me.
See Also: → 1050463
Summary: Create Filter From Message - filter is set up against Local Folders not Mail Account → "Create Filter From" message - filter is set up against Local Folders not mail account
See Also: 1050463

Does comment 7 still reproduce?

Severity: minor → S3
Flags: needinfo?(dannyfox)
OS: Windows Vista → All
You need to log in before you can comment on or make changes to this bug.