Closed titanlab closed 7 years ago
The second part assumes success if the folder is empty so it can be processed further during the synchronization (so it's able to delete the orphaned mails etc.)
I was conservative about that (i.e., if in doubt, don't delete). We should add an dedicated operation to delete orphaned mails (or an option to do this automatically).
We can surely discuss about that one because I did not really dive in deeply yet...
The first part looks if the filename contains either d or D, so the file has been marked as deleted, otherwise mail_is_marked_as_deleted won't even work.
The second part assumes success if the folder is empty so it can be processed further during the synchronization (so it's able to delete the orphaned mails etc.)