<?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>406324</bug_id>
          
          <creation_ts>2019-04-08 09:35:48 +0000</creation_ts>
          <short_desc>Messages detected as scam are deleted when moved to trash</short_desc>
          <delta_ts>2019-04-08 11:35:58 +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>general</component>
          <version>5.10.3</version>
          <rep_platform>Arch Linux</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="Patrick">mail</reporter>
          <assigned_to name="kdepim bugs">pim-bugs-null</assigned_to>
          
          
          <cf_commitlink>https://commits.kde.org/kmail/7cd1d750b30ca534af204aaf65d9371fbc020573</cf_commitlink>
          <cf_versionfixedin>5.11.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1849149</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick">mail</who>
    <bug_when>2019-04-08 09:35:48 +0000</bug_when>
    <thetext>SUMMARY
The option &apos;Move to Trash&apos; in the scam detection menu doesn&apos;t move messages to trash, but deletes them permanently. The following error is logged:
kmail[3963]: QObject::connect(KPIM::ProgressItem, KMTrashMsgCommand): invalid null parameter.

Other move to trash actions (pressing the &apos;Del&apos; key) work just fine.


STEPS TO REPRODUCE
1. Select a scam message in the Inbox.
2. In the Scam detection dropdown menu, select the action &apos;Move to Trash&apos;.

OBSERVED RESULT
The message had disappeared from the Inbox, but is not moved to the Trash.

EXPECTED RESULT
The message should have been moved to the Trash.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1849163</commentid>
    <comment_count>1</comment_count>
    <who name="Laurent Montel">montel</who>
    <bug_when>2019-04-08 11:35:55 +0000</bug_when>
    <thetext>Git commit 7cd1d750b30ca534af204aaf65d9371fbc020573 by Laurent Montel.
Committed on 08/04/2019 at 11:35.
Pushed by mlaurent into branch &apos;Applications/19.04&apos;.

Fix Bug 406324 - Messages detected as scam are deleted when moved to trash

Move really in trash. Don&apos;t delete it.
FIXED-IN: 5.11.0

M  +1    -1    src/kmcommands.cpp

https://commits.kde.org/kmail/7cd1d750b30ca534af204aaf65d9371fbc020573</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1849164</commentid>
    <comment_count>2</comment_count>
    <who name="Laurent Montel">montel</who>
    <bug_when>2019-04-08 11:35:58 +0000</bug_when>
    <thetext>Git commit 66f91b35246c5e4055c05ce6e378691f0c45d35c by Laurent Montel.
Committed on 08/04/2019 at 11:34.
Pushed by mlaurent into branch &apos;Applications/19.04&apos;.

Fix bug Bug 406324 - Messages detected as scam are deleted when moved to trash

Fix connect signal/slot error

M  +1    -1    src/kmcommands.cpp

https://commits.kde.org/kmail/66f91b35246c5e4055c05ce6e378691f0c45d35c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>