# Mbsync config IMAPAccount gmail Host imap.gmail.com User akasroua@gmail.com AuthMechs LOGIN PassCmd "pass mail/gmail" SSLType IMAPS CertificateFile /etc/ssl/certs/ca-certificates.crt IMAPStore gmail-remote Account gmail MaildirStore gmail-local Subfolders Verbatim # The trailing "/" is important Path ~/.mail/gmail/ Inbox ~/.mail/gmail/Inbox/ Channel sync-gmail-default Far :gmail-remote: Near :gmail-local: Create Both Expunge Both SyncState * Channel sync-gmail-sent Far :gmail-remote:"[Gmail]/Sent Mail" Near :gmail-local:sent Create Both Expunge Both SyncState * Channel sync-gmail-trash Far :gmail-remote:"[Gmail]/Bin" Near :gmail-local:trash Create Both Expunge Both SyncState * Channel sync-gmail-junk Far :gmail-remote:"[Gmail]/Spam" Near :gmail-local:junk Create Both Expunge Both SyncState * Group gmail Channel sync-gmail-default Channel sync-gmail-sent Channel sync-gmail-trash Channel sync-gmail-junk IMAPAccount ugent Host outlook.office365.com User amin.kasrouaouam@ugent.be AuthMechs XOAUTH2 PassCmd "python /home/coolneng/.local/share/scripts/mutt_oauth2.py /tmp/tokenfile" SSLType IMAPS CertificateFile /etc/ssl/certs/ca-certificates.crt IMAPStore ugent-remote Account ugent MaildirStore ugent-local Subfolders Verbatim # The trailing "/" is important Path ~/.mail/ugent/ Inbox ~/.mail/ugent/inbox/ Channel ugent-default Far :ugent-remote: Near :ugent-local: Create Both Expunge Both SyncState * Channel ugent-sent Far :ugent-remote:"Sent Items" Near :ugent-local:sent Create Both Expunge Both SyncState * Channel ugent-trash Far :ugent-remote:"Deleted Items" Near :ugent-local:trash Create Both Expunge Both SyncState * Channel ugent-archive Far :ugent-remote:"Archive" Near :ugent-local:archive Create Both Expunge Both SyncState * Channel ugent-junk Far :ugent-remote:"Junk Email" Near :ugent-local:junk Create Both Expunge Both SyncState * Group ugent Channel ugent-default Channel ugent-sent Channel ugent-trash Channel ugent-archive Channel ugent-junk