Bug 186493 - Kmail will not delete messages if not in currently selected folder
Summary: Kmail will not delete messages if not in currently selected folder
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-07 22:54 UTC by lnxusr
Modified: 2015-04-12 09:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.