Skip to content

Latest commit

 

History

History

cron-sync-pingme

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Cron sync

This demo shows a cron-based sync of IMAP to a local Maildir in /mail.

Start the container(s):

docker-compose up

isync service is now running:

  • /mbsyncrc config file is created
  • /notify.sh is created
  • A crontab is created that runs /sync and /notify.sh daily at 00:00
  • crond is started

1. Perform first-time sync

View /mbsyncrc config:

docker-compose exec isync cat /mbsyncrc

Run a first-time sync (this will fail, because test@example.com is not a real account):

docker-compose exec isync /sync

2. Wait for cron sync

Now, wait out for 00:00 of tomorrow.

At 00:00, the incremental sync would run very quickly. A notification of the cron status would be sent to Discord and Mattermost using pingme.

List synced files:

docker-compose exec isync find /mail