@@ -0,0 +1,894 @@
+package com.fsck.k9.mail.internet;%0A%0A%0Aimport java.io.IOException;%0A%0Aimport com.fsck.k9.mail.MessagingException;%0Aimport okio.Buffer;%0Aimport org.apache.james.mime4j.util.MimeUtil;%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0A%0Apublic class TextBodyTest %7B%0A    @Test%0A    public void getSize_withSignUnsafeData_shouldReturnCorrectValue() throws Exception %7B%0A        TextBody textBody = new TextBody(%22From Bernd%22);%0A        textBody.setEncoding(MimeUtil.ENC_QUOTED_PRINTABLE);%0A%0A        long result = textBody.getSize();%0A        %0A        int outputSize = getSizeOfSerializedBody(textBody);%0A        assertEquals(outputSize, result);%0A    %7D%0A%0A    private int getSizeOfSerializedBody(TextBody textBody) throws IOException, MessagingException %7B%0A        Buffer buffer = new Buffer();%0A        textBody.writeTo(buffer.outputStream());%0A        return buffer.readByteString().size();%0A    %7D%0A%7D%0A

Add test to demonstrate bug in TextBody.getSize()