I have set up a couple of contexts in mu4e for the different email accounts I use. I would like to have a single command to search through all of them. Is there a simple way to do this?

EDIT: Ok, I might have been mistaken - looks like it searches all contexts by default? If so, how can I restrict to a single context when searching?

  • I'm (also) struggling to understand the concept of contexts, so for my information: does a search indeed by default cover all contexts? I suppose this would be similar to the case where contexts didn't exist, which doesn't help my understanding of what contexts are actually for... :-(
    – AstroFloyd
    May 5, 2019 at 9:51

1 Answer 1


The simplest workaround I found to this was to search using the maildir: query parameter (details here: https://www.djcbsoftware.nl/code/mu/mu4e/Queries.html#Queries). E.g. to search the archive of the "OldAccount" context use: maildir:/OldAccount/Archive

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.