all repos — nixfiles @ 836d8e51603a7420086d65c79c746e4cdaee0291

System and user configuration, managed by nix and home-manager

mbsync: Improve gmail folder layout
Alan Pearce alan@alanpearce.eu
Fri, 21 Dec 2018 12:15:15 +0100
commit

836d8e51603a7420086d65c79c746e4cdaee0291

parent

4006db42beee009e99edd76cdcf9bf7114ac6682

2 files changed, 13 insertions(+), 14 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -1224,15 +1224,15 @@ (when msg                                     (mu4e-message-contact-field-matches
                                      msg :to "alan@satoshipay.io")))
                     :vars `((user-mail-address . "alan@satoshipay.io")
-                            (mu4e-sent-messages-behavior . sent)
-                            (mu4e-drafts-folder . "/satoshipay/[Gmail]/Drafts")
-                            (mu4e-sent-folder .   "/satoshipay/[Gmail]/Sent Mail")
-                            (mu4e-refile-folder . "/satoshipay/[Gmail]/All Mail")
-                            (mu4e-trash-folder .  "/satoshipay/[Gmail]/Bin")
+                            (mu4e-sent-messages-behavior . 'delete)
+                            (mu4e-drafts-folder . "/satoshipay/Drafts")
+                            (mu4e-sent-folder .   "/satoshipay/Sent Mail")
+                            (mu4e-refile-folder . "/satoshipay/All Mail")
+                            (mu4e-trash-folder .  "/satoshipay/Bin")
                             (mu4e-maildir-shortcuts . (("/satoshipay/INBOX" . ?i)
-                                                       ("/satoshipay/[Gmail]/All Mail" . ?a)
-                                                       ("/satoshipay/[Gmail]/Sent Mail" . ?s)
-                                                       ("/satoshipay/[Gmail]/Spam" . ?p)))))))
+                                                       ("/satoshipay/All Mail" . ?a)
+                                                       ("/satoshipay/Sent Mail" . ?s)
+                                                       ("/satoshipay/Spam" . ?p)))))))
             (define-hook-helper mu4e-view-mode ()
               ;; try to emulate some of the eww key-bindings
               (local-set-key (kbd "<tab>") 'shr-next-link)
M isync/.mbsyncrcisync/.mbsyncrc
@@ -3,6 +3,7 @@ Create Both Remove Both
 Expunge Both
 CopyArrivalDate yes
+FSync no
 
 ## Satoshipay
 # Account
@@ -27,12 +28,10 @@ # Job Channel satoshipay
 Master :satoshipay.io-remote:
 Slave :satoshipay.io-local:
-Patterns * "[Gmail]*"
+Patterns INBOX
 SyncState *
 
-Channel satoshipay-rubbish
-Master :satoshipay.io-remote:
+Channel satoshipay-gmail
+Master :satoshipay.io-remote:[Gmail]/
 Slave :satoshipay.io-local:
-Patterns "[Gmail]/Bin"
-Create Both
-Expunge Both+Patterns * !INBOX