Re: [Exim] System filter question

Top Page
Delete this message
Reply to this message
Author: Dave C.
Date:  
To: Hilko Bengen
CC: exim-users
Subject: Re: [Exim] System filter question

User combinations of the 'deliver' 'seen' and 'unseen' in the filter
itself. You don't want to reinvoke exim from a filter - and actually you
can't spawn any processes from a system filter anyway.

The exim -M.. options are primarily for manual operations by a sysadmin.


On 27 Feb 2002, Hilko Bengen wrote:

>
> 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
>
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>
>


--