I'm currently trying to extract various message attachment types [doc, odt, pdf, etc] and convert them to plain text.I'm using the $IMAP->get_raw_body method to get the raw data and then send it to the appropriate converting program.Everything works fine except the fact that my converter does not recognize the file type.Seems like that $IMAP->get_raw_body is generating invalid content.
Also 'file' returns RFC 822 mail text, instead of the standard ASCII mail text
Using roundcube 0.1~rc2-6
Any suggestions?