{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/9007","labels_url":"https://api.github.com/repos/odoo/odoo/issues/9007/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/9007/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/9007/events","html_url":"https://github.com/odoo/odoo/pull/9007","id":110799667,"number":9007,"title":"Fix email inline attachments","user":{"login":"michaelhwalther","id":4467353,"avatar_url":"https://avatars.githubusercontent.com/u/4467353?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelhwalther","html_url":"https://github.com/michaelhwalther","followers_url":"https://api.github.com/users/michaelhwalther/followers","following_url":"https://api.github.com/users/michaelhwalther/following{/other_user}","gists_url":"https://api.github.com/users/michaelhwalther/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelhwalther/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelhwalther/subscriptions","organizations_url":"https://api.github.com/users/michaelhwalther/orgs","repos_url":"https://api.github.com/users/michaelhwalther/repos","events_url":"https://api.github.com/users/michaelhwalther/events{/privacy}","received_events_url":"https://api.github.com/users/michaelhwalther/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"tde-banana-odoo","id":7501424,"avatar_url":"https://avatars.githubusercontent.com/u/7501424?v=3","gravatar_id":"","url":"https://api.github.com/users/tde-banana-odoo","html_url":"https://github.com/tde-banana-odoo","followers_url":"https://api.github.com/users/tde-banana-odoo/followers","following_url":"https://api.github.com/users/tde-banana-odoo/following{/other_user}","gists_url":"https://api.github.com/users/tde-banana-odoo/gists{/gist_id}","starred_url":"https://api.github.com/users/tde-banana-odoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tde-banana-odoo/subscriptions","organizations_url":"https://api.github.com/users/tde-banana-odoo/orgs","repos_url":"https://api.github.com/users/tde-banana-odoo/repos","events_url":"https://api.github.com/users/tde-banana-odoo/events{/privacy}","received_events_url":"https://api.github.com/users/tde-banana-odoo/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-10-10T15:15:11Z","updated_at":"2015-12-23T15:49:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/odoo/odoo/pulls/9007","html_url":"https://github.com/odoo/odoo/pull/9007","diff_url":"https://github.com/odoo/odoo/pull/9007.diff","patch_url":"https://github.com/odoo/odoo/pull/9007.patch"},"body":"The three commits in this pull request together enable real-world use of emails with embedded images, which are (unfortunately) widely used now particularly for little logos (coporate logo in footer) or marketing gimmicks (like facebook icon, \"like\"-button etc.).\r\nCurrently, these images create separate attachments e.g. in Projects, and lead to tens and hundreds of little useless attachments. Additionally, the images are not shown (rather, the <img...> tag is shown literally!).\r\n\r\nThis pull request solves both issues:\r\n- inline images (identified by their Content-ID in the correponding img tag) are embedded into the HTML as \"data:\" URLs. This avoids saving them as separate attachments. \"Actual\" attachments are still saved as such.\r\n- html_sanitize is modified to allow such URLs in img tags (src attribute)\r\n- Cleaner is modified to handle content-IDs which typically contain an AT (@) sign, generated by the email clients."},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/166928347","html_url":"https://github.com/odoo/odoo/pull/9007#issuecomment-166928347","issue_url":"https://api.github.com/repos/odoo/odoo/issues/9007","id":166928347,"user":{"login":"michaelhwalther","id":4467353,"avatar_url":"https://avatars.githubusercontent.com/u/4467353?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelhwalther","html_url":"https://github.com/michaelhwalther","followers_url":"https://api.github.com/users/michaelhwalther/followers","following_url":"https://api.github.com/users/michaelhwalther/following{/other_user}","gists_url":"https://api.github.com/users/michaelhwalther/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelhwalther/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelhwalther/subscriptions","organizations_url":"https://api.github.com/users/michaelhwalther/orgs","repos_url":"https://api.github.com/users/michaelhwalther/repos","events_url":"https://api.github.com/users/michaelhwalther/events{/privacy}","received_events_url":"https://api.github.com/users/michaelhwalther/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T15:49:00Z","updated_at":"2015-12-23T15:49:00Z","body":"Rebased to include CLA signature"}}