It is definitely possible to do all the things you want to do with Mutt
, and much more.
Multiple accounts are possible with Mutt
. Personally I have only used multiple gmail imap accounts, as described in this article here, but it is feasible to set them up and move between them. It is not necessary to repeat the information here, but it has a lot to do with how the 'account hooks' and 'folder hooks' are set up; the article explains it well.
However, you can achieve it without folder-hooks
: see my answer here:
To navigate between folders, you can use macros, as these well known ones demonstrate:
macro index,pager gi "<change-folder>=INBOX<enter>" "Go to inbox"
macro index,pager ga "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail"
More on how to move between folders and how messages can be moved across folders is explained here in great detail.
Indeed, messages can be exported from Thunderbird
in the mbox
format and then read in Mutt
, as the Mutt wiki notes here. It will be necessary to install the Thunderbird
import/export addon and then export the folders from Thunderbird in mbox
format and then specify the folder in the .muttrc
, by refering to these notes.
Referring to your question in the comments: When you load up your inbox or when you switch between folders Mutt
by default only loads the headers from the server, which I think is what you want. It only downloads the actual message when you click return to view the message. Hence, why we cache headers and messages for performance, and usually most people have standard entries like this in the .muttrc
:
set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies
For offline availability, you may need to pair Mutt
with another program called offlineimap
, which is available in the repositories; a discussion is available here and here.
I've put these hints together (from the wiki and my own personal rc) into a rough muttrc
but you may have to test and modify it for your own purposes, and obviously add your own details, but it should be a useful starting point.
I would suggest trying to repair the folder index (.msf)
file. This file may become damaged and result in such issues.
For each profile, Thunderbird stores messages from email folders in files with the same name as the folder's name and with no file extension for example (the Inbox folder's messages are saved in a file called Inbox
and the Drafts folder's messages are saved in a file called Drafts
and so on ... ). These files contain the complete messages of the corresponding folder and can get very large in size and a size of a few gigabytes is not uncommon. Therefore Thunderbird relies on mail summary files or .msf
to avoid slow responses due to loading messages from very large files every time it starts or the user searches for emails.
Mail summary files or .msf
files are used by Thunderbird to index messages in each mail folder. These files only contain messages headers. They are smaller in size and faster to load and search.
One mail summary file exists for each folder so for example (the Inbox folder will require two files: one is to store the actual full messages which will be called Inbox
and the other file which will be called Inbox.msf
will contain only messages summary AKA messages headers for indexing and searching purposes).
If the mail summary file gets corrupted or missing, that is not a big deal because it does not contain the real messages but rather an index or a reference to them and it can be fixed.
If, however, the messages storage file itself gets corrupted or missing, that's a different story and emails will most likely be lost forever.
To repair the folder index .msf
file, please back up your original profile first then start Thunderbird and right click on the Inbox
folder of the affected email account and choose Properties from the menu. Then click on the Repair Folder button like in the image below:
After the repair process completes, please restart Thunderbird and check if the problem is solved.
Workaround:
If the above method does not work for you, then I would suggest a workaround using Evolution
mail client. This workaround is aimed at enabling you to list and view your old inbox messages. Please follow these steps to implement this workaround:
First: If you do not have Evolution installed, you can install it by running the following command in the terminal:
sudo apt install evolution
Second: Start Evolution and go to File menu -> Import and you will be presented with a dialogue box like in the image below:
Third: Click the Next button and choose Import a single file like in the image below and click the Next button again like in the image below:
Fourth: Click on the field next to Filename to open the file browser like in the image below:
Fifth: Brows to your email profile and find a directory named [Mail Account Name].sbd
and click on it like in the image below:
Sixth: Find the messages file named AllMail
or Inbox
with no extension depending on your original mail folder and double click it like in the image below:
Seventh: Click the Next button like in the image below:
Eighth: Choose the destination folder and click the Next button like in the image below:
Ninth: Click the Apply button and wait for the operation to finish like in the images below:
Done: Your messages should be available in Evolution mail client in good shape in the destination local folder you chose during this process.
Best Answer
If you didn't change the default profile, Thunderbird will save imap accounts in
~/.thunderbird/something.default/ImapMail
and Directories there for your different accounts.Anyways, you can have a look in
~/.thunderbird/profiles.ini
under[Profile0]
to see the path it is using for your profile.LocalFolders and Pop accounts are in
~/.thunderbird/something.default/Mail
directory.