# Immanuel account 
IMAPAccount mailfence-immanuel
Host imap.mailfence.com
User immanuel
PassCmd  "grep 'personal:' ~/.config/passwords | cut -d ' ' -f 2 | head -n 1"
Port 993
# CertificateFile ~/.config/protonmail/bridge/cert.pem
SSLType IMAPS
# SSLVersions TLSv1.2

# Remote storage
IMAPStore mailfence-immanuel-remote
Account mailfence-immanuel
PathDelimiter /

# Local storage
MaildirStore mailfence-immanuel-local
Path ~/Mail/personal/
Inbox ~/Mail/personal/INBOX

Channel mailfence-immanuel-inbox
Far :mailfence-immanuel-remote:INBOX
Near :mailfence-immanuel-local:INBOX
Create Both
Expunge Both

Channel mailfence-immanuel-sent
Far :mailfence-immanuel-remote:Sent
Near :mailfence-immanuel-local:sent
Create Both
Expunge Both

Channel mailfence-immanuel-trash
Far :mailfence-immanuel-remote:Trash
Near :mailfence-immanuel-local:sent
Create Both
Expunge Both

Channel mailfence-immanuel-drafts
Far :mailfence-immanuel-remote:Drafts
Near :mailfence-immanuel-local:drafts
Create Both
Expunge Both

Channel mailfence-immanuel-spam
Far :mailfence-immanuel-remote:Spam?
Near :mailfence-immanuel-local:junk
Create Both
Expunge Both

Channel mailfence-immanuel-archive
Far :mailfence-immanuel-remote:Archive
Near :mailfence-immanuel-local:archive
Create Both
Expunge Both

Channel mailfence-immanuel-junk
Far :mailfence-immanuel-remote:Trash
Near :mailfence-immanuel-local:trash
Create Both
Expunge Both

Group main-mailbox
Channel mailfence-immanuel-inbox
Channel mailfence-immanuel-archive
Channel mailfence-immanuel-drafts
Channel mailfence-immanuel-sent
Channel mailfence-immanuel-trash
Channel mailfence-immanuel-junk

# Work account 
IMAPAccount work-immanuel
Host outlook.office365.com
User immanuel@brashinc.com
PassCmd  "grep 'work:' ~/.config/passwords | cut -d ' ' -f 2 | head -n 1"
Port 993
SSLType IMAPS
# SSLVersions TLSv1.2

# Remote storage
IMAPStore work-immanuel-remote
Account work-immanuel
PathDelimiter /

# Local storage
MaildirStore work-immanuel-local
Path ~/Mail/work/
Inbox ~/Mail/work/INBOX
SubFolders Verbatim

Channel work-immanuel-inbox
Far :work-immanuel-remote:
Near :work-immanuel-local:
Patterns *
Create Both