Reading spam dir with PHP?
Michele Neylon :: Blacknight Solutions
michele at BLACKNIGHTSOLUTIONS.COM
Thu Oct 2 21:46:05 IST 2003
Sudo might be the solution, but I would wonder about the implications of
letting the 'apache' user access those files
Mr. Michele Neylon
Blacknight Solutions
http://www.blacknightsolutions.ie/
http://www.search.ie/
Probably the cheapest ie's in Ireland
Tel. +353 (0)59 9139897
Fax. +353 (0)59 9139897
> -----Original Message-----
> From: MailScanner mailing list
> [mailto:MAILSCANNER at JISCMAIL.AC.UK] On Behalf Of Max Kipness
> Sent: 02 October 2003 21:37
> To: MAILSCANNER at JISCMAIL.AC.UK
> Subject: Reading spam dir with PHP?
>
> Hello,
>
> Sorry if I'm off topic. This may be more of a PHP or general
> linux question.
>
> I'm trying to write a php page that reads the ../spam dir.
> I'm planning on having the page read each q* file and parse
> the From:, To: and Subject: lines and then have a button for
> each message that basically copies the q* and d* files to the
> sendmail queue.
>
> At this point I'm trying to figure out the best way to get
> access to that directory structure as user Apache. All of the
> dir/files under ./var/spool/MailScanner have rw for root
> only. Is the answer sudo?
>
> Thanks,
> Max
>
>
#########################################################
This message (and any attachment) is intended only for the
recipient and may contain confidential and/or privileged
material. If you have received this in error, please contact the
sender and delete this message immediately. Disclosure, copying
or other action taken in respect of this email or in
reliance to it is prohibited.
More information about the MailScanner
mailing list