Thursday, December 06, 2001, 8:23:27 PM, Agustin Rivera wrote:
AR> Anyone use Procmail to pipe information to a Perl script for processing?  If
AR> so, any basic example of the procmail recipe and a Perl script would be
AR> greatly appreciated.

something like

  :0
  *^TOwhoever
  | /my/script/here.pl

then the script gets the whole mail piped to it.

The SpamAssassin[1] module might have some examples around it, but
look at stuff like Mail::Internet et al for nice ways of making emails
perlified.

the while(<>) construct might be useful for you too...

  while (<>) {
        # do something
  }

will read each line of STDIN and put it's contents into $_
  

[1] http://search.cpan.org/search?dist=Mail-SpamAssassin

-- 
Best regards, Daniel

You cannot apply a technological solution to a sociological problem.
(Edwards' Law)


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to