summaryrefslogtreecommitdiff
path: root/mu4e
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2014-03-25 07:30:35 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2014-03-25 07:30:35 +0100
commitf6fb12262af19406bf613d1fad6e15055690cf08 (patch)
tree55b1a2100e5112ac142702844f6b1d75346f9fa8 /mu4e
parent431d97f5569ab951b4d8a8d722772852a91c42d1 (diff)
* mu4e/mu4e-contrib.el (mu4e-view-bookmark-make-record): Fix, using last-query doesn't work when the query contain a date query.
Diffstat (limited to 'mu4e')
-rw-r--r--mu4e/mu4e-contrib.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/mu4e/mu4e-contrib.el b/mu4e/mu4e-contrib.el
index f34e3b2..5df4246 100644
--- a/mu4e/mu4e-contrib.el
+++ b/mu4e/mu4e-contrib.el
@@ -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")))