When I was using systemd, I had mbsync setup as a service and timer. I'm unsure how this might be done w/openrc (or if it can be)
Any ideas/help would be appreciated.
What I have done recently, was the following under a user cron.
*/5 * * * * /usr/bin/mbsync -aq -c /home/cds/.config/mbsync/config > /dev/null 2>&1
The above does not appear to be working as I would need to manually tell Mutt to sync up.
I was able to tool around with this and I now have this working.
For those that want to know - here is the line I used:
*/5 * * * * /usr/bin/mbsync -aq -c /home/cds/.config/mbsync/config && /usr/bin/notmuch --config /home/cds/.config/notmuch/config new >/dev/null 2>&1
I am using cron for that.
crontab -l:
# mm hh DD MM W /path/progam [--option]... ( W = weekday: 0-6 [Sun=0] )
*/3 * * * * /home/myuser/bin/checkmail >/dev/null 2>&1
~/bin/checkmail:
#!/usr/bin/env bash
mbsync -a
Since everything works reliably you should check if cron executes when you say so and if the job/script has executable set.
Yes - that's what I'm doing all on one line in addition having notmuch updated also (as I posted above).
For me, works perfectly