When the user deletes a maildir folder first delete the new, cur and tmp subdirs, then check if the dir itself is empty and only then delete the folder directory itself. This prevents data loss if the user has non-kmail data stored in a folder in ~/Mail and then creates a maildir folder of the same name and later deletes it.
When the user deletes a maildir folder first delete the new, cur and tmp subdirs, then check if the dir itself is empty and only then delete the folder directory itself. This prevents data loss if the user has non-kmail data stored in a folder in ~/Mail and then creates a maildir folder of the same name and later deletes it.

CCMAIL: 68661-done@bugs.kde.org

svn path=/trunk/kdepim/; revision=270284

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi