How to download emails from Gmail with isync

Hello to everyone.

I would like to download all the email I get to my gmail account on FreeBSD everytime I run the command "mbsync" ; yes,infact I have installed and I'm trying to configure isync for this task. I'm trying to configure it correctly following the websites below :


This is the final configuration that I've reached for the file "~/.mbsyncrc",that unfortunately does not work :

Code:
IMAPStore gmail-remote
Host imap.gmail.com
SSLType IMAPS
AuthMechs LOGIN
User marietto2008@gmail.com
PassCmd "ciao a tutti"

MaildirStore gmail-local
Path /mnt/zroot2/zroot2/Backup-Gmail/
Inbox /mnt/zroot2/zroot2/Backup-Gmail/inbox

Channel gmail-inbox
Far ":gmail-remote:Inbox"
Near ":gmail-local:inbox"
Create Both
Expunge Both
Patterns * !"[Gmail]/Inbox" !"[Gmail]/Important" !"[Gmail]/Drafts"
SyncState *

the error reported is: "No channel specified. Try 'mbsync -h'" ; someone is using isync and can share his mbsyncrc conf. file ? It seems very tricky to make it work. Thanks.

MB : According with the "frostyx.cz" tutorial,I have already created a password for the app (that I have called mbsync and I have turned on the "2-Step Verification".
 
Back
Top