Merge pull request #1859 from tsdh/use-mu4e-query-rewrite-function-for-counts
Use mu4e-query-rewrite-function also for computing bookmark counts
This commit is contained in:
@ -125,7 +125,8 @@ clicked."
|
|||||||
for bm in bmks
|
for bm in bmks
|
||||||
for key = (string (plist-get bm :key))
|
for key = (string (plist-get bm :key))
|
||||||
for name = (plist-get bm :name)
|
for name = (plist-get bm :name)
|
||||||
for query = (plist-get bm :query)
|
for query = (funcall (or mu4e-query-rewrite-function #'identity)
|
||||||
|
(plist-get bm :query))
|
||||||
for qcounts = (and (stringp query)
|
for qcounts = (and (stringp query)
|
||||||
(cl-loop for q in queries
|
(cl-loop for q in queries
|
||||||
when (string=
|
when (string=
|
||||||
|
|||||||
@ -826,7 +826,9 @@ When successful, call FUNC (if non-nil) afterwards."
|
|||||||
(setq mu4e-pong-func (lambda (info) (mu4e~pong-handler info func)))
|
(setq mu4e-pong-func (lambda (info) (mu4e~pong-handler info func)))
|
||||||
(mu4e~proc-ping
|
(mu4e~proc-ping
|
||||||
(mapcar ;; send it a list of queries we'd like to see read/unread info for
|
(mapcar ;; send it a list of queries we'd like to see read/unread info for
|
||||||
(lambda (bm) (plist-get bm :query))
|
(lambda (bm)
|
||||||
|
(funcall (or mu4e-query-rewrite-function #'identity)
|
||||||
|
(plist-get bm :query)))
|
||||||
;; exclude bookmarks that are not strings, and with certain flags
|
;; exclude bookmarks that are not strings, and with certain flags
|
||||||
(seq-filter (lambda (bm)
|
(seq-filter (lambda (bm)
|
||||||
(and (stringp (plist-get bm :query))
|
(and (stringp (plist-get bm :query))
|
||||||
|
|||||||
Reference in New Issue
Block a user