Re: PHP Script to remove attachments from emails and store them on the server

From: Date: Mon, 18 Nov 2002 05:35:29 +0000
Subject: Re: PHP Script to remove attachments from emails and store them on the server
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-124872@lists.php.net to get a copy of this message
On Monday 18 November 2002 07:34, Simon Chilmaid wrote: > Hi all > > I have a script that is currently running on my server which intercepts > messages being sent into a specific address, it is piped to this through an > alias in the aliases file. What would I need to add to this script in order > for it to firstly check for the presence of attachments to any email > message and secondly if any are detected how can these be saved to disk > locally on the server that this is running on You can have a look at the chapters "IMAP, POP3 and NNTP functions" & "mailparse functions" to see if there are any suitable functions there. What I do is run reformime (google for that if you need to) to extract all message parts. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* QOTD: Silence is the only virtue he has left. */

« previous php.general (#124872) next »