Here are some example configurations for various situations.
Multiple Accounts with Mutt
This example shows you how to set up OfflineIMAP to synchronize multiple accounts with the mutt mail reader.
Start by creating a directory to hold your folders by running
Then, in your
Make sure that you have both an
[Account Personal] and an
[Account Work] section. The local repository for each account must have different
localfolder path names. Also, make sure to enable
In each local repository section, write something like this:
Finally, add these lines to your
UW-IMAPD and References
Some users with a UW-IMAPD server need to use OfflineIMAP’s “reference” feature to get at their mailboxes, specifying a reference of
#mh/ depending on the configuration. The below configuration (originally from email@example.com) shows using a reference of Mail, a
nametrans that strips the leading
Mail/ off incoming folder names, and a
folderfilter that limits the folders synced to just three:
pythonfile Configuration File Option
You can have OfflineIMAP load up a Python file before evaluating the configuration file options that are Python expressions. This example is based on one supplied by Tommi Virtanen for this feature.
~/.offlineimaprc, he adds these options:
~/.offlineimap.py file will contain:
This code snippet illustrates how the
foldersort option can be customized with a Python function from the
pythonfile to always synchronize certain folders first.