Skip to content

Commit

Permalink
fix up channels, add a timeout and a note about it. add mu4e config
Browse files Browse the repository at this point in the history
  • Loading branch information
YYY authored and YYY committed Jul 29, 2019
1 parent 42e83cc commit 56c584d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .mbsyncrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ User [email protected]
PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.mailpass.gpg"
SSLType IMAPS
CertificateFile /etc/ssl/certs/ca-certificates.crt
Timeout 30
#Timeout 0 <-- use on first sync

# Remote store
IMAPStore gmail-remote
Expand All @@ -18,7 +20,7 @@ Inbox ~/mbsync/inbox

Channel gmail-default
Master :gmail-remote:
Slave :gmail-local:inbox
Slave :gmail-local:
Patterns INBOX

Channel gmail-sent
Expand All @@ -29,10 +31,20 @@ Channel gmail-starred
Master :gmail-remote:"[Gmail]/Starred"
Slave :gmail-local:starred

Channel gmail-drafts
Master :gmail-remote:"[Gmail]/Drafts"
Slave :gmail-local:drafts

Channel gmail-trash
Master :gmail-remote:"[Gmail]/Trash"
Slave :gmail-local:trash

Create slave
SyncState *

Group gmail
Channel gmail-default
Channel gmail-sent
Channel gmail-starred
Channel gmail-drafts
Channel gmail-trash
22 changes: 22 additions & 0 deletions config.org
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,25 @@ great for git-gutter
)
)
#+END_SRC
* mu4e
#+BEGIN_SRC emacs-lisp
(add-to-list 'load-path "/usr/share/emacs/site-lisp/mu4e")
(use-package mu4e
:config
(setq mu4e-maildir (expand-file-name "~/mbsync"))
(setq mu4e-sent-folder "/sent")
(setq mu4e-drafts-folder "/drafts")
(setq mu4e-trash-folder "/trash")

;;GMail/IMAP takes care of this
(setq mu4e-sent-messages-behavior 'delete)
(setq mu4e-get-mail-command "mbsync -q gmail")
(setq mu4e-update-interval 120)
(setq mu4e-maildir-shortcuts
'(("/INBOX" . ?i)
("/sent" . ?s)))
(setq mu4e-view-show-images t)
(setq mu4e-use-fancy-chars t)
(setq mu4e-view-show-addresses t)
)
#+END_SRC

0 comments on commit 56c584d

Please sign in to comment.