]> git.friedersdorff.com Git - max/dotfiles.git/commitdiff
Use combined local drafts folder that is not synced
authorMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 15 Nov 2016 10:35:05 +0000 (10:35 +0000)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 15 Nov 2016 10:35:05 +0000 (10:35 +0000)
This prevents unencrypted draft messages leaving the local client

emacs/.emacs
offline_mail/.mbsync/aber.mbsync
offline_mail/.mbsync/personal-gmail.mbsync
offline_mail/.mbsync/personal.mbsync

index d04d89ed9193e55817cec543edd42b12d39d64dc..c4c5da219c6ae3d6275e79705be021ee30643d95 100644 (file)
    message-send-mail-function 'smtpmail-send-it
    smtpmail-default-smtp-server "mail.friedersdorff.com"
    smtpmail-auth-credentials (expand-file-name "~/.authinfo.gpg"))
+  (setq mu4e-drafts-folder "/Drafts")
   (setq mu4e-contexts
        `( , (make-mu4e-context
              :name "Personal"
              :vars '((user-mail-address . "max@friedersdorff.com")
                      (user-full-name . "Maximilian Friedersdorff")
                      (mu4e-sent-folder . "/personal/Sent")
-                     (mu4e-drafts-folder . "/personal/Drafts")
                      (mu4e-trash-folder . "/personal/Trash")
                      (smtpmail-smtp-server . "mail.friedersdorff.com")
                      (smtpmail-smtp-service . 587))),
                     (user-full-name . "Maximilian Friedersdorff")
                     (mu4e-sent-folder . "/personal-gmail/Sent")
                     (mu4e-sent-messages-behaviour . 'delete)
-                    (mu4e-drafts-folder . "/personal-gmail/Drafts")
                     (smtpmail-smtp-server . "smtp.gmail.com")
                     (smtpmail-smtp-service . 587))),
            (make-mu4e-context
             :vars '((user-mail-address . "maf54@aber.ac.uk")
                     (user-full-name . "Maximilian Friedersdorff")
                     (mu4e-sent-folder . "/aber/Sent")
-                    (mu4e-drafts-folder . "/aber/Drafts")
                     (mu4e-trash-folder . "/aber/Trash")
                     (smtpmail-smtp-server . "smtp.office365.com")
                     (smtpmail-smtp-service . 587))))
index 5c62c22a1abdfd3d0133ea0c8c337dcbc5d9978f..1a996d57b5c5d56b62a7ad2e9dca4863bfe27b2d 100644 (file)
@@ -15,6 +15,6 @@ Inbox ~/mail/aber/Inbox
 Channel aber 
 Master :aber-remote:
 Slave :aber-local:
-Patterns "INBOX" "Drafts" "Sent" "Trash" "Junk E-Mail"
+Patterns "INBOX" "Sent" "Trash" "Junk E-Mail"
 Create Both
 SyncState *
index abc355eb487dfee001d12544cc4f46b343360fa5..7f47f38e820c2062504cf5b05b51dc819fd6d293 100644 (file)
@@ -24,12 +24,6 @@ Slave :gmail-local:"All Mail"
 SyncState *
 Create Slave
 
-Channel gmail-all-drafts
-Master :gmail-remote:"[Gmail]/Drafts"
-Slave :gmail-local:"Drafts"
-SyncState *
-Create Slave
-
 Channel gmail-all-spam
 Master :gmail-remote:"[Gmail]/Spam"
 Slave :gmail-local:"Spam"
@@ -47,3 +41,4 @@ Group gmail
 Channel gmail-default
 Channel gmail-sent
 Channel gmail-all-mail
+Channel gmail-all-spam
index e2e64724cebf49112276dda33560275873f44449..45a31035b3d5f27a7917f4a79b290d12e5b97820 100644 (file)
@@ -15,6 +15,6 @@ Inbox ~/mail/personal/Inbox
 Channel personal
 Master :personal-remote:
 Slave :personal-local:
-Patterns "INBOX" "Drafts" "Sent" "Spam" "Trash" "slackware" "quicknote" "todo"
+Patterns "INBOX" "Sent" "Spam" "Trash" "slackware" "quicknote" "todo"
 Create Both
 SyncState *