Sign inSign up

cthelight/mbsync

By cthelight

•Updated about 2 years ago

A simple, thin wrapper around mbsync using cron

Image
0

177

cthelight/mbsync repository overview

⁠mbsync Docker

Yes, this is yet another docker wrapper around mbsync. Most that already exist are wildly out of date and therefore should not be used (in my opinion).

This consists of a very simple container that runs mbsync as a cron job (via supercronic) to allow for easy automation of sync jobs from mail servers.

⁠Use

To use the resulting docker container, the following are required:

  • A mbsyncrc file (by default at /config/mbsyncrc)
  • A directory in which to store the resulting emails (No default. Is specified in above config)

Additionally, you can optionally specify the following variables to adjust behavior:

  • CRON_SCHEDULE : A cron specifier to instruct the container how often to sync mail
    • By default set to run daily at midnight
  • MBSYNC_CMD : The mbsync command you would like run
    • By default this is mbsync -V -a -c /config/mbsyncrc
    • Depending on use case, you may want something more complicated here

Tag summary

Content type

Image

Digest

sha256:63d002d07…

Size

52.7 MB

Last updated

about 2 years ago

docker pull cthelight/mbsync:v0.0.2