summaryrefslogtreecommitdiffstats
path: root/isync/.mbsyncrc
diff options
context:
space:
mode:
authorAmin Bandali <me@aminb.org>2015-07-02 22:29:00 -0400
committerAmin Bandali <me@aminb.org>2015-07-02 22:29:00 -0400
commitf945d4cb62c4b726f4ef7fe6547cfc2719e82fd1 (patch)
treea651034e2e473f6788124b992df8c1a9584af316 /isync/.mbsyncrc
parent5c32f1b55a08761c1532647d6a77ba4ab4464346 (diff)
downloadconfigs-f945d4cb62c4b726f4ef7fe6547cfc2719e82fd1.tar.gz
configs-f945d4cb62c4b726f4ef7fe6547cfc2719e82fd1.tar.xz
configs-f945d4cb62c4b726f4ef7fe6547cfc2719e82fd1.zip
use mbsync for syncing mail instead of offlineimap
Diffstat (limited to 'isync/.mbsyncrc')
-rw-r--r--isync/.mbsyncrc44
1 files changed, 44 insertions, 0 deletions
diff --git a/isync/.mbsyncrc b/isync/.mbsyncrc
new file mode 100644
index 0000000..9d0cdec
--- /dev/null
+++ b/isync/.mbsyncrc
@@ -0,0 +1,44 @@
+# Global defaults
+CopyArrivalDate yes
+
+######
+IMAPAccount aminb
+Host mail.aminb.org
+User REDACTED
+PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.passwd/aminb.gpg"
+SSLType IMAPS
+
+IMAPStore aminb-remote
+Account aminb
+
+MaildirStore aminb-local
+Path ~/.mail/aminb/
+Inbox ~/.mail/aminb/Inbox
+
+Channel aminb
+Master :aminb-remote:
+Slave :aminb-local:
+Patterns * !dovecot*
+Create Slave
+SyncState *
+
+######
+IMAPAccount gmail
+Host imap.gmail.com
+User REDACTED
+PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.passwd/gmail.gpg"
+SSLType IMAPS
+
+IMAPStore gmail-remote
+Account gmail
+
+MaildirStore gmail-local
+Path ~/.mail/gmail/
+Inbox ~/.mail/gmail/Inbox
+
+Channel gmail
+Master :gmail-remote:
+Slave :gmail-local:
+Patterns * ![Gmail]* "[Gmail]/Sent Mail"
+Create Slave
+SyncState *