summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordjcb <djcb@djcbsoftware.nl>2012-04-06 01:28:58 +0300
committerdjcb <djcb@djcbsoftware.nl>2012-04-06 01:28:58 +0300
commit46d38d203e3420a863d6ef181e5f2e43b9a6569b (patch)
treead56acb6b1c963ec1bc00d364fe6bfad36dbf8df
parentee840997c3dd7a568b00750b5aa0efdf48a3346e (diff)
* mark drafts as 'S' (seen) when creating them
-rw-r--r--emacs/mu4e-send.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/emacs/mu4e-send.el b/emacs/mu4e-send.el
index e37c48d..15576f7 100644
--- a/emacs/mu4e-send.el
+++ b/emacs/mu4e-send.el
@@ -285,7 +285,9 @@ use the new docid. Returns the full path to the new message."
(string-match "^[^.]+" system-name) (match-end 0)))))
(draft
(concat mu4e-maildir mu4e-drafts-folder "/cur/"
- (format "%s-%x%x.%s:2,D" ;; 'D': rarely used, but hey, it's available
+ ;; 'D': rarely used, but hey, it's available
+ ;; 'S': because we're looking at the draft as we speak
+ (format "%s-%x%x.%s:2,DS"
(format-time-string "%Y%m%d" (current-time))
(emacs-pid) (random t) hostname)))
(str (case compose-type