procmail
[Top] [All Lists]

Re: turning recipes on and off (was procmail and if statements)

2002-08-22 17:27:29
On Thu, 22 Aug 2002, David W. Tamkin wrote:

Helen asked how to do this,

| > If the time is between 5pm and 7am or if it is a Saturday or a Sunday,
| > then send an auto-response.

and personally I'd answer this way,

[...]
But as this list has discussed in the past (check the archives) and I've done
many times myself, I'd recommend a condition based on the postmark in the
From_ line, or if you don't have From_ lines, on the timestamp in the topmost
Received: header.  [...]

        The From will give you the sender date, it is posible from
        different time zone.  The Received: header is better but, not
        all the time it is in the topmost I heared that some servers put
        the Received: lines in revers order.  What I sugest is looking
        for Received: line with local machine name - something like:
        "Received:.* by our.local.server.here ...."

Bye,
 Udi

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>