From a75dea62819407770385f647a4d30e497208d6ce Mon Sep 17 00:00:00 2001 From: Liam Hupfer Date: Sat, 10 Jul 2021 13:51:31 -0500 Subject: [PATCH] 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. --- modules/email/mu4e/autoload/email.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/email/mu4e/autoload/email.el b/modules/email/mu4e/autoload/email.el index ed0094f0d..e008310b4 100644 --- a/modules/email/mu4e/autoload/email.el +++ b/modules/email/mu4e/autoload/email.el @@ -36,7 +36,7 @@ default/fallback account." (lambda (msg) (when msg (string-prefix-p (format "/%s" label) - (mu4e-message-field msg :maildir)))) + (mu4e-message-field msg :maildir) t))) :vars letvars))) (add-to-list 'mu4e-contexts context (not default-p)) context)))