summaryrefslogtreecommitdiff
path: root/mbsyncrc
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-07-01 21:26:30 -0500
committerMarc Coquand <marc@mccd.space>2024-07-01 21:26:30 -0500
commit0a20357d4585da91d92252972f3eb7b715ff64ab (patch)
treec1e228d72b6331e89f72d99a1ba4ba1807d60381 /mbsyncrc
downloadbsd-0a20357d4585da91d92252972f3eb7b715ff64ab.tar.gz
bsd-0a20357d4585da91d92252972f3eb7b715ff64ab.tar.bz2
bsd-0a20357d4585da91d92252972f3eb7b715ff64ab.zip
initial commit
Diffstat (limited to 'mbsyncrc')
-rw-r--r--mbsyncrc36
1 files changed, 36 insertions, 0 deletions
diff --git a/mbsyncrc b/mbsyncrc
new file mode 100644
index 0000000..011cf4a
--- /dev/null
+++ b/mbsyncrc
@@ -0,0 +1,36 @@
+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
+
+# This section a "channel", a connection between remote and local
+Channel Home
+Far :Home-remote:
+Near :Home-local:
+Patterns * !.nnmaildir !*/.nnmaildir
+Expunge None
+CopyArrivalDate no
+Sync All
+Create Near
+SyncState *
+