Update keymanager kwargs, related to #5120.
pep8 fixes.
Merge remote-tracking branch 'ivan/bug/fix-keymanager-args' into develop
cache uidvalidity
remove size calculation until we defer it to thread properly
defer fetch-all-flags too
avoid unneeded db index updates and rdoc creation
catch soledad error while updating mbox doc