procmail
[Top] [All Lists]

Re: How to send the original after filter?

2003-08-28 11:49:11
On Thu, Aug 28, 2003 at 10:51:07AM -0500, David W. Tamkin wrote:

I'm wondering if some combination of launching a clone with the `w' flag 
and setting the clone's EXITCODE can substitute for that.  For example:

:0cw
* reason to do any of this
{
 :0bf
 | lynx -stdin -dump

 :0B
 * viagra
 { EXITCODE=1 }
 :0A:
 viagraspam

 HOST # if no "viagra", lose the lynxed clone
}
:0a:
$DEFAULT

The question is whether that `a' will depend on the clone's exit status. 
 That has to be tested.  If this works, it's preferable to using a 
temporary file.

Yes, thanks for answering, David, as I was going to suggest something very
similar, but now I don't have to do the work.  :)

-- 
dman

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