MozillaZine

Thunderbird already has a feature to rebuild all msf files

Discussion of general topics about Mozilla Thunderbird
6MaxPayne
 
Posts: 1
Joined: August 3rd, 2019, 11:23 am

Post Posted August 3rd, 2019, 11:36 am

Hi,

Is it possible to request it to be looked at for a future version?

I was wondering if Thunderbird already has a feature to rebuild all msf files for folders without having to click on each folder individually, especially if (like me) you have a lot of message folders because you have OCD on filing things?

I'm running Thunderbird 60.4.0 on Windows 7 Home Premium (64-bit) with SP1.

Thanks.
Last edited by 6MaxPayne on August 4th, 2019, 12:50 pm, edited 1 time in total.

JYLD
 
Posts: 229
Joined: July 18th, 2019, 9:59 am

Post Posted August 3rd, 2019, 5:15 pm

You could build a batch file or powershell script or something to gather all .msf files and delete them. Then TB will rebuild them the next time you start up TB.

makaiguy

User avatar
 
Posts: 16867
Joined: November 18th, 2002, 6:44 pm
Location: Somewhere in SE USA

Post Posted August 3rd, 2019, 6:11 pm

JYLD wrote:You could build a batch file or powershell script or something to gather all .msf files and delete them. Then TB will rebuild them the next time you start up TB.


Don't know if I'd have thought of this out-of-box solution. Nice.
Doug Wilson, "The Makai Guy"
Win10 (64bit): FF 80.0.1 (64bit), TB 68.12.0 (32-bit) ║ Android 10/7.1.1: FF Mobile 80.1.3, No TB for Android available, dammit!
What a fool believes he sees, no wise man has the power to reason away - Doobie Brothers

DanRaisch
Moderator

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

Post Posted August 4th, 2019, 5:01 am

gather all .msf files and delete them. Then TB will rebuild them the next time you start up TB.

Note that doing so will also remove all customization of the folders in terms of sort order and any modification of column order/display.

JYLD
 
Posts: 229
Joined: July 18th, 2019, 9:59 am

Post Posted August 4th, 2019, 2:07 pm

Exit TB and then...
Run this at a command prompt to delete all .msf files in the TB profile.

For /R C:\Insert Directory Path to your TB Profile\ %G IN (*.msf) do del "%G"


Note: If you put this command in a batch file then %G needs to be changed to %%G. And the do statement would likely need to change to " do echo del "%%G" "

For more info see https://ss64.com/nt/for_r.html

DanRaisch
Moderator

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

Post Posted August 4th, 2019, 2:55 pm

How would all of this extra effort be better than compacting? Menu path File->Compact Folders?

JYLD
 
Posts: 229
Joined: July 18th, 2019, 9:59 am

Post Posted August 4th, 2019, 4:35 pm

It wouldn't if compact folders achieved that for which the OP is looking. I understood his question to be he wanted to execute a repair folder on all folders without having to do it manually folder by folder.

DanRaisch
Moderator

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

Post Posted August 4th, 2019, 7:03 pm

Compacting through that menu path is, at a minimum, by account, not by folder.

JYLD
 
Posts: 229
Joined: July 18th, 2019, 9:59 am

Post Posted August 4th, 2019, 9:33 pm

Certainly, but compacting doesn't rebuild the .msf files like repair does. Or does it?

DanRaisch
Moderator

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

Post Posted August 5th, 2019, 3:23 am

Yes, it does. It removes messages marked for deletion from each folder and then regenerates the .msf files.

tanstaafl
Moderator

User avatar
 
Posts: 46828
Joined: July 30th, 2003, 5:06 pm

Post Posted August 5th, 2019, 10:51 am

What do you expect rebuilding *.msf files to accomplish? Are yours frequently getting corrupted? If they are I suggest you focus on why they are getting corrupted since you may have bigger problems than you realize.

The folder listing (cached in the *.msf file) gets updated when you open a remote folder (IMAP account). If you have a IMAP account you can also configure the folder properties to automatically check for new mail in that folder too. That effectively opens the folder and updates the listing without you having to click on anything.

tomdkat
 
Posts: 1358
Joined: October 14th, 2003, 7:53 am

Post Posted August 31st, 2019, 5:49 pm

DanRaisch wrote:Yes, it does. It removes messages marked for deletion from each folder and then regenerates the .msf files.

I wasn't aware of this. Thanks for posting this info!

Peace...

DanRaisch
Moderator

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

Post Posted August 31st, 2019, 7:41 pm

You're welcome.

Return to Thunderbird General


Who is online

Users browsing this forum: No registered users and 2 guests