Ticket #113 (closed Bugs: fixed)
BODYSTRUCTURE parsing fails to account for additional fields
|Reported by:||octo||Owned by:||octo|
The current implementation of the IMAP BODYSTRUCTURE parser assumes a hard-coded relation between the number of sections and the length of the sequence. Some servers (i.e. Fastmail) may include additional sections, and this can result in the returned data structure containing null sections. These null sections then cause errors when trying to load them.
The implementation should instead dynamically size the array based on how many sections are actually added.