Mu4e: Ignore case when matching mu4e context

This allows users to have different casing in their mu4e context names
and the corresponding directories. Since mu4e's context switching
automatically selects the letter from the context name, this allows
users to set two contexts starting with the same letter to uppercase and
lowercase variants, while leaving the directories lowercase.
This commit is contained in:
Liam Hupfer 2021-07-10 13:51:31 -05:00 committed by TEC
parent 3d54471b2a
commit a75dea6281
No known key found for this signature in database
GPG key ID: 779591AFDB81F06C

View file

@ -36,7 +36,7 @@ default/fallback account."
(lambda (msg) (lambda (msg)
(when msg (when msg
(string-prefix-p (format "/%s" label) (string-prefix-p (format "/%s" label)
(mu4e-message-field msg :maildir)))) (mu4e-message-field msg :maildir) t)))
:vars letvars))) :vars letvars)))
(add-to-list 'mu4e-contexts context (not default-p)) (add-to-list 'mu4e-contexts context (not default-p))
context))) context)))