procmail
[Top] [All Lists]

Re: newbie q: if-then

2002-01-24 11:24:52
On Thu, 24 Jan 2002, Jon Drukman wrote:

do i just do

:0:
!^X-TMDA-Confirmed:
{
   :0 Wh: msgid.lock
   | /usr/local/bin/formail -D 8192 msgid.cache
}

or is there more to it?

As *somebody* should have pointed out by now, that should be

:0
* !^X-TMDA-Confirmed:
{
  ...
}

The leading "*" is important.  Without it, you have two independent
recipes, one that forwards the message to the address "^X-TMDA-Confirmed:"
and the other (which is in a block) delivering to the formail pipe.

Use of a logfile would have revealed this.

Equivalently,

:0 Wh: msgid.lock
* !^X-TMDA-Confirmed:
| /usr/local/bin/formail -D 8192 msgid.cache

_______________________________________________
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>