~/.mbsyncrc
:mbsync
command:mbsync
to be started 2 minutes after boot, and then every 5 minutes:mbsync.timer
, adding the --user
flag to systemctl
.mbsync.service
by adding a post-start hook, like below:mu
by changing the ExecStartPost
line to ExecStartPost=/usr/bin/mu index
, or to ExecStartPost=/usr/bin/emacsclient -e '(mu4e-update-index)'
if you are running emacsclient and would like to index mu4e
.AuthMechs XOAUTH2
and PassCmd 'oauth2get <provider> <account>'
, substituting <provider>
and <account>
with the values you used for oauth2create
, to the IMAPAccount
section in the .mbsyncrc
.CertificateFile /etc/ssl/certs/ca-certificates.crt
in the config file may be suffcient (Discuss in Talk:Isync#Step #1: Get the certificates)~/.cert/some.imap.server.pem
(e.g. ~/.cert/imap.gmail.com.pem
). Alternatively one can download get_certs.sh and run it:-----BEGIN CERTIFICATE-----
and ends with -----END CERTIFICATE-----
, paste into a file, and save with a .pem extension (this is necessary for the next step). Older instructions state that, with Gmail, both certificate blocks must be saved but on testing this was found to be unnecessary.