Bug 411640 - Could not create collection trash, resourceId: 8
Summary: Could not create collection trash, resourceId: 8
Status: CONFIRMED
Alias: None
Product: kmail2
Classification: Applications
Component: folders (show other bugs)
Version: 5.22.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-06 13:35 UTC by Johannes Rohr
Modified: 2023-07-27 10:31 UTC (History)
3 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 Johannes Rohr 2019-09-06 13:35:00 UTC
Kmail has suddenly become disfunctional. When I launch it, it immediately terminates with the message:

Im E-Mail-Programm ist ein schwerwiegender Fehler aufgetreten. Das Programm wird beendet.
Die Fehlermeldung lautet:

Could not create collection trash, resourceId: 8


SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Debian: GNU Linux Buster 
KDE Plasma Version: 5.14.5.1
KDE Frameworks Version: 5.54.0
Qt Version: 5.11.3
Comment 1 Ulf Bartholomäus 2022-10-02 10:14:50 UTC
Same here.
After adding a new IMAP resource and switching them to trash folder at the IMAP instance, kmail crashes.
"Could not create collection trash, resourceId 4"

kmail2 5.21.1 (22.08.1)
openSUSE Tumbleweed 20220930
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernel Version: 5.19.12-1-default (64-bit)
Graphics Platform: X11
Comment 2 Vadim A. Misbakh-Soloviov (mva) 2023-04-27 13:24:29 UTC
Same here,

Plasma: 5.27.4
KF: 5.105.0
Qt: 5.15.8
Comment 3 Ulf Bartholomäus 2023-04-27 19:37:17 UTC
(In reply to Vadim A. Misbakh-Soloviov (mva) from comment #2)
> Same here,
> 
> Plasma: 5.27.4
> KF: 5.105.0
> Qt: 5.15.8

See also bug report at:
https://bugs.kde.org/show_bug.cgi?id=339214

Removing of
~/.local/share/local-mail/trash/
solves the problem.
Comment 4 Vadim A. Misbakh-Soloviov (mva) 2023-04-27 21:09:43 UTC
(In reply to Ulf Bartholomäus from comment #3)
> Removing of
> ~/.local/share/local-mail/trash/
> solves the problem.

Not every time, unfortunately.

Yesterday it helped.

But today it continued to blame it until I reconfigured maildir_resource to another directory :shrug:
Comment 5 David 2023-07-27 10:31:23 UTC
I just experience this today on Kubuntu 23.04 and managed to fix it.
Yesterday, I had been re-configuring my IMAP accounts to trash things into the remote trash bins instead of my local one.
Today, when I started KMail I received this aforementioned error.

I did some mucking around in Akonadi Console until I figured out which IMAP resource was failing. Then I went to the "Agents" tab and did a "Configure Natively", changing the trash bin to another location (back to my local mail trash). I was able to restart Akonadi and KMail and everything seemed to be working. Next I configured it back to using remote trash and it still seems to be okay, although akonadiconsole did crash once while restarting the server.