H
H
hofix2018-07-17 17:58:28
Email
hofix, 2018-07-17 17:58:28

How to send an email to the trash for keywords in the subject?

In filters I have
require [ "fileinto", "envelope", "vacation" ];
if header :is "subject" "unwanted subject" {
fileinto "Trash";
stop;
}
everything is fine letters go to the trash,
but if we change the subject for example: "unwanted subject for the recipient" or "unwanted subject 123"
then the letter goes to the inbox
Variants used:
*unwanted subject*
* unwanted subject *
******* **********************unwanted topic****************************** **
and so on everything related to asterisks
Please tell me how I can correct the code so that everything works.
And yes, I understand that you can separately register each topic, but this does not fit!
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2018-07-17
@hofix

:is - exact comparison
use :contains

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question