summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2018-12-21 12:15:15 +0100
committerAlan Pearce2018-12-21 12:15:48 +0100
commit836d8e51603a7420086d65c79c746e4cdaee0291 (patch)
tree9f3606bbaa9c99d7058f5a7652039c885632389c
parent4006db42beee009e99edd76cdcf9bf7114ac6682 (diff)
downloaddotfiles-836d8e51603a7420086d65c79c746e4cdaee0291.tar.lz
dotfiles-836d8e51603a7420086d65c79c746e4cdaee0291.tar.zst
dotfiles-836d8e51603a7420086d65c79c746e4cdaee0291.zip
mbsync: Improve gmail folder layout
-rw-r--r--emacs/.emacs.d/main.el16
-rw-r--r--isync/.mbsyncrc11
2 files changed, 13 insertions, 14 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 9421e85..6313a5d 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -1224,15 +1224,15 @@ With two prefix arguments, write out the day and month name."
                                     (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)
diff --git a/isync/.mbsyncrc b/isync/.mbsyncrc
index 09286ba..8991b15 100644
--- a/isync/.mbsyncrc
+++ b/isync/.mbsyncrc
@@ -3,6 +3,7 @@ Create Both
 Remove Both
 Expunge Both
 CopyArrivalDate yes
+FSync no
 
 ## Satoshipay
 # Account
@@ -27,12 +28,10 @@ SubFolders Verbatim
 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
\ No newline at end of file
+Patterns * !INBOX
\ No newline at end of file