Apply filters to specific folders
As a protonmail user creating a mail filter, I want to specify which folder(s) the filter will be applied to so that the filter does not move or label messages located in folders such as Sent, Archived, or Trash (or any folder that I specify).
My specific use case: I use Proton Mail's SMTP server to send notification messages to myself from my machines on my network. The sender address is always something like notifier@mydomain.com and the recipient is something like foo.bar.alert@mydomain.com or foo.bar.log@mydomain.com. This way, when the message hits my mailbox I can I can label and sort appropriately. The problem is that the message appears in both the Sent and Inbox folders and gets double labelled.
Additional use cases: There are several requests here for excluding trash, spam and archive from filters. This would solve multiple problems.