On 22 May 2015, at 17:44, Xin Li <delphij@delphij.net> wrote:
On 05/22/15 13:18, Cassidy Larson wrote:
We're using FreeBSD 10.1
I see. Yes that's the same problem I have seen.
There is a behavioral difference (I think it's a FreeBSD bug) between FreeBSD's iconv(3) and GNU implementation, and there is arguably a bug with Dovecot that iconv(3) state should be reset for each multipart part. The two together would trigger the problem when the previous part was ended with UTF-7 shift sequence. Timo have applied a fix (hg: 18721:9809f68aaa36) for Dovecot which should mitigates this issue at Dovecot side a few days ago.
Could you or somebody help with getting this included as a unit test to Dovecot? I've attached a patch that I guess might cause the crash.