procmail
[Top] [All Lists]

Returning script return string to variable.

1999-04-15 23:29:31
I've read through all the manpages, Jari's procmail tips. The Procmail
FAQ, inifinite ink's pages, and endless sample recipes.  I'm going to
die in frustration.

Here's my target.

An rblchk.pl modification.
rblchk accepts msg through a pipe, via stdin, and echoes all lines to
stdout (plus an extra one).

I'm looking to change the script to say "hit" (returning an IP number)
or "miss" (returning some default value).  I'm hoping to insert this
into a procmail variable!

So, I'm trying to figure out how to accept a "copy" of the headers (or
body) via stdin, return a hit or miss to a variable, then fall through
to the next recipe.

The closest I have come so far is an example Jari's tips pages, but it
expects both a variable assigned return value and stdout output.   I
see no need to alter the message, just "hit or miss".

-- 
William Guynes - <wguynes(_at_)mav(_dot_)net>

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