5695ec03a0cc4836896e46a01bb9336782aee326 |
|
14-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-mail: istream-header-filter - Fix HEADER_FILTER_ADD_MISSING_EOH with empty input
The result for "" should be "\n", not "\n\n". The second "\n" would belong
to the mail body.
This fixes calculating hashes for incremental dsync when mail didn't have
Date or Message-ID headers, resulting in e.g.:
Warning: Deleting mailbox 'INBOX': UID=1 already exists locally for a different mail: Headers hashes don't match (e1c06d85ae7b8b032bef47e42e4c08f9 vs 68b329da9893e34099c7d8ad5cb9c940) |
69eb1a17f443454e0b3025f86f428671ace06e89 |
|
28-Dec-2016 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
lib-mail: header filter should call callback for added EOH
If we add a EOH because there wasn't one and
HEADER_FILTER_ADD_MISSING_EOH was specified, we should invoke the
callback for it. Otherwise, it is unnecessarily difficult for consumers
to add a header since there is no way to know if EOH will be present
ahead of time. |
10d2dbb8343d9f7a294519224e5e08e1c13e7453 |
|
03-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-mail: istream-header-filter HEADER_FILTER_ADD_MISSING_EOH fixes
When using HEADER_FILTER_CRLF_PRESERVE, add CR to the EOH if the previous
header line ended with CRLF.
When header ends to a header without newline, add two newlines so we can get
the actual EOH added. |