From: Matthew W. <mw...@ky...> - 2008-10-27 22:50:16
|
On Mon, October 27, 2008 3:46 pm, Paul Lesniewski wrote: >> Does SM have a built in mime decoder class I could use to decode a message, ala PEAR >> Mail::mimeDecode? >> >> I'm looking for a better way to parse messages than the custom mime decoder I've >> built, >> and the PEAR module looks perfect, but I want to make sure I don't add unnecessary >> dependencies to my plugin. > > So yes, of course it does. :-) I suggest you look to the core to see > how messages are parsed when retrieved from the IMAP server or find a > plugin that does the same. Depending on the location of the code you > are running, the global $message object might already have in it what > you need. > Doubtful, since most of the time, it's running in left_main_before. :) I'm looking through mime.php as my other message states, but I'm not seeing how to get a usable parsed mime structure out of it. parseBody() doesn't seem to be what I want, since it does a lot of extra stuff to, that I probably shouldn't be invoking from my plugin. -- Matthew Walker Kydance Hosting & Consulting, Inc. LAMP & MU* Specialist |