From: Amin Bandali Date: Fri, 3 Jul 2015 02:29:00 +0000 (-0400) Subject: use mbsync for syncing mail instead of offlineimap X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/f945d4cb62c4b726f4ef7fe6547cfc2719e82fd1?ds=inline;hp=5c32f1b55a08761c1532647d6a77ba4ab4464346 use mbsync for syncing mail instead of offlineimap --- 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 * diff --git a/spacemacs/.emacs.d/private/mu4e/packages.el b/spacemacs/.emacs.d/private/mu4e/packages.el index 7231d7c..c01640e 100644 --- a/spacemacs/.emacs.d/private/mu4e/packages.el +++ b/spacemacs/.emacs.d/private/mu4e/packages.el @@ -38,8 +38,12 @@ which require an initialization must be listed explicitly in the list.") (require 'mu4e) (require 'smtpmail) + +;; path to our Maildir directory +(setq mu4e-maildir "/home/amin/.mail") + (setq - mu4e-get-mail-command "offlineimap" ;; or fetchmail, or ... + mu4e-get-mail-command "mbsync -aq" ;; or fetchmail, or ... mu4e-update-interval 300 ;; update every 5 minutes mu4e-sent-folder "/aminb/Sent" mu4e-drafts-folder "/aminb/Drafts" @@ -68,11 +72,11 @@ which require an initialization must be listed explicitly in the list.") (smtpmail-smtp-server "mail.aminb.org") (smtpmail-stream-type ssl) (smtpmail-smtp-service 465)) - ("Gmail" - (mu4e-sent-folder "/Gmail/[Gmail].Sent Mail") - (mu4e-drafts-folder "/Gmail/[Gmail].Drafts") - (mu4e-trash-folder "/Gmail/[Gmail].Trash") (user-mail-address (get-passwd-file "gmail-mail")) + ("gmail" + (mu4e-sent-folder "/gmail/[Gmail].Sent Mail") + (mu4e-drafts-folder "/gmail/Drafts") + (mu4e-trash-folder "/gmail/Trash") (user-full-name "Amin Bandali") (smtpmail-default-smtp-server "smtp.gmail.com") (smtpmail-local-domain "gmail.com")