Merge pull request #404 from thierryvolpiatto/master

* mu4e/mu4e-contrib.el (mu4e-view-bookmark-make-record): Fix, using last...
This commit is contained in:
Dirk-Jan C. Binnema 2014-03-26 04:53:03 -07:00
commit 14a17ff07c
1 changed files with 3 additions and 1 deletions

View File

@ -57,7 +57,9 @@
(defun mu4e-view-bookmark-make-record ()
"Make a bookmark entry for a mu4e buffer."
(let* ((msg (mu4e-message-at-point))
(query (mu4e-last-query))
(maildir (plist-get msg :maildir))
(date (format-time-string "%Y%m%d" (plist-get msg :date)))
(query (format "maildir:%s date:%s" maildir date))
(docid (plist-get msg :docid))
(mode (symbol-name major-mode))
(subject (or (plist-get msg :subject) "No subject")))