<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>394784</bug_id>
          
          <creation_ts>2018-05-28 08:53:02 +0000</creation_ts>
          <short_desc>KMAIl 5.8.1: Reply to HTML-mail in text mode includes content from last mail</short_desc>
          <delta_ts>2023-08-29 13:45:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kmail2</product>
          <component>commands and actions</component>
          <version>5.8.0</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Axel Braun">axel.braun</reporter>
          <assigned_to name="kdepim bugs">pim-bugs-null</assigned_to>
          <cc>ach</cc>
    
    <cc>david.narvaez</cc>
    
    <cc>kde</cc>
    
    <cc>montel</cc>
    
    <cc>peter</cc>
    
    <cc>rigo</cc>
    
    <cc>robert</cc>
    
    <cc>wbauer1</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1755240</commentid>
    <comment_count>0</comment_count>
    <who name="Axel Braun">axel.braun</who>
    <bug_when>2018-05-28 08:53:02 +0000</bug_when>
    <thetext>I have highlighted (marked with mouse) some Text in a HTML-Mail before I reply to it. That works, so far so good.
Now replying to the next HTML mail in Text-mode (HTML-reply not enabled).
Result: content of previous mail is in reply
Expected result: Content of current mail is in reply.
Workaround: Mark text to reply</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904421</commentid>
    <comment_count>1</comment_count>
    <who name="Axel Braun">axel.braun</who>
    <bug_when>2020-01-21 20:14:53 +0000</bug_when>
    <thetext>Still an issue in 5.13.1
Not restricted to HTML-mails. A &apos;reply&apos; just uses the content of the clipboard, from the last mail....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904483</commentid>
    <comment_count>2</comment_count>
    <who name="Laurent Montel">montel</who>
    <bug_when>2020-01-22 06:13:18 +0000</bug_when>
    <thetext>Git commit 22482e3299e3f6a7e5f4e7f995183054044500ba by Laurent Montel.
Committed on 22/01/2020 at 06:12.
Pushed by mlaurent into branch &apos;release/19.12&apos;.

Disable reply with quote text as this bug is back in qt5.14.x

M  +2    -0    messagecomposer/src/helper/messagefactoryreplyjob.cpp

https://commits.kde.org/messagelib/22482e3299e3f6a7e5f4e7f995183054044500ba</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904508</commentid>
    <comment_count>3</comment_count>
    <who name="Laurent Montel">montel</who>
    <bug_when>2020-01-22 09:37:22 +0000</bug_when>
    <thetext>it&apos;s a qtwebengine bug
I reported it:
https://bugreports.qt.io/browse/QTBUG-81574</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904522</commentid>
    <comment_count>4</comment_count>
    <who name="Laurent Montel">montel</who>
    <bug_when>2020-01-22 10:03:29 +0000</bug_when>
    <thetext>I created a patch for this bug.
Now we need to wait that qt applies it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1904669</commentid>
    <comment_count>5</comment_count>
    <who name="Axel Braun">axel.braun</who>
    <bug_when>2020-01-22 16:33:39 +0000</bug_when>
    <thetext>(In reply to Laurent Montel from comment #4)
&gt; I created a patch for this bug.

Thank you!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1914196</commentid>
    <comment_count>6</comment_count>
    <who name="Rigo Wenning">rigo</who>
    <bug_when>2020-03-03 07:35:47 +0000</bug_when>
    <thetext>confirmed from here. Marking text and only having that text in the reply was handy and does not work anymore. kontact 13.2 in opensuse tumbleweed 20200229</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1914212</commentid>
    <comment_count>7</comment_count>
    <who name="Laurent Montel">montel</who>
    <bug_when>2020-03-03 10:46:42 +0000</bug_when>
    <thetext>(In reply to Rigo Wenning from comment #6)
&gt; confirmed from here. Marking text and only having that text in the reply was
&gt; handy and does not work anymore. kontact 13.2 in opensuse tumbleweed 20200229

normal there is a bug in qtwebengine &lt; 5.14.2 when we don&apos;t clear selection so we can reply with previous selection text. So I disabled it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1914553</commentid>
    <comment_count>8</comment_count>
    <who name="Wolfgang Bauer">wbauer1</who>
    <bug_when>2020-03-05 09:51:53 +0000</bug_when>
    <thetext>*** Bug 418005 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1919184</commentid>
    <comment_count>9</comment_count>
    <who name="Peter Humphrey">peter</who>
    <bug_when>2020-03-31 16:46:55 +0000</bug_when>
    <thetext>(In reply to Laurent Montel from comment #7)
&gt; (In reply to Rigo Wenning from comment #6)
&gt; &gt; confirmed from here. Marking text and only having that text in the reply was
&gt; &gt; handy and does not work anymore. kontact 13.2 in opensuse tumbleweed 20200229
&gt; 
&gt; normal there is a bug in qtwebengine &lt; 5.14.2 when we don&apos;t clear selection
&gt; so we can reply with previous selection text. So I disabled it.

I don&apos;t understand. What did you disable? Is the previous behaviour restored?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1919185</commentid>
    <comment_count>10</comment_count>
    <who name="Rigo Wenning">rigo</who>
    <bug_when>2020-03-31 17:05:02 +0000</bug_when>
    <thetext>I have KDE running with openSuSE Tumbleweed. This has currently kmail version 5.13.3 which corresponds to applications version 19.12.3. In this new version, the old behaviour is restored. So if you highlight text in an email and reply, only the highlighted text will be copied into the response email. And the bad behaviour described in this bug is gone.

This means IMHO, that this bug should be closed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1919218</commentid>
    <comment_count>11</comment_count>
    <who name="Christoph Vogtländer">kde</who>
    <bug_when>2020-03-31 20:24:47 +0000</bug_when>
    <thetext>I&apos;m running Arch Linux also with KMail 5.13.3 (19.12.3) with Qt 5.14.1. The bug i still present. But, if the bug is related to the Qt version rather than to KMail this would explain this. Either OpenSUSE uses a newer Qt version or ships with a patch.

Would the problem be solved by simply compiling against Qt &gt;= 5.14.2? Or are code changes needed? For the former case this would be up to the distribution to solve this by updating to a more recent Qt version. For the latter case something like &quot;#if (QT_VERSION &gt;= QT_VERSION_CHECK(5, 14, 2))&quot; or similar would be required (and compiling against a new Qt version or course).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1919230</commentid>
    <comment_count>12</comment_count>
    <who name="Rigo Wenning">rigo</who>
    <bug_when>2020-03-31 20:47:51 +0000</bug_when>
    <thetext>zypper if libQt5Core5 
Repository     : openSUSE:Tumbleweed         
Name           : libQt5Core5                 
Version        : 5.14.1-1.4                  
Arch           : x86_64                      
Vendor         : openSUSE

Perhaps they patched it. It was fixed with the latest update from 2020-03-25. In this new version there were a lot of KDEPIM fixes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1919295</commentid>
    <comment_count>13</comment_count>
    <who name="Wolfgang Bauer">wbauer1</who>
    <bug_when>2020-04-01 09:23:34 +0000</bug_when>
    <thetext>(In reply to Christoph Vogtländer from comment #11)
&gt; if the bug is related to the Qt version rather
&gt; than to KMail this would explain this. Either OpenSUSE uses a newer Qt
&gt; version or ships with a patch.
Yes, openSUSE already contains a patch to fix the problem in QtWebEngine.
But the commit in comment#2 disables the feature for all versions above 5.14.0, so that needs to be reverted/adjusted as well.

OTOH, kdepim 5.14 (20.04) beta has the check removed again, so compiling that version would work too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925492</commentid>
    <comment_count>14</comment_count>
    <who name="Wolfgang Bauer">wbauer1</who>
    <bug_when>2020-04-28 08:24:57 +0000</bug_when>
    <thetext>*** Bug 420696 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2241610</commentid>
    <comment_count>15</comment_count>
    <who name="Robert Riemann">robert</who>
    <bug_when>2023-07-18 20:57:40 +0000</bug_when>
    <thetext>I cannot reproduce this with 5.23.3 (23.04.3) on opensuse Tumbleweed. Can this be closed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2241738</commentid>
    <comment_count>16</comment_count>
    <who name="Axel Braun">axel.braun</who>
    <bug_when>2023-07-19 19:06:41 +0000</bug_when>
    <thetext>I think so, I cant reproduce either!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2249281</commentid>
    <comment_count>17</comment_count>
    <who name="Wolfgang Bauer">wbauer1</who>
    <bug_when>2023-08-29 13:45:16 +0000</bug_when>
    <thetext>Ok, let&apos;s close it then.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>