Imap4d: fix handling of nested message/rfc822 parts.
* imap4d/fetch.c (fetch_runtime_closure) <msglist>: New member. (frt_register_message,frt_unregister_messages): New functions. (fetch_get_part_rfc822): Look into encapsulated rfc822 messages. (_frt_body_text,_frt_header) (_frt_header_fields): Use frt_unregister_messages. (imap4d_fetch0): Initialize all fields in struct fetch_runtime_closure. Destroy msglist when finished using it. * imap4d/tests/fetch.at: Add test cases for nested message/rfc822. * testsuite/spool/msg.mbox: Add a message with nested message/rfc822 part.
Showing
3 changed files
with
331 additions
and
15 deletions
-
Please register or sign in to post a comment