Re: reading/parsing mbox file
| From: | Andy Clarke | Date: | Fri, 25 Apr 2003 11:06:34 +0000 |
| Subject: | Re: reading/parsing mbox file | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145243@lists.php.net to get a copy of this message | ||
I've looked through the archives and found out how to open the local mbox
file with the imap_open() function. This works fine, but the problem I have
now is that the imap functions treat it like a single message -
imap_num_msg() returns 1 no matter how many messages are in the mbox file,
imap_fetchbody() returns the entire contents of the file (all the messages),
etc.
Anyone have any suggestions of what might be wrong? I can think of
workarounds (eg splitting the messages apart manually), but if there is an
easy solution, I would like to use it.
Thanks
Andy Clarke