[Imap-protocol] FETCH BODY[...] format..
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 --
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...
> Matthew Allen - Memecode Software
> Imap-protocol mailing list
> Imap-protocol at u.washington.edu
Talk to your Yahoo! Friends via Windows Live Messenger. Find out how.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Imap-protocol