...

View Full Version : parse mbox file without imap support?



w98
04-23-2004, 10:10 PM
My hosting provider has not compiled IMAP support into their PHP setup, and I need to access an mbox mailbox to parse the headers/body for keywords and take action (delete, forward, autoreply) based on what I find (or don't find).

Any assistance on this would be groovy. Haven't found any info on this OTHER than with imap_xxxx() functions, and I don't have access to that.

Thanks,
w98

firepages
04-24-2004, 06:53 AM
I assume that this will vary depending on host/mailserver etc ...

but on my box my `inbox` is available as plaintext at /home/user/mail/inbox

now I would'nt fancy parsing that myself ;) but it is obviously parsable , so perhaps load and parse that ?

<edit>I would not call a host who does/would not enable common, stable modules as a real PHP host :mad: </edit>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum