dotfiles/mail/.mbsyncrc
2018-07-14 22:44:18 +12:00

122 lines
3.1 KiB
Text

# global config - applied to all channels
Create Both
Expunge Both
SyncState *
# rawlinson
IMAPAccount rawlinson
Host imap.nullpointer.io
User george@rawlinson.net.nz
PassCmd "pass mail/george@rawlinson.net.nz" # get password from pass
AuthMechs LOGIN
SSLType IMAPS
# remote storage
IMAPStore rawlinson-remote
Account rawlinson
# local storage
MaildirStore rawlinson-local
Path ~/.mail/rawlinson/ # must append slash to specify directory
Inbox ~/.mail/rawlinson/INBOX # place inbox inside mail dir
# folders
Channel rawlinson-inbox
Master :rawlinson-remote:INBOX
Slave :rawlinson-local:INBOX
Channel rawlinson-archive
Master :rawlinson-remote:Archive
Slave :rawlinson-local:Archive
Channel rawlinson-drafts
Master :rawlinson-remote:Drafts
Slave :rawlinson-local:Drafts
Channel rawlinson-junk
Master :rawlinson-remote:Junk
Slave :rawlinson-local:Junk
Channel rawlinson-sent
Master :rawlinson-remote:Sent
Slave :rawlinson-local:Sent
Channel rawlinson-trash
Master :rawlinson-remote:Trash
Slave :rawlinson-local:Trash
# all folders except above
Channel rawlinson-folders
Master :rawlinson-remote:
Slave :rawlinson-local:
Patterns * !INBOX !Archive !Drafts !Junk !Sent !Trash
# group all channels, so they can be sync'd with one command `mbsync rawlinson`
Group rawlinson
Channel rawlinson-trash
Channel rawlinson-inbox
Channel rawlinson-archive
Channel rawlinson-drafts
Channel rawlinson-junk
Channel rawlinson-sent
Channel rawlinson-folders
# nullpointer
IMAPAccount nullpointer
Host imap.nullpointer.io
User george@nullpointer.io
PassCmd "pass mail/george@nullpointer.io" # get password from pass
AuthMechs LOGIN
SSLType IMAPS
# remote storage
IMAPStore nullpointer-remote
Account nullpointer
# local storage
MaildirStore nullpointer-local
Path ~/.mail/nullpointer/ # must append slash to specify directory
Inbox ~/.mail/nullpointer/INBOX # place inbox inside mail dir
# folders
Channel nullpointer-inbox
Master :nullpointer-remote:INBOX
Slave :nullpointer-local:INBOX
Channel nullpointer-archive
Master :nullpointer-remote:Archive
Slave :nullpointer-local:Archive
Channel nullpointer-drafts
Master :nullpointer-remote:Drafts
Slave :nullpointer-local:Drafts
Channel nullpointer-junk
Master :nullpointer-remote:Junk
Slave :nullpointer-local:Junk
Channel nullpointer-sent
Master :nullpointer-remote:Sent
Slave :nullpointer-local:Sent
Channel nullpointer-trash
Master :nullpointer-remote:Trash
Slave :nullpointer-local:Trash
# all folders except above
Channel nullpointer-folders
Master :nullpointer-remote:
Slave :nullpointer-local:
Patterns * !INBOX !Archive !Drafts !Junk !Sent !Trash
# group all channels, so they can be sync'd with one command `mbsync nullpointer`
Group nullpointer
Channel nullpointer-trash
Channel nullpointer-inbox
Channel nullpointer-archive
Channel nullpointer-drafts
Channel nullpointer-junk
Channel nullpointer-sent
Channel nullpointer-folders