OK, that's an awkward mixture to handle.
I suspect you're going to have to manually spot Sieve filters and
handle them separately. I assume you're working with file= rather
than data= in your redirect router? So, starting with a filename,
construct an expansion to identify by using ${readfile } and ${if match }.
Use that in condition= in a redirect router immediately before your
existing one. Tell your Sieve users to take off the trailing / from
any explicit filenames. Use a transport which always appends a /
and uses directory=.
Then raise a wishlist item for Exim's Sieve handling to support
a means for configuring something other than "inbox". I'm unsure
if a free choice is warranted, perhaps just a choice of "inbox/".
--
Cheers,
Jeremy
--
## subscription configuration (requires account):
##
https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at
http://www.exim.org/
## Please use the Wiki with this list -
http://wiki.exim.org/