Re: parsing incoming mail

From: Date: Mon, 03 May 2004 23:47:35 +0000
Subject: Re: parsing incoming mail
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-185265@lists.php.net to get a copy of this message
Omer wrote:
Has anyone done any work on parsing incoming mail. Kind of like a filter. How would you take a alias file which pipes an account to a php script into
diffrent vars ? ( user :    | /scripts/myscript.php) ?
pointers would be appreciated. regards, omer.
Yep, just use the pipe and your script. The incoming mail will come in on stdin. I know this works with .qmail files. If you need to do MIME-based parsing (getting attachments and such) I suggest PEAR's Mail_Mime package. http://pear.php.net/package/Mail_Mime -- paperCrane <Justin Patrin>

« previous php.general (#185265) next »