This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

Apply filter only to specific Folder

more options

Hey!

Is there a way to apply Message Filters only to a specific folder of the mailbox?

I have a filter that moves emails from my Gmail mailbox to a Local Folder. It works well.

However, if the same email gets downloaded to the "All Mail" folder of the same Gmail mailbox, it gets moved as a duplicate to the same Local Folder. (all Gmail mailboxes have this "All Mail" folder)

I have unsubscribed from the "All Mail" folder, as an attempt to resolve this issue.

However, if I go on the Gmail website, delete the email from "All Mail", it moves that email to the Trash. Then, once Thunderbird downloads that email in the Trash folder, the Message Filter applies, and the duplicate is moved again to the Local Folder.

--

I believe the only way to resolve this is if I could select "Inbox" specifically, for the Message Filter.

So my question is whether it's possible (maybe with an addon) to select which folder I want a specific Message Filter to apply to.

Thank you!

Hey! Is there a way to apply Message Filters only to a specific folder of the mailbox? I have a filter that moves emails from my Gmail mailbox to a Local Folder. It works well. However, if the same email gets downloaded to the "All Mail" folder of the same Gmail mailbox, it gets moved as a duplicate to the same Local Folder. (all Gmail mailboxes have this "All Mail" folder) I have unsubscribed from the "All Mail" folder, as an attempt to resolve this issue. However, if I go on the Gmail website, delete the email from "All Mail", it moves that email to the Trash. Then, once Thunderbird downloads that email in the Trash folder, the Message Filter applies, and the duplicate is moved again to the Local Folder. -- I believe the only way to resolve this is if I could select "Inbox" specifically, for the Message Filter. So my question is whether it's possible (maybe with an addon) to select which folder I want a specific Message Filter to apply to. Thank you!

All Replies (5)

more options

My suggestion is to ignore AllMail . That is administered by Gmail and is a duplicate of the messages in other folders. Attempting to manage Allmail will fail. I always suggest unsubscribing from it.

more options

Thank you @david. As I said above, I unsubscribed "All Mail".

However, I don't want to keep my emails forever in Gmail, so I periodically go there (on the website) and delete all emails from there (because they remain there even if I already moved everything from the Inbox to the Local Folders), but once they get to the Trash, Thunderbird triggers the Message Filters.

Hence I'd like to make Message Filters apply only to Inbox.

more options

Moving messages is not the same as deleting them; that's why AllMail retains them. IMAP accounts 'own' the messages whether online or in local folders. If you want messages on PC and not online, then I suggest you make a new folder in Local Folders, then COPY desired messages there (or use filter for that), and then delete from account. That lets you have messages locally and not in Gmail.

Separately, filters just act on inbox, so you're okay there. If you have other online folders, you can rightclick and select properties and confirm that they are not checked when retrieving messages.

more options

> Separately, filters just act on inbox, so you're okay there.

Pretty sure that's not how Thunderbird behaves for me.

That's why I had to unsubscribe "All Mail" in first place. Because, Thunderbird was moving emails to Local Folders in duplicate, one from "Inbox", and another from "All Mail". And the same is happening now once it goes from "All Mail" to "Trash" (when I delete in the Gmail website, from All Mail).

> If you want messages on PC and not online, then I suggest you make a new folder in Local Folders, then COPY desired messages there (or use filter for that), and then delete from account.

Not sure I fully understood this process. But it seems a lot more complicated workflow, than just hoping that an "Apply Message Filter only to Folder:" option is implemented in Thunderbird. Or through an addon.

more options

Hi all.

Please can anyone assist me with the original question - Is there a way to apply Message Filters only to a specific folder of the mailbox?

I'm aware you guys 'solved' the 'issue' with other means, but I too have the same query :-)

I have a filter which parks some emails into a folder, but, I'd like another filter (which has an "Age in Days" property) to run on those emails also. In other words, I want to move a particular type of emails into a specific folder, but only for them to stay there for a limited period, at which time they are to be moved further on (junk etc).

Essentially I'd like to keep these rather unimportant emails at least for a little while, and if I get to see them before they expire fine, but if i don't then hey not to worry. Without this I have a mass of dull unimportant emails constantly building up, and it'd be nice if I could automate the junking process rather than having to date select them every now and then and then junk them manually (or run a separate custom filter -from the Message Filters box- and select the appropriate folder at the "Run Selected Filters on" drop-down box before hitting RUN NOW).

Thankyou :-)