Bug 318049

Summary: Message list gets blank after deleting message
Product: [Applications] kmail2 Reporter: l.mierzwa
Component: message listAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aspotashev, freekdekruijf, info, kdenis, marc+bugs, maxy, steve
Priority: NOR    
Version: 5.4.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description l.mierzwa 2013-04-08 16:29:55 UTC
After upgrading to 4.10.2 (verified on ubuntu 12.10 with backport ppa and fresh ubuntu 13.04 install) message list gets blank if I delete any message. After selecting different folder and then going back to original folder list it is displayed correctly.

Reproducible: Always

Steps to Reproduce:
1. go to folder containing more than 1 message
2. select any message and click delete button
Actual Results:  
message list gets blank (doesn't show any message) but the folder on left panel with folder tree shows that it contains messages (unread counter is also displayed correctly)


Expected Results:  
selected message should be removed from message list and remaining messages should still be visible

if I select different folder and then go back to original folder it is displayed ok, it happens only right after I delete any message
Comment 1 l.mierzwa 2013-04-08 20:37:03 UTC
It doesn't seem to be happening every time, I just booted Kubuntu and I could delete most messages without this issue, but when I had only 2 messages left in my folder it happened again.
Comment 2 Freek de Kruijf 2013-04-26 19:04:53 UTC
I see the same, but only when I delete the lowest message in the message list. Deleting messages from the top appears OK.
Also deleting the last message makes the message list empty, as it should, but the deleted message is still visible in the message panel. In earlier versions the message panel became empty.
Comment 3 Freek de Kruijf 2013-05-22 07:08:58 UTC
Related to bug# 317933 ?
Comment 4 Maximiliano Curia 2013-12-04 09:00:14 UTC
Hi,

I've been seeing this behavior in a folder with a small amount of messages for some time now., but I thought is was an issue with my setup. Deleting the last message of a list where the messages are all in the same "group" seems to trigger this bug frequently.

That is with sorting by date/time most recent in subtree, most recent on top, descending, and aggregation current activity, discussion thread mode. The messages I'm testing with are all from different threads.

This bug is also reported in Debian: 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731302
Comment 5 Steven Robbins 2013-12-14 04:20:27 UTC
Still an issue with version 4.11.3.

Another data point: it happens most often in a mailing list folder and almost never (I can't recall it ever happening) on "Local Account" folder.

-Steve Robbins
Comment 6 Steven Robbins 2014-10-23 18:04:00 UTC
(In reply to Steven Robbins from comment #5)
> Still an issue with version 4.11.3.
> 
> Another data point: it happens most often in a mailing list folder and
> almost never (I can't recall it ever happening) on "Local Account" folder.

To clarify my setup: I was using procmail rules to split messages into different mailboxes -- and "mailing list folder" just means anything other than the standard Inbox.  That the delivery to files was happening outside of kmail.  This set-up was using regular mbox files on disk.

Now, I have recently switched to imap server (Dovecot) and still the issue persists with Kmail 4.14.1.
Comment 7 Freek de Kruijf 2014-10-23 21:03:47 UTC
Also using KDE/KMail 4.14.1. I use an IMAP client on a courier IMAP server with just two folders Inbox and Trash (subfolder of Inbox). Irregilarly when I am reading new messages in Inbox and deleting that message, which goes into the Trash folder, the list with other new messages, gets blank. Both when I start on the top of the list or at the bottom of the list. AFAICT starting in the middle does not have this problem. It is quite irregular, sometimes I have this problem, at other times not.
Comment 8 Igor Zhuravlov 2014-12-22 05:23:32 UTC
I confirm for KMail2 version 4.11.5, OS: Linux (i686) release 3.11.10-21-desktop, compiler: cc. Appears for either local or IMAP folders. "Reindex" commant doesn't help. Akonadi server restart helps, though.

Some typical cases:
1. Folder contains some messages. Message list gets blank if I delete any message. After selecting different folder and then going back to original folder the list is displayed correctly.
2. Folder contains some messages. Copy one or more messages to that folder. Enter that folder: message list shows only just copied messages without old messages residing there before. But message counter in left menu shows correct value. Delete all (i.e. visible, i.e. new) messages, so message list gets empty: message counter correctly gets reduced, but still positive value. Swich to another folder, then switch back to problem folder: old messages are appear in message list.
3. Empty trash folder. It gets empty, but message counter gets reduced to still positive value. Swich to another folder, then switch back to trash folder: all messages hidden before are appear in message list.
Comment 9 Freek de Kruijf 2014-12-22 10:18:04 UTC
Still preset in KMail2 4.14.3
Comment 10 Denis Kurz 2017-01-14 14:43:03 UTC
No activity for more than two years... Is this still an issue in more recent, Framework-based versions of KMail? Please state the version you have installed when you report back. The version should be 5.0 or later, a.k.a. 15.08.0 or later.
Comment 11 Igor Zhuravlov 2017-01-16 00:51:47 UTC
My current KMail version is 5.3.0 (QtWebEngine), using KDE Frameworks 5.26.0,
Qt 5.6.1 (built with version 5.6.1) and xcb. There is no such issue in this version.
Comment 12 Denis Kurz 2017-01-16 08:46:01 UTC
Thank you, Igor, your feedback is appreciated! Closing as WORKSFORME
Comment 13 Freek de Kruijf 2017-01-17 14:07:02 UTC
It is still present in a very recent kmail, 16.12.0-2.1, application under specific circumstances.
These circumstances are:
A few new messages in the inbox and no other messages. Deleting messages one by one. In my case I have configured this account such that deleted messages go to the trash folder of that account. In the test I performed just now, I had 3 new messages in inbox. I select this inbox and delete the oldest message. After that the inbox folder shows empty. The count in the folder list shows 1 unread + 1 read. Going to another folder and back to inbox shows 2 messages in inbox; one already read, the other new. Deleting the read one gives again an empty message list. The folder list shows one read message present in the folder. Selecting another folder and going back to inbox shows the remaining message in the message list.
Yesterday doing the same did not show this behavior.

I started previously akonadi with 'akonadictl start' in a console, which still shows messages. While deleting these 3 messages I got the following messages displayed:
org.kde.pim.akonadicore: Got a stale notification for an item which was already removed. 18551 ""
org.kde.pim.akonadicore: Got a stale notification for an item which was already removed. 18551 ""
org.kde.pim.akonadicore: Got a stale notification for an item which was already removed. 18551 ""
org.kde.pim.akonadicore: Got a stale notification for an item which was already removed. 18551 ""
org.kde.pim.akonadicore: Got a stale notification for an item which was already removed. 18541 ""
org.kde.pim.akonadicore: Got a stale notification for an item which was already removed. 18541 ""

In another account I have 3 new messages in inbox, nothing else. When selecting this inbox I immediately got a number of messages of the above type. In this case deleting the oldest did not produce an empty message list, but deleting the second did produce the empty list. Deleting such a message produced again 2 messages of this type on the console.
These messages have the following message in between:
org.kde.pim.akonadiserver: Cannot pause an inactive timer

I have seen this behavior only when a few messages are left in the inbox.
Comment 14 Steven Robbins 2017-01-28 21:55:33 UTC
I just encountered this problem with KMail 5.2.3 -- Debian's build of kdepim 16.04.3.
Comment 15 Alexander Potashev 2017-10-22 13:23:13 UTC
Duplicate of bug 331539
Comment 16 Geert Janssens 2024-10-18 17:13:52 UTC

*** This bug has been marked as a duplicate of bug 331539 ***