Incorrect Subject header encoding for long non-ascii line --------------------------------------------------------- Key: GERONIMO-3842 URL: https://issues.apache.org/jira/browse/GERONIMO-3842 Project: Geronimo Issue Type: Bug Security Level: public (Regular issues) Components: mail Affects Versions: 2.0.2 Reporter: Andrey Utkin Method MimeMessage.setSubject(subj, enc) when "subj" long enough and includes non-ascii characters produce incorrect Subject header. Using "subj": {code} Проверка. Достаточно длинная тема пиьма. Проверка. Проверка. {code} "enc": UTF-8 Subject header looks like: {code} Subject: =?UTF-8?B?0J/RgNC+0LLQtdGA0LrQsC4g0JTQvtGB0YLQsNGC0L7Rh9C90L4g0LTQu9C40L3Q?==?UTF-8?B?vdCw0Y8g0YLQtdC80LAg0L/QuNGM0LzQsC4g0J/RgNC+0LLQtdGA0LrQsC4g0J/R?==?UTF-8?B?gNC+0LLQtdGA0LrQsC4=?= {code} So, there is none line breaks (folding) near "?==?UTF-8?". There is a lot of mail clients which can`t parse this header correctly. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.