From 0e303fbb13e7124067bb4bb8b16989819d9a37cc Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 30 Jul 2014 23:41:32 +0200 Subject: Add mbsyncrc --- mbsyncrc | 21 +++++++++++++++++++++ mutt/muttrc | 3 +-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 mbsyncrc diff --git a/mbsyncrc b/mbsyncrc new file mode 100644 index 0000000..6a2ce0f --- /dev/null +++ b/mbsyncrc @@ -0,0 +1,21 @@ +IMAPAccount theos +Host theos.kyriasis.com +User kyrias +PassCmd "pass show mail/johannes@kyriasis.com" +UseIMAPS yes +CertificateFile /etc/ssl/certs/ca-certificates.crt + +IMAPStore theos-remote +Account theos + +MaildirStore theos-local +Path ~/.mail/ +Inbox ~/.mail/Inbox + +Channel theos +Master :theos-remote: +Slave :theos-local: +Patterns * +Create Slave +SyncState * +Expunge Both diff --git a/mutt/muttrc b/mutt/muttrc index 33b2741..b9bbede 100644 --- a/mutt/muttrc +++ b/mutt/muttrc @@ -40,8 +40,7 @@ macro index,pager A "goobook -c \"$XDG_CONFIG_HOME/goobookrc\" add bind editor complete-query # Sync email -#macro index O "offlineimap" "run offlineimap to sync all mail" -#macro index o "offlineimap -qf INBOX" "run offlineimap to sync inbox" +macro index O 'mbsync -c "$XDG_CONFIG_HOME/mbsyncrc" theos' "run mbsync to sync all mail" set sendmail = "/usr/bin/msmtp -a theos" set sendmail_wait = 0 -- cgit v1.2.3-54-g00ecf