From 9141d47b0bf01c244eee227a87ae50e869970700 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Wed, 29 Dec 2021 22:06:47 -0500 Subject: [PATCH] mbsync: Clean up and document mbsyncrc I took some time to cross check the config against mbsync(1) and commented as I went! Turns out I didn't need to specify the Account separately. --- etc/mbsyncrc | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/etc/mbsyncrc b/etc/mbsyncrc index a4b2124..023a3a4 100644 --- a/etc/mbsyncrc +++ b/etc/mbsyncrc @@ -1,21 +1,29 @@ # mbsyncrc -- see `man mbsync` -IMAPAccount karleco + +# IMAP side +# SSLType -- connect with SSL +IMAPStore karleco-far User alex@alexkarle.com Host imap.fastmail.com SSLType IMAPS PassCmd "+pass show mail/karleco-ro" -IMAPStore karleco-fastmail -Account karleco - -MaildirStore karleco-local +# Filesystem side +# Flatten -- foo/bar -> foo.bar (better for mutt) +MaildirStore karleco-near Path ~/mail/karleco/ Inbox ~/mail/karleco/INBOX Flatten . +# Channel to connect IMAP to Maildir Stores +# Patterns * -- pull all directories +# SyncState * -- save state of channel in dir/.mbsyncstate +# Sync All -- Pull/Push/New/reNew/Delete/Flags .. all the things! +# Create Both -- directories created both near and far +# CopyArrivalDate -- Sync down the IMAP arrival time (for sorting) Channel karleco -Far :karleco-fastmail: -Near :karleco-local: +Far :karleco-far: +Near :karleco-near: Patterns * SyncState * Sync All -- libgit2 1.1.1