MozillaZine

Filter editing slow

User Help for Mozilla Thunderbird
Brad Waite
 
Posts: 12
Joined: November 28th, 2007, 10:04 am

Post Posted September 27th, 2017, 8:50 am

Nearly everything about creating or editing filters is extremely slow. It literally takes 20+ seconds for the Filter Rules window to pop up after clicking Edit on the Message Filters list. I've got 6 accounts in Thunderbird, and about 75 filters between all the account.

What could be causing this behavior?

I've been dealing with this for a few years, but since I added a bunch of filters today and figured I'd finally ask about it.

DanRaisch
Moderator

User avatar
 
Posts: 117369
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Post Posted September 27th, 2017, 9:28 am

How many filters do you have in that account and what is the size of the file msgFilterRules.dat?

Brad Waite
 
Posts: 12
Joined: November 28th, 2007, 10:04 am

Post Posted September 27th, 2017, 10:38 am

Account 1: 25 filters, 6.04 KB
Account 2: 3 filters, 477 B
Account 3: 25 filters, 6 KB
Account 4: 14 filters, 3.32 KB
Account 5: 5 filters, 1.08 KB
Account 6: 1 filter, 146 B
Account 7: 3 filters, 520 B

DanRaisch
Moderator

User avatar
 
Posts: 117369
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Post Posted September 27th, 2017, 11:05 am

Assuming those "B" entries should have been "KB" those aren't exceptional figures.
Try this for the worst offender: Close Thunderbird. Open the file msgFilterRules.dat in the sub-directory for the account using a text editor. Briefly review the text in the file to ensure there are no non-readable characters visible. If it's clean, left mouse click on the first character in the file and then scroll down and, holding down the Shift key, click on the last character of the filter text. Press Ctrl+C to copy that text. Open a new file in the editor, paste the copied text into it and then save the file with the name msgFilterRulesdat.NEW. Close the editor and rename msgFilterRules.dat to msgFilterRulesdat.OLD and then rename msgFilterRulesdat.NEW to msgFilterRules.dat. Launch Thunderbird and try editing the filters for that account to see if there is any improvement in performance.

Brad Waite
 
Posts: 12
Joined: November 28th, 2007, 10:04 am

Post Posted September 27th, 2017, 12:08 pm

Those B entries were bytes.

I renamed all of the msgFilterRules.dat and restarted Thunderbird, to see the behavior with a completely empty filter set. The Message Filters window popped up quick enough, but it was still 20+ seconds after hitting New... before the Filter Rules dialog appeared. So it doesn't appear it has anything to do with the content of the msgFilterRules.dat files themselves.

Any other suggestions?

DanRaisch
Moderator

User avatar
 
Posts: 117369
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Post Posted September 27th, 2017, 2:23 pm

It takes a second or less for that Filter dialogue to open here.

Does the same thing occur if you launch the application in Mozilla Safe Mode? http://kb.mozillazine.org/Safe_mode

Brad Waite
 
Posts: 12
Joined: November 28th, 2007, 10:04 am

Post Posted September 27th, 2017, 2:36 pm

Interesting...

I get varying speeds in safe mode. Sometimes 1-2 seconds, sometimes 15+ seconds. I'd say the average is 5s.

Still way slower than I would expect.

Brad Waite
 
Posts: 12
Joined: November 28th, 2007, 10:04 am

Post Posted September 28th, 2017, 12:38 pm

I did a bit more playing.

It appears that regardless of whether I'm in Safe mode or not, the initial filter edit dialog takes 20+ seconds to show up. Opening any filter to edit after that, regardless of the account, takes a varying amount of time, from nearly instantaneous, to 8-9 seconds.

I'm stumped. What gives?

DanRaisch
Moderator

User avatar
 
Posts: 117369
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Post Posted September 28th, 2017, 12:55 pm

What gives?


Haven't a clue.

Brad Waite
 
Posts: 12
Joined: November 28th, 2007, 10:04 am

Post Posted September 29th, 2017, 9:48 am

Is there some way of debugging what is going on during that initial delay?

Could it be affected by the amount of mail I have, both in active accounts and archived?

What about my LocalFolders? Does the mail filter engine have to go look at all the folders, including LocalFolders before waking up? Mine is on a NAS, and while my network share is always mounted, and fast to browse in Windows, sometimes it takes a while to expand my LocalFolders tree from within Thunderbird.

Thanks for the help, BTW. This is bizarre behavior and I'm glad, to some extent, it's not something simple I've missed.

DanRaisch
Moderator

User avatar
 
Posts: 117369
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Post Posted September 29th, 2017, 10:36 am

I can't say yes or no but it would truly surprise me if the process of bringing up the filter editor dialogue calls for opening or scanning any folders, including the one that is displayed when the editor is launched. There wouldn't seem to be any reason to do that.

Return to Thunderbird Support


Who is online

Users browsing this forum: Google [Bot] and 3 guests