{"action":"opened","issue":{"url":"https://api.github.com/repos/kamilc/mailman/issues/31","labels_url":"https://api.github.com/repos/kamilc/mailman/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/kamilc/mailman/issues/31/comments","events_url":"https://api.github.com/repos/kamilc/mailman/issues/31/events","html_url":"https://github.com/kamilc/mailman/issues/31","id":124139461,"number":31,"title":"Attachments with extension not in @mime_types fail","user":{"login":"MisterToolbox","id":10948039,"avatar_url":"https://avatars.githubusercontent.com/u/10948039?v=3","gravatar_id":"","url":"https://api.github.com/users/MisterToolbox","html_url":"https://github.com/MisterToolbox","followers_url":"https://api.github.com/users/MisterToolbox/followers","following_url":"https://api.github.com/users/MisterToolbox/following{/other_user}","gists_url":"https://api.github.com/users/MisterToolbox/gists{/gist_id}","starred_url":"https://api.github.com/users/MisterToolbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MisterToolbox/subscriptions","organizations_url":"https://api.github.com/users/MisterToolbox/orgs","repos_url":"https://api.github.com/users/MisterToolbox/repos","events_url":"https://api.github.com/users/MisterToolbox/events{/privacy}","received_events_url":"https://api.github.com/users/MisterToolbox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-28T23:11:46Z","updated_at":"2015-12-28T23:11:46Z","closed_at":null,"body":"Attaching a .docx, for instance, generates the following: \r\n\r\n```\r\n** (ArgumentError) argument error\r\n        (stdlib) binary.erl:244: :binary.split/3\r\n                 lib/mailman/attachment.ex:698: Mailman.Attachment.mime_type_for_path/1\r\n                 lib/mailman/attachment.ex:668: Mailman.Attachment.inline/1\r\n                 lib/mailman/attachment.ex:679: Mailman.Attachment.inline!/1\r\n    (mothership) lib/mothership.ex:52: Mothership.attach_files/1\r\n    (mothership) lib/mothership.ex:43: Mothership.generate_email/1\r\n        (elixir) lib/enum.ex:1047: anonymous fn/3 in Enum.map/2\r\n        (elixir) lib/enum.ex:1401: anonymous fn/3 in Enum.reduce/3\r\n```"}}