Merge pull request #6838 from thundernest/fix_ContentTransferEncoding
Don't parse `Content-Transfer-Encoding` as header containing named parameters
This commit is contained in:
commit
9f9062e02e
1 changed files with 0 additions and 5 deletions
|
@ -7,7 +7,6 @@ import java.io.OutputStream;
|
|||
|
||||
import com.fsck.k9.mail.internet.BinaryTempFileBody;
|
||||
import com.fsck.k9.mail.internet.BinaryTempFileMessageBody;
|
||||
import com.fsck.k9.mail.internet.MimeUtility;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.apache.james.mime4j.util.MimeUtil;
|
||||
|
||||
|
@ -16,10 +15,6 @@ public class DefaultBodyFactory implements BodyFactory {
|
|||
public Body createBody(String contentTransferEncoding, String contentType, InputStream inputStream)
|
||||
throws IOException {
|
||||
|
||||
if (contentTransferEncoding != null) {
|
||||
contentTransferEncoding = MimeUtility.getHeaderParameter(contentTransferEncoding, null);
|
||||
}
|
||||
|
||||
final BinaryTempFileBody tempBody;
|
||||
if (MimeUtil.isMessage(contentType)) {
|
||||
tempBody = new BinaryTempFileMessageBody(contentTransferEncoding);
|
||||
|
|
Loading…
Reference in a new issue