I'd probably just create some context-specific bookmarks or maildir
shortcuts, but there's also `mu4e-query-rewrite-function', which you can
set to some function to rewrite a query, e.g. you set it to something
like
Perhaps something like (untested!):
--8<---------------cut here---------------start------------->8---
(defun my-rewrite-func (expr)
(if-let* ((ctx-prefix
(pcase (mu4e-context-name (mu4e-context-current))
("context1" "maildir:/foo")
("context2" "maildir:/bar")
(_ nil))))
(format "%s AND (%s)" ctx-prefix expr)
expr))
--8<---------------cut here---------------end--------------->8---
Kind regards,
Dirk.
--
Dirk-Jan C. Binnema Helsinki, Finland
e:dj...@djcbsoftware.nl w:
www.djcbsoftware.nl
gpg: 6987 9CED 1745 9375 0F14 DA98 11DD FEA9 DCC4 A036