procmail
[Top] [All Lists]

Re: Procmail vs perl script syntax

2006-08-14 20:05:49
At 19:42 2006-08-14 -0500, Jack Stone wrote:
I am trying to use a procmail recipe that first runs a perl script to get 
the "remote IP" of a message,

Er, as versus parsing the message Received: headers from the top down 
looking for the first line that is from a host other than your own?  This 
is doable within procmail - see the list archives.

What should I do with this variable to make it right?

You do realize that the perl script you're seeking help with is neither 
written in procmail or maintained by the procmail maintainers.  It isn't 
even procmail-specific.

@msg = ;  <---THIS cause error

Some idjut provided you with a broken perlscript.  Perhaps you could report 
the error to the author.  At a minimum, the author should have had a 
comment about the variety of things you might put there (though STDIN is 
the logical choice, given the script outputs to STDOUT)

try this:

@msg = <STDIN>;

---
  Sean B. Straw / Professional Software Engineering

  Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
  Please DO NOT carbon me on list replies.  I'll get my copy from the list.


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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