Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/frioux/offlineimap.dkr

OfflineIMAP Container
https://github.com/frioux/offlineimap.dkr

Last synced: 2 months ago
JSON representation

OfflineIMAP Container

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 foobar

2. _/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)