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.
I have created a reproduction program and discussed the issue with our
iconv(3) developer, Tijl Coosemans
Cheers,
Xin LI delphij@delphij.net https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die