imapclient
imapclient copied to clipboard
Nicer BODY/BODYSTRUCTURE responses
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