Package: kdepim-runtime
Version: 4:24.12.3-1
Severity: normal
Tags: upstream
SUMMARY
When server-side subscriptions (SubscriptionEnabled=true) are enabled for an
IMAP account on a server using the INBOX. namespace (e.g., Dovecot/cPanel
where INBOX.Sent, INBOX.Trash, INBOX.Drafts, INBOX.Archive, INBOX.spam are
returned by LSUB, but INBOX itself is not explicitly listed in LSUB),
Akonadi
creates the INBOX collection (remoteId = .INBOX) with noselect=1 and empty
AccessRights in collectionattributetable. As a result, KMail never
selects or
syncs messages in INBOX (shows 0 messages despite mail existing on the
server).
This appears to be a long-standing upstream issue previously reported in KDE
Bug 243318 / Bug 284172, still reproducible in KDE Gear 24.12.3.
STEPS TO REPRODUCE
1. Configure an IMAP account in KMail against a Dovecot/cPanel IMAP server
using the INBOX. namespace where LSUB returns INBOX.* subfolders
(INBOX.Trash, INBOX.Sent, INBOX.Drafts, INBOX.Archive, INBOX.spam)
without
explicitly listing INBOX.
2. Keep Server-Side Subscriptions enabled (SubscriptionEnabled=true in
~/.config/akonadi_imap_resource_0rc).
3. Sync the account in KMail.
OBSERVED RESULT
- INBOX appears in KMail as a parent folder of Archive, Drafts, Sent, Trash,
spam, with 0 messages.
- In ~/.local/share/akonadi/akonadi.db (collectionattributetable), the INBOX
collection has noselect=1, empty AccessRights, and no uidvalidity,
uidnext,
or collectionflags, while child folders sync normally and report server
quota usage (~38.8 MB).
- No emails are downloaded for INBOX.
EXPECTED RESULT
Per RFC 3501, INBOX is a special, always-selectable mailbox and should never
be treated as \Noselect solely because it is inferred as a parent container
from LSUB results. KMail/Akonadi should always allow selecting and syncing
INBOX even when SubscriptionEnabled=true.
WORKAROUND
Setting SubscriptionEnabled=false in ~/.config/akonadi_imap_resource_0rc and
restarting Akonadi (akonadictl restart) immediately clears noselect=1 and
AccessRights and syncs all messages in INBOX. However, disabling server-side
subscriptions exposes internal Dovecot directories (e.g.
mail/virtual/.../dovecot_index_log).
SOFTWARE/OS VERSIONS
OS: Debian 13 (trixie)
kmail: 4:24.12.3-1
kdepim-runtime: 4:24.12.3-1
akonadi-server: 4:24.12.3-2~deb13u1