Subject: Re: ^FROM_DAEMON and Resent-From

From: [email-masked] (David W. Tamkin)
Date: Sun, 12 Mar 1995 03:37:05 -0600 (CST)

Kevin Steves wrote,

| This recipe:
| 
| :0:
| *(^TO|^FROM_DAEMON)procmail@informatik\.rwth-aachen\.de
| IN.procmail
| 
| Didn't match these headers:
| 
| >From [email-masked] Mar  7 09:01:21 1995
| Date: Tue, 7 Mar 1995 10:28:27 -0600 (CST)
| From: "David W. Tamkin" <[email-masked]>
| To: Kevin Yeung <[email-masked]>
| Cc: [email-masked]
| Subject: Re: Verbose logfile
| Resent-Date: Tue, 7 Mar 1995 10:28:27 -0600 (CST)
| Resent-From: [email-masked]
| 
| Resent-From is part of ^FROM_DAEMON so I thought it would match.

Just Resent-From alone will not match ^FROM_DAEMON.  There is more to the
expansion of ^FROM_DAEMON than that, so there has to be something to the
right of Resent-From that indicates that, well, the letter is from a daemon
in order to match ^FROM_DAEMON.  Those headers don't have anything matching
the daemon part of ^FROM_DAEMON between Resent-From and procmail@.

However, ^TO will match ^Cc:<space>, so if you change the condition to
this:

        * ^TOprocmail(-d)?@informatik\.rwth-aachen\.de

(probably * ^TOprocmail is enough)

you'll be in business.  Otherwise, you could use this:

        * (^TO|Resent-From:.*)procmail@informatik\.rwth-aachen\.de

David W. Tamkin  Box 3284  Skokie, Illinois  60076-6284
[email-masked]    MCI Mail: 426-1818   +1 312 714 5610