Aki, sorry for poor question.
>> Is it possible to create a virtual folder that selects all mails with >> imap Junk flag (set by pigeonhole imap4flags' setflag "Junk")? > Yes, see https://doc.dovecot.org/configuration_manual/virtual_plugin/ Yes, I'm talking exactly about virtual_plugin. While it's absolutely clear how to select all messages marked as deleted, I can't understand how to select all messages with the "junk" flag. -- sergio.