sba1 / simplemail

SimpleMail is a simple email client targeting AmigaOS and compatible platforms.
http://simplemail.sourceforge.net/
GNU General Public License v2.0
15 stars 8 forks source link

Fixes deletion of mails in IMAP synchronization. Also handles empty folders #11

Closed titanlab closed 7 years ago

titanlab commented 7 years ago

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.)

sba1 commented 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).