[kmail2] [Bug 316153] can't move or delete messages in imap inbox

Kim Lilliestierna via KDE Bugzilla bugzilla_noreply at kde.org
Mon Nov 9 22:44:42 GMT 2015


https://bugs.kde.org/show_bug.cgi?id=316153

--- Comment #31 from Kim Lilliestierna <kill at itr.no> ---
Mucked around a bit with this, I have access to 2 different imap servers on is
a Dovecot the other A Courier, it works ok on the Dovecot not  on the Courier,
After enabling debugging on the akonadi IMAP resource i see one very important
difference:
on the Dovecot case the EXPUNGE command is sent regularly, on the Courier it
does not. This explains the behavior: Deleting a message in IMAP only marks it
as \DELETED but it still exists and Kmail vill act upon it as if it where a
regular message, to really get rid of the message a EXPUNGE command need to be
sent to the IMAP server for the folder in question. Moving a file entails first
copying it and then deleting the original.
And since the original only gets marked and Kmail is a bit stupid there, any
auto scripts that you might be running goes nuts with the moving.
I asume that the above 1/2 solution with an alternate mail client works since
they probably send of the EXPUNGE and cleans out the crap :)
So why the different behavior on different servers?, im guessing some (not) so
smart decision is being made based on the servers capability report.

So, either add a "force EXPUNGE" command/button/menu entry/whatever and have
Kmail ignore mails with the \DELETED flag set, at the least when scripts are
running.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list