Reading spam dir with PHP?

Max Kipness mkipness at GENIANT.COM
Thu Oct 2 21:37:10 IST 2003


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




More information about the MailScanner mailing list