Improve maildir sync and reduce memory usage
Review Request #113918 - Created Nov. 18, 2013 and submitted
Use QDirIterator instead of getting the list of mails in a folder as a stringlist. Safe some stats (as QDirIterator already can provide the info) and doesn't require adding all files to the key cache, thus reducing the memory usage for large folders.
Works for me, waiting for more testers with many mails.
Looks good to me! In general I am wondering though if we might not want something like a MaildirIterator (friend of Maildir), that can be used to iterate through the maildir, doing the new->cur switching or similar things internally.
Approach in general is sensible, but I'm biased there ;-) While Kevin is right that this could probably done with a more elegant API, I'm ok with this too since it's a minimal intrusive/low risk approach.