imapclient icon indicating copy to clipboard operation
imapclient copied to clipboard

Nicer BODY/BODYSTRUCTURE responses

Open mjs opened this issue 14 years ago • 0 comments

Originally reported by: Menno Smits (Bitbucket: mjs0)


Handling BODY and BODYSTRUCTURE responses is pretty tricky. Add:

  • Properties to access the main and minor content type.
  • Named access to other well defined fields of each part
  • is_multipart property on all parts
  • Properties to calculate the part number - compatible with FETCH BODY[] requests (eg '1.2')
  • Properties for accessing the various fields by name
  • walk() method for traversing

  • Bitbucket: https://bitbucket.org/mjs0/imapclient/issue/69

mjs avatar Feb 13 '11 21:02 mjs