mu4e: ignore bookmarks/maildirs without characterp keys

This commit is contained in:
Dirk-Jan C. Binnema
2023-01-19 00:28:43 +02:00
parent 201fe45edc
commit 85d2fdcdd7
4 changed files with 18 additions and 5 deletions

View File

@ -212,6 +212,13 @@ Function returns the cdr of the list element."
(cdr chosen)
(mu4e-warn "Unknown shortcut '%c'" response))))
(defun mu4e-filter-single-key (lst)
"Return a list consisting of LST items with a `characterp' :key prop."
;; This works for bookmarks and maildirs.
(seq-filter (lambda (item)
(characterp (plist-get item :key)))
lst))
;;; Logging / debugging