From f6035fd5db84471535fe32c77aa610d11718fb4a Mon Sep 17 00:00:00 2001 From: djcb Date: Wed, 22 May 2013 00:22:20 +0300 Subject: [PATCH] * mu4e-drafts: make the draft file the same as the mu-maildir function generates --- mu4e/mu4e-draft.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mu4e/mu4e-draft.el b/mu4e/mu4e-draft.el index 00cd78d1..5221197f 100644 --- a/mu4e/mu4e-draft.el +++ b/mu4e/mu4e-draft.el @@ -264,9 +264,9 @@ You can append flags." (save-match-data (substring system-name (string-match "^[^.]+" system-name) (match-end 0)))))) - (format "%s-%x%x.%s:2,%s" + (format "%s-%02x%04x-%s:2,%s" (format-time-string "%Y%m%d" (current-time)) - (emacs-pid) (random t) hostname (or flagstr "")))) + (random 255) (random 65535) hostname (or flagstr "")))) (defun mu4e~draft-common-construct () "Construct the common headers for each message."