31002f29a7
If running offlineimap it will show the following warning message (tested when using GMAIL)... XOAUTH2 authentication failed: AUTHENTICATE command error: BAD ['Client aborted AUTHENTICATE command. <randomstring>']. Data: DIEF2 AUTHENTICATE XOAUTH ... and then continue with the download/sync of emails. You can get rid of the warning message, when adding auth_mechanisms = LOGIN .offlineimaprc in the <...>-remote section.
20 lines
483 B
Plaintext
20 lines
483 B
Plaintext
[Account $title]
|
|
|
|
localrepository = $title-local
|
|
remoterepository = $title-remote
|
|
|
|
[Repository $title-remote]
|
|
auth_mechanisms = LOGIN
|
|
type = $type
|
|
remoteuser = $login
|
|
sslcacerfile = /etc/ssl/cets/ca-certificates.crt
|
|
remotepasseval = mailpasswd("$title")
|
|
remotehost = $imap
|
|
port = $iport
|
|
folderfilter = lambda foldername: foldername not in ['[Gmail]/All Mail']
|
|
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
|
|
|
|
[Repository $title-local]
|
|
type = Maildir
|
|
localfolders = ~/.mail/$title
|