[Kde-pim] IMAP resource: RemoveCollectionRecursiveTask::deleteNextMailbox() #287903
Christian Mollekopf
chrigi_1 at fastmail.fm
Mon Nov 18 08:36:13 GMT 2013
On Sunday 17 November 2013 16.35:03 Martin Koller wrote:
> I'm debugging why the imap resource can not delete an empty folder
> https://bugs.kde.org/show_bug.cgi?id=287903
>
> the problem is that in RemoveCollectionRecursiveTask::deleteNextMailbox()
> the code tries to select all messages in the folder to set them to
> "deleted". However if the folder is empty, the server replies with an error
> "Invalid messageset" and the deletion is never done.
>
> Why does the imap resource try to delete all mails at all ?
> When the folder is deleted, all mails are removed automatically.
>
Hey,
This seems indeed to be a pointless step. I'll check the spec, but I assume
you are right that we can just delete the collection.
Thanks for looking into this.
Cheers,
Christian
> I tried to simply not do the steps
> // mark all items as deleted
> // expunge the mailbox
> and this works fine.
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list