Bug 403770 - unified mailbox (folder) not update sometimes
Summary: unified mailbox (folder) not update sometimes
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: folders (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 427817 446842 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-01-30 16:15 UTC by CnZhx
Modified: 2023-11-20 03:35 UTC (History)
7 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 CnZhx 2019-01-30 16:15:07 UTC
SUMMARY
Unified mailbox (or folder) is amazing feature introduced recently. But sometimes the unified mailboxes do not update according to incoming new messages or deleting messages. However, the unified folders could update themselves after running ```akonadictl fsck && akonadictl restart```.

STEPS TO REPRODUCE
1. Start Kontact and configure a unified folder to include several inboxes.
2. Restart the machine and start Kontact to make sure the settings are effective.
3. Wait for new message incoming, or delete some old messages in the list of the unified folder.

OBSERVED RESULT
The new message appears in the (old fashion) inbox but not in the unified folder, or the deleted messages do not disappear from the unified folder.

EXPECTED RESULT
New message appears in the unified folder as soon as it appears in the inbox; the delete messages disappear from the unified folder as soon as they are moved to the Wastebin from the list of messages in the unified mailbox.


SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma: openSUSE Tumbleweed Snapshot 20190126
(available in About System)
KDE Plasma Version: 5.14.5
KDE Frameworks Version: 5.54.0
Qt Version: 5.12.0
Mail Version: 5.10.1

ADDITIONAL INFORMATION
It shows no obvious pattern of working smoothly or not. If I observe the list is not updated after a short while, I run ```akonadictl fsck && akonadictl restart``` to make it updated.
Comment 1 CnZhx 2019-02-01 11:40:44 UTC
Update: 

Most of the time, a simple "Update Folder (F5)" operation can update the list. But sometime, ```akonadictl fsck && akonadictl restart``` is needed for updating the list.
Comment 2 carl 2019-02-14 00:07:41 UTC
I can confirm this bug on Arch Linux with Kontact 5.10.2 (See attachment). I also found a similar report on reddit (https://www.reddit.com/r/kde/comments/aq8arx/unified_mailboxes_not_updating/). The workaround from CnZhx also work.
Comment 3 Muxika 2019-02-14 03:36:17 UTC
I can confirm this issue on Manjaro KDE with Kontact 5.10.1. Additionally, activating, deactivating, or modifying the akonadi_unifiedmailbox_agent plugin is not operating, and that plugin crashes repeatedly after performing "akonadictl restart."
Comment 4 02mzt 2020-04-29 08:59:07 UTC
I have a similar issue. Mails do seem to show up fine in the unified inbox, however when a message is deleted elsewhere (not in the unified inbox), the email stays in the unified inbox, but when clicking on them it shows 'the query returned an empty result set'.
Comment 5 sedrubal 2020-11-05 21:28:37 UTC
*** Bug 427817 has been marked as a duplicate of this bug. ***
Comment 6 Kishore Gopalakrishnan 2022-07-03 07:24:39 UTC
*** Bug 446842 has been marked as a duplicate of this bug. ***
Comment 7 Steven Robbins 2023-11-20 03:35:38 UTC
Bug remains in KMail Version 5.22.3 (22.12.3).

I have been using kmail for years with a local imap server. The local mailbox is fed using fetchmail to retrieve mail from my ISP’s imap server. Works a treat.

Recently I decided to directly add my upstream isp imap server as a second mailbox. Now I can look at emails on the upstream server directly. And there is a “Unified Mailboxes” pseudo-server that presents an aggregated view of both imap servers. The issue is that of course fetchmail is still periodically moving messages from upstream imap to local. And the unified mailboxes gets very confused.

When a message gets moved (removed from upstream imap and added to local imap), I end up with two duplicate entries in “unified mailboxes” and I can’t interact properly with them. Often I can’t delete one or both copies, for example. I end up re-starting kmail a couple times a day to clear things up.