[Kde-pim] IMAP resource: RemoveCollectionRecursiveTask::deleteNextMailbox() #287903

Christian Mollekopf chrigi_1 at fastmail.fm
Mon Nov 18 15:53:38 GMT 2013


On Monday 18 November 2013 16.44:30 Volker Krause wrote:
> On Monday 18 November 2013 16:32:16 Martin Koller wrote:
> > 
> > what does not work with subfolders ?
> > In my test, where I commented the "delete mails" step, I could remove a
> > folder which had a subfolder (If I understand the code correctly, it
> > deletes the folders recursively, starting with the lowest in the tree
> > (leafs first))
> 
> IIRC this code was added because some implementations do not support
> deletion of non-empty folders, or recursive deletion of folders with
> sub-folders. The fact that it works with one server unfortunately says very
> little about the the general case with IMAP :-(
> 

The IMAP spec explicitly disallows deleting folders that still have 
subfolders, it is supposed to work with items though. But I guess some servers 
might not comply with allowing to remove folders that still contain items 
then.

> We can probably relax the error handling in this case though, ie. continue
> even if one of the sub-deletions failed, we might still succeed in some more
> cases then.
> 

I'll just fix the errorhandling then.

Cheers,
Christian

_______________________________________________
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