summaryrefslogtreecommitdiff
path: root/mbsyncrc
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-05-06 17:07:49 -0500
committerMarc Coquand <marc@mccd.space>2024-05-06 17:07:49 -0500
commit80b95fcaab9149466e656430eb4c0041e28ee455 (patch)
treec9161d0815b3f81cea9f522891ee148bb5f427af /mbsyncrc
downloadrcm-80b95fcaab9149466e656430eb4c0041e28ee455.tar.gz
rcm-80b95fcaab9149466e656430eb4c0041e28ee455.tar.bz2
rcm-80b95fcaab9149466e656430eb4c0041e28ee455.zip
Initial commit
Diffstat (limited to 'mbsyncrc')
-rw-r--r--mbsyncrc64
1 files changed, 64 insertions, 0 deletions
diff --git a/mbsyncrc b/mbsyncrc
new file mode 100644
index 0000000..b0c0880
--- /dev/null
+++ b/mbsyncrc
@@ -0,0 +1,64 @@
+CopyArrivalDate yes # Don't mess up message timestamps when moving them between folders.
+Create Near # Automatically create new folders in the local copy.
+Remove Near # Automatically remove deleted folders from the local copy.
+Expunge Near # Expunge deleted messages from the local copy.
+
+# First section: remote IMAP account
+IMAPAccount Home
+Host imap.fastmail.com
+Port 993
+User marcc@fastmail.fr
+# For simplicity, this is how to read the password from another file.
+# For better security you should use GPG https://gnupg.org/
+PassCmd "pass fastmail/marcc"
+SSLType IMAPS
+SSLVersions TLSv1.2
+
+IMAPStore Home-remote
+Account Home
+
+# This section describes the local storage
+MaildirStore Home-local
+Path ~/mail-home/
+Inbox ~/mail-home/INBOX
+SubFolders Verbatim
+Flatten +
+
+# This section a "channel", a connection between remote and local
+Channel Home
+Far :Home-remote:
+Near :Home-local:
+Patterns * !.nnmaildir !*/.nnmaildir
+Expunge None
+CopyArrivalDate yes
+Sync All
+Create Near
+SyncState *
+
+# Work
+IMAPAccount Work
+Host imap.gmail.com
+User marc@baemingo.com
+PassCmd "pass baemingo/gmail"
+SSLType IMAPS
+#Pipelinedepth 1
+Timeout 60
+
+IMAPStore Work-remote
+Account Work
+
+MaildirStore Work-local
+Path ~/mail-work/
+Inbox ~/mail-work/INBOX
+SubFolders Verbatim
+Flatten +
+
+Channel Work
+Far :Work-remote:
+Near :Work-local:
+Patterns * !.nnmaildir !*/nn.maildir
+Expunge None
+CopyArrivalDate yes
+Sync All
+Create Near
+SyncState *