feat(mu4e): add mu4e-compat package

(And remove vestigial ref to mu4e-alert in docs)

Fix: #6906
Fix: #7860
This commit is contained in:
Henrik Lissner 2024-09-05 03:53:37 -04:00
parent 48a6b30f48
commit 60e94479a7
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
3 changed files with 12 additions and 1 deletions

View file

@ -24,6 +24,14 @@
(lambda (&rest _)
(expand-file-name ".attachments" (mu4e-root-maildir))))
:config
;; Ensures backward/forward compatibility for mu4e, which is prone to breaking
;; updates, and also cannot be pinned, because it's bundled with mu (which you
;; must install via your OS package manager).
(with-demoted-errors "%s" (require 'mu4e-compat nil t))
;; For users on older mu4e.
(unless (boundp 'mu4e-headers-buffer-name)
(defvar mu4e-headers-buffer-name "*mu4e-headers*"))
(cond ((or (modulep! +mbsync)
(eq +mu4e-backend 'mbsync))
(setq mu4e-get-mail-command "mbsync -a"