Bug 494807 - some local folders hidden
Summary: some local folders hidden
Status: REPORTED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Maildir Resource (show other bugs)
Version: 6.2.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-15 11:53 UTC by kavol
Modified: 2024-11-29 10:31 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kavol 2024-10-15 11:53:21 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

After upgrade to 24.08.1, I cannot access some local folders in kmail, it pretends they don't exist.
These are visible in akonadiconsole, but grayed.
Trying to synchronise, clear caches, akonadictl fsck ... nothing helps.

STEPS TO REPRODUCE
1. have a big collection of mail over the years
2. use kmail regularly
3. have bad luck with akonadi ...

OBSERVED RESULT
some local folders are not visible in kmail

EXPECTED RESULT
all the contents of the configured maildir is visible and accessible in kmail

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
$ kinfo
Operating System: Gentoo Linux 2.15
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Kernel Version: 6.6.52-gentoo (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-4810MQ CPU @ 2.80GHz
Memory: 15.3 GiB of RAM
Graphics Processor: llvmpipe

ADDITIONAL INFORMATION
Comment 1 kavol 2024-10-15 11:55:54 UTC
(In reply to kavol from comment #0)
> Please remove this comment after reading and before submitting - thanks!

ups, sorry, I've scrolled down, got interrupted, then forgot :-)
Comment 2 kavol 2024-10-15 12:37:10 UTC
Looking closer, it seems that all of the affected folders were created within last two years, the older ones are visible all (but it doesn't apply vice versa, it is not that all the new ones would be invisible, just some of them).
Comment 3 kavol 2024-10-15 13:21:19 UTC
(In reply to kavol from comment #2)
> Looking closer, it seems that all of the affected folders were created
> within last two years, the older ones are visible all (but it doesn't apply
> vice versa, it is not that all the new ones would be invisible, just some of
> them).

seems that I was mistaken, scratch the note in parentheses, I haven't realised the real age of something

to be precise - inspecting collectiontable, I have found that the problem starts with id 1006, everything from this number up is hidden (or grayed out in akonadiconsole)

(now that's interesting - I'd expect 1000 or 1024 ... 1006 seems kinda random ...)

also note that when looking at these folders in akonadiconsole, I can browse only some of them, the others' contents are not shown despite it shows nonzero numbers for the count and size of the contents
Comment 4 kavol 2024-10-31 14:31:40 UTC
now this is getting interesting ... I've created a subfolder in one of the hidden folders manually, and it appeared in kmail immediately - only the one subfolder, not the others within the same parent folder, and the parent folder was grayed in kmail

after restart, both the parent and the new subfolder were hidden again, but after moving an email manually to the new subfolder, it became visible again in kmail (with the parent grayed)
Comment 5 whatifgodwasoneofus 2024-11-27 22:24:14 UTC
Check here: https://bugs.kde.org/show_bug.cgi?id=492233
It's the same bug!
Comment 6 kavol 2024-11-29 10:31:32 UTC
(In reply to whatifgodwasoneofus from comment #5)
> Check here: https://bugs.kde.org/show_bug.cgi?id=492233
> It's the same bug!

I don't think this is the same -

1) this is about local folders, bug 492233 is about IMAP

2) the folders are hidden no matter whether they contain new messages or not

well, I cannot rule out that there may be some common cause but at the first glance, it doesn't look the same (and I have no problem with IMAP, all folders are displayed)