On Mon, 13 Jul 2020 09:24:26 +0300 (EEST) Aki Tuomi aki.tuomi@open-xchange.com wrote:
2.2 and 2.3 had parallel versions for a while, so can you try with latest dovecot from https://repo.dovecot.org/ ? </div> Aki Tuomi</pre>
Thanks Aki, now it works perfectly. Seems latest debian 10 has packages released in Nov 2018. Didn't expect that.
For completeness of my work and public record I provide here full command that I use now for syncing Gmail (and it may work in both ways actually, if you don't delete INBOX somehow as I did :D)
#!/bin/bash
doveadm -Dv -o imapc_user=user@gmail.com -o
imapc_password="mypassword" -o imapc_host=imap.gmail.com
backup -a 'virtual/All' -O '-$GmailHaveLabels' -x '\Important'
-R -u user@gmail.com imapc:~/.imapc
Plus config:
imapc_features = rfc822.size gmail-migration imapc_features = $imapc_features fetch-headers mail_prefetch_count = 20 # for SSL: imapc_port = 993 imapc_ssl = imaps ssl_client_ca_dir = /etc/ssl/certs imapc_ssl_verify = yes
Tested on Dovecot v2.3.4.1 & v2.3.10.1(partially)
I don't exclude Starred folder ('\Flagged') as it is small and it's easier to look up flagged BY ME emails (versus 'Important' folder). And yes, I can have local user "user@gmail.com" it doesn't cause conflicts even so It may be confusing.
Thanks, Vitalii Nagara