V
V
visoVV2020-05-19 11:11:17
Exim
visoVV, 2020-05-19 11:11:17

Why doesn't the filter work in Exim?

Wrote such a filter, connected.
It searches for all letters that came to the mailbox matching the value in the subject, if it is not found, it copies the letters to the second mailbox.

If I set $header_subject: does not contains to 1, then it works.
If I put the enumeration of topics, it does not work and copies the weight of the letter.

Filter:

if $recipients: contains "[email protected]" and
  $header_subject: does not contains "failed"
  or
  $header_subject: does not contains "delivery"
  or
  $header_subject: does not contains "WARNING"
  or
  $header_subject: does not contains "Notification"
  or
  $header_subject: does not contains "Failure"
  or
  $header_subject: does not contains "Undeliverable"
  or
  $header_subject: does not contains "recipients"
  or
  $header_subject: does not contains "Rejected"
  or
  $header_subject: does not contains "Sender"
  then
    unseen deliver  [email protected]
endif


As I understand it, somehow in a tricky way it is necessary to prescribe the words of coincidence in one line.
I didn't find anything about it in Exim's description.

If someone wrote, please share your experience and examples.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
visoVV, 2020-05-19
@visoVV

Solution found
if $recipients: contains "[email protected]" and
$header_subject: does not match "failed|123 "
then
unseen deliver [email protected]
endif

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question