On Mon, 18 Aug 1997 13:10:19 -0500 (CDT), Joe Lewandoski
<jlwndski(_at_)winkle(_dot_)navo(_dot_)navy(_dot_)mil> wrote:
The following procmail recipe returns a random error code in the
range of 64-78. What would be the effect and is it worth the effort
to harass the SOBs?
Probably not. What's the utility of returning different exit codes? If
they get a 77 once, they should continue to get 77's, but I honestly
doubt they care to check.
ECODE=| (~/.procmail/random.pl)
Is it worth spawning an extra shell simply to get ~ expanded to the
value of $HOME? I.e. you can take out the parens if you replace the
tilde with $HOME, and save processes.
EXITCODE=$ECODE
(Can't you just assign it in a single step?)
:0hwc
| gzip -fc >> Headers.spamfraud.gz
:0
/dev/null
Leave out the :c on the first recipe and you don't have to /dev/null
it separately.
where random.pl is the following
This can probably be accomplished in a less heavy application than
Perl. (I haven't timed it, but I'd try gawk.)
Hope this helps,
/* era */
--
Defin-i-t-e-ly. Sep-a-r-a-te. Gram-m-a-r. <http://www.iki.fi/~era/>
* Enjoy receiving spam? Register at <http://www.iki.fi/~era/spam.html>