{"action":"opened","issue":{"url":"https://api.github.com/repos/jamesiarmes/php-ews/issues/305","labels_url":"https://api.github.com/repos/jamesiarmes/php-ews/issues/305/labels{/name}","comments_url":"https://api.github.com/repos/jamesiarmes/php-ews/issues/305/comments","events_url":"https://api.github.com/repos/jamesiarmes/php-ews/issues/305/events","html_url":"https://github.com/jamesiarmes/php-ews/issues/305","id":117931344,"number":305,"title":"Retrieving attachments from forwarded message with embedded attachment","user":{"login":"mtfi-lorenzo","id":4755519,"avatar_url":"https://avatars.githubusercontent.com/u/4755519?v=3","gravatar_id":"","url":"https://api.github.com/users/mtfi-lorenzo","html_url":"https://github.com/mtfi-lorenzo","followers_url":"https://api.github.com/users/mtfi-lorenzo/followers","following_url":"https://api.github.com/users/mtfi-lorenzo/following{/other_user}","gists_url":"https://api.github.com/users/mtfi-lorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/mtfi-lorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtfi-lorenzo/subscriptions","organizations_url":"https://api.github.com/users/mtfi-lorenzo/orgs","repos_url":"https://api.github.com/users/mtfi-lorenzo/repos","events_url":"https://api.github.com/users/mtfi-lorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/mtfi-lorenzo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-19T23:19:19Z","updated_at":"2015-11-19T23:19:19Z","closed_at":null,"body":"I truly appreciate this library and it has helped tremendously.  The only issue I cannot resolve is extracting attachments from an e-mail message containing the attachments.  \r\n\r\nThis occurs when a user creates a new e-mail message and drags the original message (containing the attachment I need) into it.  I can see the properties of the e-mail is not \"FileAttachment\", but instead \"ItemAttachment\".  I have tried modifying the example code from the Wiki article \"Retrieve-All-Email-Attachments\", but only get an error about a missing Id.\r\n\r\nAny suggestions on how to access the attachments from the attached Item?\r\n\r\nPartial var dump from an example message:\r\n\r\nobject(stdClass)#149 (43) {\r\n  [\"ItemId\"]=>\r\n  object(stdClass)#150 (2) {\r\n    [\"Id\"]=>\r\n    string(152) \"AAMkADNmMTFkZWMzLWZmZTItNGYzZC1hMzY0LTM1ZmVlOTgyMGY3NABGAAAAAABp+AqPUrsDS5mJYBbgT8cMBwDr14N485PESKioLJfn3CaYAAAARQJbAAA5L/2MVrY6T4ykUiXThzPwAACzGsQ/AAA=\"\r\n    [\"ChangeKey\"]=>\r\n    string(40) \"CQAAABQAAAA/GBXkNTwXSpbEb55G2IRYAATPRA==\"\r\n  }\r\n  [\"ParentFolderId\"]=>\r\n  object(stdClass)#151 (2) {\r\n    [\"Id\"]=>\r\n    string(120) \"AAMkADNmMTFkZWMzLWZmZTItNGYzZC1hMzY0LTM1ZmVlOTgyMGY3NAAuAAAAAABp+AqPUrsDS5mJYBbgT8cMAQDr14N485PESKioLJfn3CaYAAAARQJbAAA=\"\r\n    [\"ChangeKey\"]=>\r\n    string(8) \"AQAAAA==\"\r\n  }\r\n  [\"ItemClass\"]=>\r\n  string(8) \"IPM.Note\"\r\n  [\"Subject\"]=>\r\n  string(76) \"Original E-mail with message attached\"\r\n  [\"Sensitivity\"]=>\r\n  string(6) \"Normal\"\r\n  [\"Body\"]=>\r\n  object(stdClass)#152 (2) {\r\n    [\"_\"]=>\r\n    string(0) \"\"\r\n    [\"BodyType\"]=>\r\n    string(4) \"Text\"\r\n  }\r\n  [\"Attachments\"]=>\r\n  object(stdClass)#153 (1) {\r\n    [\"ItemAttachment\"]=>\r\n    object(stdClass)#154 (5) {\r\n      [\"AttachmentId\"]=>\r\n      object(stdClass)#155 (1) {\r\n        [\"Id\"]=>\r\n        string(180) \"AAMkADNmMTFkZWMzLWZmZTItNGYzZC1hMzY0LTM1ZmVlOTgyMGY3NABGAAAAAABp+AqPUrsDS5mJYBbgT8cMBwDr14N485PESKioLJfn3CaYAAAARQJbAAA5L/2MVrY6T4ykUiXThzPwAACzGsQ/AAABEgAQAPejnEoDj9NPjr66WJDpifc=\"\r\n      }\r\n      [\"Name\"]=>\r\n      string(14) \"TestEMail with Attachment\"\r\n      [\"Size\"]=>\r\n      int(131514)\r\n      [\"LastModifiedTime\"]=>\r\n      string(19) \"2015-11-13T13:59:17\"\r\n      [\"IsInline\"]=>\r\n      bool(false)\r\n    }\r\n  }\r\n  [\"DateTimeReceived\"]=>\r\n  string(20) \"2015-11-13T13:59:19Z\"\r\n  [\"Size\"]=>\r\n  int(139250)\r\n  [\"Importance\"]=>\r\n  string(6) \"Normal\"\r\n  [\"IsSubmitted\"]=>\r\n  bool(false)\r\n  [\"IsDraft\"]=>\r\n  bool(false)\r\n  [\"IsFromMe\"]=>\r\n  bool(false)\r\n  [\"IsResend\"]=>\r\n  bool(false) "}}