Re: [Exim] use of "first_delivery"

Top Page
Delete this message
Reply to this message
Author: Marc Haber
Date:  
To: exim-users
Subject: Re: [Exim] use of "first_delivery"
On Fri, 10 May 2002 10:21:32 +0100 (BST), Philip Hazel
<ph10@???> wrote:
>Any commands inside "if not first_delivery...endif" may never be run at
>all.


I am an idiot. Let me re-phrase this:

I have a filter file that calls a virus scanner. It looks like:

|if $received_protocol is "no-scan"
|then
|    headers add "X-Virus-Scanned-By: Amavis with (no scanner) on ${primary_hostname} - message delivered locally"
|    finish

|endif
|
|if not first_delivery
|then
|    finish

|endif
|
|<code to scan the message>

With this system filter, is it guaranteed that the scanning code is
run at least once on every message that comes in via a protocol that
is not "no-scan"?

Greetings
Marc

--
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29