[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Handling email by PERL



"Steve Churcher" <steve@xxxxxxxxxxxxxxx> wrote:
> Im hoping someone can help.. I would like to pass a certain email address
> through to a perl script for manipulation - eg an automated system.
>
> This is on a RAQ3
>
> I have managed so far to play with the aliases file to send the request to
> the perl file, but Im not sure how to read in the message itself?? STDIN
> holds the header stuff as far as I can tell but I am a little lost.. I was
> wondering if anyone has any idea.

I switched from Perl to PHP 2+ years ago so I can't help you with Perl, but
I've done the same in PHP and the entire message including headers is in
STDIN in PHP.  I'm using PHP to dump messages into a DB and another PHP
script I'm writing parses emails after feeding through another program to
demime them in order to send the customer the most appropriate automated
response if certain text / criteria are met based on the contents / headers
of the message.  I'm just curious - what exactly are you trying to do?
There are Perl and C++ scripts that process email for different purposes and
if you explain what you're trying to do you may find that someone like me
could point you to something to give you a jump start.  In any case, I
suggest finding a Perl mailing list or message board and asking there.
You'll probably get a quick answer.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/