procmail
[Top] [All Lists]

Re: Failure of fgrep?

1997-06-02 15:03:00
On Mon, 2 Jun 1997, David W. Tamkin wrote:

wotan(_at_)netcom(_dot_)com wrote,

| FROM=`$FORMAIL -zrx To:`
| SENDER=`echo $FROM | sed -e 's/@.*//'`

You could do the second step within procmail and save overhead:

 :0
 * FROM ?? ^^\/[^(_at_)]+
 { SENDER=$MATCH }

Does this allow me to grab the correct Reply-to information?  The address
from formail -r is the one I base my filtering on.  
 
| I do not have any form of nws in my FOLKS listing ...

Not even as a substring?

Nope.  It was the first thing I thought of, and a grep failed.  

| Nor do I have a verbose log for this, since I wasn't expecting it.  

That's easily taken care of: just refeed the message interactively to
procmail with VERBOSE=on before you delete it.

Too late.  :) 

Fortunately, they spammed me elsewhere, so I can fudge it.

-- 
Remember, UNIX spelled backwards is XINU.

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