Re: newbie parsing problem
DINH Viêt Hoà <[email protected]> Sun, 28 Jan 2007 01:44:23 +0100
| Newsgroups | gmane.mail.libetpan.user |
|---|---|
| Message-ID | <[email protected]> |
On 27 Jan 2007, at 21:13, Dave Serls wrote: > I'm trying to parse messages containe in a SquirrelMail 'Sent' > folder, an mbox > file with a uw IMAP header. > I'd like to replace non-text MIME parts with plain text place holders, > thus reducing the size of these folders for backup purposes, et. al. > > mailmime_parse doesn't seem to break out the imbedded encoded parts in > the simplest case. There's clearly a multi-partmixed Content-type, > but the > imbedded image part is not parsed. Am I missing something > elemental (other > than a functional cranium)? If I understand well your message, I think that you want to decode MIME encoded part (base64 or quoted-printable). See mailmime_content.h: mailmime_base64_body_parse() and mailmime_quoted_printable_body_parse() -- DINH Viêt Hoà ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV