Re: reading/parsing mbox file
| From: | Raul Dias | Date: | Thu, 24 Apr 2003 14:42:30 +0000 |
| Subject: | Re: reading/parsing mbox file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145165@lists.php.net to get a copy of this message | ||
Hi,
PHP uses uw-imap's c-client library.
This is a very powerful library. If PHP has
all API exported, then it should be very easy to do
so.
Note that you wouldn't even bother parse the mailbox,
it would do it for you. I have written an email
client using the perl bidings, it is too easy to do so.
It is important to note that if you want to execute it
from a web interface, you might have a problem with user
permissions. In this case, using a imap server is
recommended.
[]'s
Raul Dias
Andy Clarke <andy@activatemedia.co.uk> wrote:
>Is it possible to open and read a local mbox mailbox file using PHP? I know
>that it is only a text file, and I can parse it myself using regular
>expressions etc., but are there any functions or libraries to make it
>easier? IMAP would seem like the obvious choice - I've used it before and it
>has the sort of functions I need (get message header/body/structure/etc.),
>but this only seems able to be able to communicate with a local mail server,
>not to read a local file directly. Is it possible to get the IMAP functions
>to open and read a local mbox file, and if they can't, is there any
>alternative set of functions that will do the job, or has anyone already
>written a set of regular expressions to parse the text file directly?
>
>In case it makes any difference, I am working on Mac OSX (Jaguar), trying to
>read mbox files exported from Entourage.
>
>Thanks in advance,
>
>Andy Clarke
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>