ebeigarts / exchanger

Ruby client for Exchange Web Services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change message attribute

avinashbangar opened this issue · comments

Hi,

Through EWS API I'm marking one of the email as read. For which I'm using Item.is_read attribute.
I'm creating object of Exchanger::UpdateItem. However after sending the request to edit the is_read property. I'm getting ResponseError as "MessageDisposition attribute is required".

The only way to fix it, is to add one more attribute in UpdateItem class, similar to send_meeting_invitations_or_cancellations, having name message_disposition and have a if check in
update_item_attributes method similar to the above field.

If you are fine with this approach I will submit a Pull Request to fix this issue.