* mu4e/mu4e-contrib.el (mu4e-view-bookmark-make-record): Fix, using last-query doesn't work when the query contain a date query.

This commit is contained in:
Thierry Volpiatto 2014-03-25 07:30:35 +01:00
parent 431d97f556
commit f6fb12262a
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")))