zenchild/Viewpoint — Issue #28: Item is 'deepened' even when it doesn't need to be
Author: daveespo
Created: 2011-12-15 13:00:03+00:00
State: open

If you try to use any of the mbox accessors on an Item, it calls deepen! even if the properties are already present in the @ews_item hash.

This causes an extra (expensive) call to the server for each item you're iterating over

The call to deepen! should only be made if it's not already present in the hash (i.e. if you've specified :additional_properties in the item_shape and included to_recipients, etc.)

Pull request coming..