Bug 186493

Summary: Kmail will not delete messages if not in currently selected folder
Product: [Unmaintained] kmail Reporter: lnxusr
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: bjoern, montel
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description lnxusr 2009-03-07 22:54:23 UTC
Version:            (using KDE 4.2.1)
OS:                Linux
Installed from:    Ubuntu Packages

If I click on the trashcan icon in the message view window, unless the folder that message is in is currently selected, nothing happens.  The message is not deleted, nor is the window closed.
Comment 1 Peter Mühlenpfordt 2009-11-26 11:51:09 UTC
I can confirm this behaviour with Kubuntu release 9.10 (Karmic Koala).

KMail: 1.12.2
KDE: 4.3.2
Qt: 4.5.2
Comment 2 Björn Ruberg 2010-02-15 02:07:44 UTC
Confirmed in KDE 4.3.5
Comment 3 lnxusr 2010-02-15 19:03:23 UTC
This is still the case in KDE 4.4.0
Comment 4 lnxusr 2010-08-07 01:37:28 UTC
Still the case with kde 4.5.0
Comment 5 Laurent Montel 2011-01-23 13:38:54 UTC
KMMessage* FolderStorage::getMsg(int idx)
{
  if ( idx < 0 || idx >= count() )
    return 0;
...
}

I looked at code and when folder is not selected count() return 0 => it can't be deleted. Don't know why for the moment.
Comment 6 Laurent Montel 2015-04-12 09:44:07 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.