Containerized https://github.com/OfflineIMAP/offlineimap
- Create a
offlineimaprc
config. See this page for examples. - Run the container
docker run -v /path/to/offlineimaprc:/offlineimap.conf:ro allyouneedisgnu/offlineimap
To keep the container up and running, it is mandatory to specify a autorefresh
option in your config. Otherwise the container will exit after the first run is complete.
Volume | Description |
---|---|
/offlineimap.conf | Attach your .offlineimaprc config file to this path. |
/localrepo | In case you want to use some persistent storage to do offline synchronization: mount it here |
In your .offlineimaprc
add the following line in the [Repository RemoteExample] section.
newmail_hook = lambda: os.system("munpack /home/user/maildir/LABEL/new/* > /dev/null 2>&1")