Iterate over the uidMap and not the index when checking for messages that are to be deleted locally as that is much quicker.
Iterate over the uidMap and not the index when checking for messages
that are to be deleted locally as that is much quicker.

Bo, there is code in findByUID() which effectively rebuilds the uidMap
for each message that is not on the server anymore to make sure it has not
_not_ found it locally due to a problem with the map. Is that kind of
paranoia really necessary? What are the chances of that datastructure
being invalidated in between the mail listing and the use of findByUID()?

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

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