[PHP] Webmail and mime

2005-02-22 Thread Emil
Hi
I'm creating a webmail interface for a pop3-server (I know weird to do 
webmail with pop3, but it's for a running server which I can't control. 
So pop3 it is and caching the mails in a mysql database). I've 
implemented the pop3-support myself since the one in www.php.net/imap 
lacks a lot of basic pop3 features like uidl support.

Anyway I've hit a wall trying to add support for receiving attachments. 
I'm not sure how to handle it. The imap_fetchstructure call doesn't seem 
to be useful for me, since I can't send it text but only an imapstream. 
I tried the pear projects mimeDecode class and it worked fine. But the 
only thing it returns was the structure (like it will return an array 
with info like one mime part plain text, one part image, etc.) and not 
the content. I don't get the actual text and the actual image.

Any ideas of how I can get the content split up in neat pieces? I've 
probably just missed something obvious in www.php.net/imap or the pear 
mail classes. Because I guess there are a function that does this.

I need this running nw. So I'm sort of desperate. If you have any 
ideas at all please please speak.

Thanks.
Regards Emil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Webmail and mime

2005-02-22 Thread Christophe Chisogne
Emil a écrit :
I'm creating a webmail interface for a pop3-server
Why not use one of the many webmail apps?
Ex written in PHP/Perl, with no particular order:
Neomail
http://neocodesolutions.com/software/neomail/
Openwebmail
http://openwebmail.org/
IMP (horde)
http://horde.org/imp/
IlohaMail
http://ilohamail.org/
SquirrelMail
http://www.squirrelmail.org/
Ch.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php