]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-mail: message-parser - Truncate excessively long MIME boundaries
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 23 Apr 2020 09:53:12 +0000 (12:53 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 27 May 2020 05:28:17 +0000 (08:28 +0300)
commit2e60deb68235d868ff6fb324be16f92cf4b4aefb
tree8f343a12f863634d14022ac05b390575204803d2
parent14633032cfc7501b212667789506f2fb5340d2bc
lib-mail: message-parser - Truncate excessively long MIME boundaries

RFC 2046 requires that the boundaries are a maximum of 70 characters
(excluding the "--" prefix and suffix). We allow 80 characters for a bit of
extra safety. Anything longer than that is truncated and treated the same
as if it was just 80 characters.
src/lib-mail/message-parser-private.h
src/lib-mail/message-parser.c
src/lib-mail/test-message-parser.c