MBOX-Line: From fret at memecode.com  Fri Aug 29 03:44:38 2008
To: imap-protocol@u.washington.edu
From: Matthew Allen <fret@memecode.com>
Date: Fri Jun  8 12:34:42 2018
Subject: [Imap-protocol] FETCH BODY[...] format..
Message-ID: <CSFIY4.25787TTE@memecode.com>

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)


