On Thursday,  2 January 2003 at 16:53:05 +0100, Roman Neuhauser wrote:
> # [EMAIL PROTECTED] / 2003-01-02 16:40:45 +0100:
>> # [EMAIL PROTECTED] / 2002-12-30 11:26:22 +1030:
>>> On Sunday, 29 December 2002 at 18:46:12 +0100, Roman Neuhauser wrote:
>>>> # [EMAIL PROTECTED] / 2002-12-29 10:55:11 +1030:
>>>>
>>>>     ...
>>>>
>>>>> For more information, take a look at the following, which is a message
>>>>> I send to systems which appear to be bona fide attempts from broken
>>>>> reverse addresses.  Looking at the name of the sender, I'm sure this
>>>>> one is not bona fide, and I didn't really send the message.  Most of
>>>>> my double bounces come from spammers.
>>>>
>>>>     do you have that script publically available? I'd like to use
>>>>     that, too.
>>>
>>> Yes, it's at http://www.lemis.com/B.
>>
>>     Is that the version you actually use? I believe I found a bug:
>
>     ...
>
>     plus, you stuff the output in $myfile, and get the input from it as
>     well. How's that supposed to work? :)

Heh.  You're looking at this section, no doubt:

  cat > $myfile
  server=`egrep -i < $myfile "In:  [HE][HE]LO"|sed 's/^.*LO *//' `
  if [ "$server" = "" ]; then
    server=`egrep -i < $myfile "^Subject.*errors from "|sed 's/^Subject.*errors from 
//; s:\[.*::g' `
  fi

Confusing, isn't it?  The thing is, this program is a filter.  The
first line copies stdin to $myfile for future (multiple) readings.  If
it weren't a filter, the cat command would still read from stdin, so
if it were a terminal, it would just appear to hang.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to