Offlineimap with notmuch and dovecot

Ryan Kavanagh rak at
Fri Nov 23 20:33:44 GMT 2012

Hi Rainer,

On Fri, Nov 23, 2012 at 08:26:20PM +0100, Rainer M Krug wrote:
> What is the best configuration for offlineimap, notmuch and dovecot?
> Is there a good way of doing this? I have offlinimap and notmuch
> running nicely, but don't get dovecot to work with it.

I have offlineimap sync from remote imap to local dovecot, where dovecot
is setup to put my mail in ~/.maildb/GMAIL in a maildir++ format. This
location can be changed to suit your wishes by changing dovecot's
mail_location setting, e.g., my in set to:

 mail_location = maildir:%h/.maildb/GMAIL:LAYOUT=maildir++

My offlineimaprc syncing from several remote hosts to local dovecot can
be found here[0]. notmuch is called from the appropriate postsynchook.
My notmuch-config can be found here[1]. I only use notmuch via
notmuch-mutt[2], so the above configs might not work if you want

Hope this helps, let me know if you have any questions.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1876 bytes
Desc: Digital signature
URL: <>

More information about the OfflineIMAP-project mailing list