procmail
[Top] [All Lists]

Re: Finding the right Received header

1997-09-05 12:03:00
        Author:        wwgrol(_at_)sparc01(_dot_)fw(_dot_)hac(_dot_)com (W. 
Wesley Groleau x4923)
        Original-Date: Fri, 5 Sep 1997 13:22:38 -0500
        Message-ID:    
<199709051822(_dot_)NAA13233(_at_)sparc01(_dot_)hac(_dot_)com>

:0fhw
| (print "$LOGFILE: $(egrep '^Received.*by gw1.hughes-defense-comm.com
via')") >> Entrance

This worked, as far as the file "Entrance" is concerned.

BUT all messages since I put that in have no headers at all when the get
to the in-box.  (Except for procmail's "From foo(_at_)bar")  I know it has
something to do with stdout, but I'm not sure what to do.  ('tee' ?)

Well of course, since you filtered them out!

Try this:

:0c: somelock
| (print "$LOGFILE: $(egrep '^Received.*by gw1.hughes-defense-comm.com
 via')") >> Entrance

TjL


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