diff options
author | Kali Kaneko <kali@leap.se> | 2015-03-23 12:41:49 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-03-23 14:44:44 -0400 |
commit | edc1d23ef520871b9585ed5d8fdced9ee8b98594 (patch) | |
tree | fd233c9118dda113a14e581f6722a149c652319a /mail/changes/feature-6598_refactor_incoming_mail | |
parent | 80e37a761656bf2aedbc30a3e3add432fbed3ca7 (diff) |
[bug] add extra CRLF to avoid bad mime parsing in Thunderbird
Thunderbird (as of 37.0b1) will display a blank body (with no
attachments) if some conditions are met:
* disk synchronization is disabled
* mime_part_on_demand = true
* msg size is bigger than the parts_on_demand threshold (30000 by
default).
Comparing the logs with a well behaved imap server (dovecot, on this
case), it's easy to see that twisted implementation is lacking an extra
line separator at the end of each group of headers that is rendered in
response to each of the `BODY.PEEK[X.MIME]` command that the
mime_parts_on_demand will issue after getting the BODYSTRUCTURE.
This change patches the spew_body command on the body server.
We still would have to see if this is a bad behaviour in the thunderbird
side. The most similar bug I've found is:
https://bugzilla.mozilla.org/show_bug.cgi?id=149771
Which apparently was happening with exchange server.
We should send the patch to upstream twisted as well.
Note that this fix is not enough: the following commit, about fixing the
case of the boundary passed in the BODYSTRUCTURE response is also needed
to fix the bug (since a bad parsing happens all the same).
Resolves: #6773, #5010
Documentation: #6773
Releases: 0.4.0
Diffstat (limited to 'mail/changes/feature-6598_refactor_incoming_mail')
0 files changed, 0 insertions, 0 deletions