You want RFC 3501, part 6.4.5, to be a Fetch command, in particular BODY[<section>] . The number refers to the segments of the MIME structure of the message.
For example, if your message mime structure looks like this, the general format is:
multipart/alternative |- text/plain \- text/html
Details and substrings are numbered recursively:
multipart/alternative (top-level) |- text/plain (Part 1) \- text/html (Part 2)
For a more complex format, for example, with the application:
multipart/mixed (top-level) |- multipart/alternative (Part 1) | |- text/plain (Part 1.1) | \- text/html (Part 1.2) \- image/jpeg (Part 2)
If you require a complete message, the part number is usually left blank. Or you can use TEXT if you want to get the full message, but without headers.
source share