SUMMARY When replying a mail, the quote is sometimes missing. STEPS TO REPRODUCE 1. Click on "Reply" OBSERVED RESULT Sometimes the text area is blank, sometimes it is correctly pre-filled with quoted message. It depends on which email is replied.
Hello, I need a testcase. Could you send me email which create a problem please ? Do you reply mail as html ?
This email is not quoted on reply: https://patches.dpdk.org/patch/76484/mbox/ This email is quoted well when replying: https://patches.dpdk.org/patch/76166/mbox/ It seems it depends on the sender (probably its MTA).
Works fine here. Theses mails are stored in different folder ? do you use different reply template ?
Created attachment 131460 [details] email which is not quoted on reply
After testing above URLs, they work fine for me as well. The problem is with emails as they are locally. Please check with the attachment. Note: I do not compose as HTML, all emails are in the same folder, and there is no special template. I started seeing this regression recently (5.15 I believe).
The bug is not present with emails having a Content-Type field.
Created attachment 131686 [details] proposed fix I think I have a fix in kmime Content::parse() + if (ct->isEmpty()) + ct->setMimeType("text/plain"); Please check the attachment, thanks.
Git commit 6d637f9a34e09f6577c52436003fd102b65a8f43 by Laurent Montel. Committed on 16/09/2020 at 05:34. Pushed by mlaurent into branch 'release/20.08'. based on patch from Thomas Monjalon <thomas@monjalon.net> Fix discarded content if no Content-Type When replying to an email without any content type header, the content was ignored (i.e. not quoted in the reply). M +4 -4 autotests/contenttest.cpp M +4 -1 src/kmime_content.cpp https://invent.kde.org/pim/kmime/commit/6d637f9a34e09f6577c52436003fd102b65a8f43