[Imap-protocol] FETCH BODY[...] format..
Mark Crispin
markrcrispin at live.com
Fri Aug 29 06:32:17 PDT 2008
If you can't understand the description in the RFC, take a look at the mtest program in the UW IMAP toolkit. There is a recursive routine that displays the MIME structure from the IMAP BODYSTRUCTURE, including the calculated part codes.
-- Mark --
http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.
> Date: Fri, 29 Aug 2008 20:44:38 +1000
> To: imap-protocol at u.washington.edu
> From: fret at memecode.com
> Subject: [Imap-protocol] FETCH BODY[...] format..
>
> Hi All,
>
> I've read the rfc and I can't make out the correct syntax for retreiving just one mime segment of an email. So I'm initially getting the structure of the message via FETCH BODYSTRUCTURE and then I'm hoping to parse that and then download selected segments of the body based on what I find in the BODYSTRUCTURE. What is the method of indexing that works in BODY[<some_index>] ?
>
> e.g. initially I'll be displaying the text/html of the message and not download the attachments. So I need to parse the structure and work out which of those map to the text/html alternatives and so on...
>
> Thanks
> --
> Matthew Allen - Memecode Software
> (http://www.memecode.com)
>
> _______________________________________________
> Imap-protocol mailing list
> Imap-protocol at u.washington.edu
> http://mailman2.u.washington.edu/mailman/listinfo/imap-protocol
_________________________________________________________________
Talk to your Yahoo! Friends via Windows Live Messenger. Find out how.
http://www.windowslive.com/explore/messenger?ocid=TXT_TAGLM_WL_messenger_yahoo_082008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman2.u.washington.edu/pipermail/imap-protocol/attachments/20080829/d5527c2b/attachment.html
More information about the Imap-protocol
mailing list