]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-imap: Fix writing BODYSTRUCTURE for truncated multipart/ part
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 18 Nov 2020 18:48:11 +0000 (20:48 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Wed, 2 Dec 2020 07:31:44 +0000 (07:31 +0000)
commite32a99fd5779562e291b2a84586f74f9af972ba0
tree32bb349160e8e8eeabadfa8a950411bf4f454481
parentf3ff0ca97196ea35dc5aade93c1b49806cf39389
lib-imap: Fix writing BODYSTRUCTURE for truncated multipart/ part

If the max nesting limit is reached, write the last part out as
application/octet-stream. The original content-type could be confusing
IMAP clients when they don't see any child parts.
src/lib-imap/imap-bodystructure.c
src/lib-imap/test-imap-bodystructure.c