Webmail and mime

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 noooow. 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux