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

I have a filter rule that will not delete. It reappear after every restart.

  • 4 replies
  • 1 has this problem
  • 13 views
  • Last reply by pdupuis

more options

I have a filter rule (1 of 16) on a POP3 mailbox. When I select Message Filters, then the Rule and then Delete it appears to be delete (removed from the rules dialog box list). I close the Message Filter's window, Exit Thurnderbird (v45.7.1) and restart my computer and open Thunderbird, select the account and select Message Filters and the rule I delete is back.

This should not be happening. Is there any way to edit the rules file manually or rebuild the rule file in some way to fix this bug?

I have a filter rule (1 of 16) on a POP3 mailbox. When I select Message Filters, then the Rule and then Delete it appears to be delete (removed from the rules dialog box list). I close the Message Filter's window, Exit Thurnderbird (v45.7.1) and restart my computer and open Thunderbird, select the account and select Message Filters and the rule I delete is back. This should not be happening. Is there any way to edit the rules file manually or rebuild the rule file in some way to fix this bug?

Chosen solution

what is the filter that comes back? We doi have an automatically generated filter that is created when the option to trust mail headers set by spamassasin is sat in the account settings.

Read this answer in context 👍 2

All Replies (4)

more options

There is a file, one per account, named msgFilterRules.dat which can be opened in a text editor. You'll need to read it through carefully to work out the pattern and then choose and delete the set of lines corresponding to your unruly filter.

The symptoms suggest that Thunderbird is successfully removing the filter from memory, but is unable to modify this file, so the filter disappears immediately then reappears on the next restart.

The msgFilterRules.dat file is in your profile, and profile contents are hidden by default, so you'll need to enable viewing of hidden files.

https://support.mozilla.org/en-US/kb/profiles-where-thunderbird-stores-user-data

Do make a backup of your msgFilterRules.dat file before editing it. The results can be unpredictable if such files are improperly formatted. A bad settings file can stop Thunderbird from starting.

more options

Thank you Zenos. I found the msgFilterRules.dat for the specific account. When I look in the file with a text editor, the problem rule is not present - all the other rules I see in the Message Filter dialog are there, but not the problem rule. I can exits Thunderbird, remove the msgFilterRules.dat, restart Thunderbird, and see that there are now NO message filter rules for this account. However as soon as I create a new rule (to begin rebuilding the rules I want), the offending rule reappears.

Is there any other place Thunderbird stores rules or any other way Thunderbird can add a rule to a set of message filter rules?

more options

Chosen Solution

what is the filter that comes back? We doi have an automatically generated filter that is created when the option to trust mail headers set by spamassasin is sat in the account settings.

more options

Matt said

what is the filter that comes back? We doi have an automatically generated filter that is created when the option to trust mail headers set by spamassasin is sat in the account settings.

This was the answer. I did not realize that if this feature was turned on that a rule actually appears in the Filter list for it.