Note: various people/cultures/background call these things differently, I will call them folders (as seen by a mail client) so most readers should understand.
The question is: with Dovecot is it possible to create a folder which stores not actual emails but acts as a filter. E.g. I can specify (note: pseudo-code!)
to:john.smith,search-inside:* and when a user clicks on that folder in their email client they will see all emails matching the above search criteria?