{"action":"created","issue":{"url":"https://api.github.com/repos/ecederstrand/exchangelib/issues/43","repository_url":"https://api.github.com/repos/ecederstrand/exchangelib","labels_url":"https://api.github.com/repos/ecederstrand/exchangelib/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/ecederstrand/exchangelib/issues/43/comments","events_url":"https://api.github.com/repos/ecederstrand/exchangelib/issues/43/events","html_url":"https://github.com/ecederstrand/exchangelib/issues/43","id":194670973,"number":43,"title":"Saving Outlook Items","user":{"login":"nstr10","id":12117598,"avatar_url":"https://avatars.githubusercontent.com/u/12117598?v=3","gravatar_id":"","url":"https://api.github.com/users/nstr10","html_url":"https://github.com/nstr10","followers_url":"https://api.github.com/users/nstr10/followers","following_url":"https://api.github.com/users/nstr10/following{/other_user}","gists_url":"https://api.github.com/users/nstr10/gists{/gist_id}","starred_url":"https://api.github.com/users/nstr10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nstr10/subscriptions","organizations_url":"https://api.github.com/users/nstr10/orgs","repos_url":"https://api.github.com/users/nstr10/repos","events_url":"https://api.github.com/users/nstr10/events{/privacy}","received_events_url":"https://api.github.com/users/nstr10/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-12-09T18:59:15Z","updated_at":"2016-12-12T20:22:30Z","closed_at":null,"body":"I'm trying to figure out how to save Outlook Items that are attached to emails (emails attached to emails). For normal file attachments, I simply do something like:\r\n```\r\nfor att in item.attachments:\r\n    with open(filename, \"wb\") as temp:\r\n        temp.write(att.content)\r\n```\r\nHowever, Outlook Items have no attribute \"content\" and I therefore have no idea what attribute needs to be written to disk. I'm fairly certain I'm just overlooking something - there is an overwhelming amount of information returned if I print out the attributes of the attachment.\r\n\r\nIs there a way to get a binary version of the attachment to save?"},"comment":{"url":"https://api.github.com/repos/ecederstrand/exchangelib/issues/comments/266541755","html_url":"https://github.com/ecederstrand/exchangelib/issues/43#issuecomment-266541755","issue_url":"https://api.github.com/repos/ecederstrand/exchangelib/issues/43","id":266541755,"user":{"login":"ecederstrand","id":559151,"avatar_url":"https://avatars.githubusercontent.com/u/559151?v=3","gravatar_id":"","url":"https://api.github.com/users/ecederstrand","html_url":"https://github.com/ecederstrand","followers_url":"https://api.github.com/users/ecederstrand/followers","following_url":"https://api.github.com/users/ecederstrand/following{/other_user}","gists_url":"https://api.github.com/users/ecederstrand/gists{/gist_id}","starred_url":"https://api.github.com/users/ecederstrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecederstrand/subscriptions","organizations_url":"https://api.github.com/users/ecederstrand/orgs","repos_url":"https://api.github.com/users/ecederstrand/repos","events_url":"https://api.github.com/users/ecederstrand/events{/privacy}","received_events_url":"https://api.github.com/users/ecederstrand/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T20:22:30Z","updated_at":"2016-12-12T20:22:30Z","body":"That's strange. This snippet prints MIME on my machine:\r\n\r\n```\r\nfor message in a.inbox.all():\r\n    print(message.mime_content)\r\n```\r\n\r\nDo you perhaps have a `.only(...)` clause in your query?"}}
{"actor":{"display_login":"ecederstrand"}}