On Sat, 19 Jul 1997, David W. Tamkin wrote (excerpted):
Paul replied,
| I discovered the hard way (plowing through a long log) that
| I failed to have even a "dummy" action routine on:
|
| # check whether $WHOFROM value is in # $USERLIST file
| :0 wc
| | egrep -is $WHOFROM $USERLIST
No, that is correct. The line beginning with the pipe *is* the action.
Oooops!!! :( :( I don't know how it happened, but that was not
supposed to a pipe as an action routine. Possibly I have been
tinkering enough that I am tripping over my own feet (together with
perfectly understandable pauses in responses to my questions from other
people). In the current incarnation of the recipe, that was supposed
to be a condition, not a pipe action routine. So far so good as it
stands below.
# all this stuff is contained in an outer recipe
# Is this an eligible sender? Have egrep see
# whether the sender is a member of the group
:0 w
* ? egrep -is $WHOFROM $USERLIST
{ }
# Eligible submission: now reflect the mail
# to all members of the group
:0 a
{ big nesting block }
# If not eligible, send back a nastygram and store a copy
# for examination, thus terminating the outer recipe
:0 E
{ another big nesting block }
Maybe I should give it a rest for a bit, since I do not have
a deadline. :)
Paul <pobart(_at_)access(_dot_)digex(_dot_)net>
----------------------------------------------------------
Paul O. Bartlett, P.O. Box 857, Vienna, VA 22183-0857, USA
Finger, keyserver, or WWW for PGP 2.6.2 public key
Home Page: http://www.access.digex.net/~pobart