commit 8e9532b4d1dfecd97a18087efe89d71a928cccaf
parent 2809fb1cf2cf5a423c9f0aa09b5fc9e0f3bfecd9
Author: Hugo Soucy <hs0ucy@h50ucy.local>
Date: Fri, 21 Sep 2018 18:54:30 -0400
Replace offlineimap by isync (mbsync)
Diffstat:
3 files changed, 32 insertions(+), 27 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -1,3 +1,4 @@
+
# Ignore everything in this directory
*
# Except those files
@@ -5,7 +6,7 @@
!.config/terminator/config
!.kshrc
-!.offlineimaprc
+!.mbsyncrc
!.profile
!.xinitrc
!/opt/dwm-6.1/config.h
diff --git a/.mbsyncrc b/.mbsyncrc
@@ -0,0 +1,30 @@
+# Create and delete messages client and server
+Create Both
+Expunge Both
+
+## hugo@soucy.cc
+IMAPAccount hscc
+Host mail.gandi.net
+User hugo@soucy.cc
+# PassCmd +"spm show posteo.de/klemens"
+SSLType IMAPS
+SSLVersions TLSv1.2
+AuthMechs PLAIN
+CertificateFile /etc/ssl/cert.pem
+
+IMAPStore hscc-remote
+Account hscc
+
+MaildirStore hscc-local
+SubFolders Verbatim
+# trailing slash indicates entire directory
+Path ~/.maildir/hugo@soucy.cc/
+Inbox ~/.maildir/hugo@soucy.cc/Inbox
+
+# Save synchronization state files in relevant directory
+SyncState *
+
+Channel hscc
+Master :hscc-remote:
+Slave :hscc-local:
+Patterns *
diff --git a/.offlineimaprc b/.offlineimaprc
@@ -1,25 +0,0 @@
-[general]
-ui = ttyui
-accounts = hscc
-autorefresh = 5
-
-#################
-# hugo@soucy.cc #
-#################
-
-[Account hscc]
-localrepository = hscc-local
-remoterepository = hscc-remote
-
-[Repository hscc-local]
-type = Maildir
-localfolders = ~/.maildir/hugo@soucy.cc
-
-[Repository hscc-remote]
-type = IMAP
-remotehost = mail.gandi.net
-remoteuser = hugo@soucy.cc
-realdelete = yes
-ssl = yes
-sslcacertfile = /etc/ssl/cert.pem
-maxconnections = 3-
\ No newline at end of file