Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frioux/offlineimap.dkr
OfflineIMAP Container
https://github.com/frioux/offlineimap.dkr
Last synced: 2 months ago
JSON representation
OfflineIMAP Container
- Host: GitHub
- URL: https://github.com/frioux/offlineimap.dkr
- Owner: frioux
- License: apache-2.0
- Created: 2015-02-03T17:41:49.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2020-06-13T18:00:34.000Z (over 4 years ago)
- Last Synced: 2024-10-04T09:54:52.794Z (3 months ago)
- Language: Python
- Homepage:
- Size: 41 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OfflineIMAP Container
## Usage
docker run -d --name offlineimap \
-v ~/.netrc:/opt/etc/netrc \
-v ~/var/mail:/opt/var/mail \
-v ~/.offlineimap/index:/opt/var/index \
--env [email protected] \
--restart=always frew/offlineimap## Description
If you care about having all your email at your fingertips,
[`offlineimap`](http://offlineimap.org/) is an excellent tool to acheive that
lofty goal. Unfortunately, `offlineimap` tends to be a little bit buggy. This
container helps to keep `offlineimap` running. Currently it [restarts
OfflineIMAP after it
hangs](https://github.com/frioux/offlineimap/blob/master/bin/cerberus#L19) with
~30 lines of Python. Note that I try to keep it on the latest and greatest
OfflineIMAP. Currently it's using the newest release (v6.7.0) and a patch to
fix [a bug in OfflineIMAP and Python with netrc
parsing](https://github.com/OfflineIMAP/offlineimap/issues/295).## Volumes
There are two absolutely required volumes and two more recommended volumes you
should set up to use this:1. _/opt/etc/netrc_ - this is the file containing your username and password. **required**
It should look like this:machine imap.gmail.com
login [email protected]
password foobar2. _/opt/var/mail_ - this is where the mail gets downloaded to. **required**
3. _/opt/var/index_ - this is directory where `offlineimap` stores its
metadata. If you don't make this volume offlineimap will have to reindex
all your mail every time you start the container afresh. **highly recommended**4. _/opt/var/log_ - this is where the logs are kept. You can mount this if you
want, but I set up a `tail` to docker's built in logs.## Environment Variables
There is one required environment variable:
1. `EMAIL` - this is the email address you want to be syncing.
## Ideas for the future
[Documented on github issues](https://github.com/frioux/offlineimap/issues)