Bug 185989 - kmail search dialog copies wrong messages
Summary: kmail search dialog copies wrong messages
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.11.90
Platform: Ubuntu Unspecified
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-02 19:49 UTC by Michael Sims
Modified: 2015-04-12 10:13 UTC (History)
1 user (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 Michael Sims 2009-03-02 19:49:29 UTC
Version:            (using KDE 4.2.0)
Installed from:    Ubuntu Packages

Open Kmail.  Create a new, empty folder to be the destination.  Select a folder with messages in it.  Type the letter S or use the menu to open the Find Messages modal dialog window.  Do a search which pulls up a subset of messages in that folder.  Select one or more messages in this dialog window, and drag them to the main Kmail window  and the new empty, folder, which gives you a choice to copy or move them to the new folder.  Do so.  The wrong messages are copied or moved.  The messages which DO end up being copied or moved are "close" in time to the messages which I intended to be copied or moved.

I believe this is related to messages being deleted from the original folder but the folder indexes not being updated; after I select "compact folder" the problem ceases to exist.  (The problem is easily reproducible if you have a test folder, delete some messages in it, and then do as I've described.)  However, the problem should never exist - if you're going to move a message out of a folder based on an index, you should make sure the index is up-to-date beforehand...   The folder I've observed this on has about 6000 messages and is in maildir format.

Interestingly, the problem doesn't exist if you move the messages from the main window, only from the search dialog window.  Moving messages from the search dialog window is definitely screwy - sometimes they don't move at all, nor can several messages be moved at once (even though they can be selected and dragged).  I would guess the search dialog is creating its own temporary index of messages-which-match-the-search, and this index just isn't working correctly.

Expected behavior: moving messages from the search dialog window should move the correct messages in all cases.
Comment 1 Jaime Torres 2009-03-07 12:57:15 UTC
Confirmed in Versión 4.2.65 (KDE 4.2.65 (KDE 4.3 >= 20090226)) "release 1.5"
Comment 2 Laurent Montel 2015-04-12 10:13:47 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.