[Exim] System filter question

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Hilko Bengen
Datum:  
To: exim-users
Betreff: [Exim] System filter question
Hi,

I am somewhat confused, even after rereading various parts of the
documentation, about how I can manipulate messages in the system
filter. I would like to add or drop recipient addresses from a
Embedded Perl subroutine that gets called from the system filter, but
I am not sure how I can do that:

spec.txt tells me that the command-line options

-Mar <message id> <address> <address> ...
-Mmd <message id> <address> <address> ...
-Mmad <message id> <message id> ...

(and some others) do not work while a message is active (in the middle
of a delivery attempt).

Then...

,----
| 47.1 The system message filter

|
| The system message filter operates in a similar manner to users' filter files,
| but it is run just once per message (however many recipients is has) at the
| start of a delivery attempt, before any routing or directing is done. If a
| message fails to be completely delivered at the first attempt, the filter is
| run again at the start of every retry.

`----

Is the message considered "active" when a system filter is run? Would
a call to exim -Mmd from my Perl subroutine be successful?

If not, how should I read the following lines?

,----
| 3.5 Delivery in detail

|
| When a message is to be delivered, the sequence of events is roughly as
| follows:

|
|  .   If a system-wide filter file is specified, the message is passed to it.
|      The filter may add recipients to the message, replace the recipients,
|      discard the message, cause a new message to be generated, or cause the
|      message delivery to fail.

`----

Thanks for enlightening me.

-Hilko

--
"All of you damned furriners should just get your green cards or
something and quit whining."
-- Jamie Zawinski, on bbdb's handling of phone numbers