{"action":"created","issue":{"url":"https://api.github.com/repos/lettre/lettre/issues/201","repository_url":"https://api.github.com/repos/lettre/lettre","labels_url":"https://api.github.com/repos/lettre/lettre/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/lettre/lettre/issues/201/comments","events_url":"https://api.github.com/repos/lettre/lettre/issues/201/events","html_url":"https://github.com/lettre/lettre/issues/201","id":274722909,"number":201,"title":"lettre_email::EmailBuilder body not visible with attachment(s)","user":{"login":"breed808","id":3103817,"avatar_url":"https://avatars1.githubusercontent.com/u/3103817?v=4","gravatar_id":"","url":"https://api.github.com/users/breed808","html_url":"https://github.com/breed808","followers_url":"https://api.github.com/users/breed808/followers","following_url":"https://api.github.com/users/breed808/following{/other_user}","gists_url":"https://api.github.com/users/breed808/gists{/gist_id}","starred_url":"https://api.github.com/users/breed808/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breed808/subscriptions","organizations_url":"https://api.github.com/users/breed808/orgs","repos_url":"https://api.github.com/users/breed808/repos","events_url":"https://api.github.com/users/breed808/events{/privacy}","received_events_url":"https://api.github.com/users/breed808/received_events","type":"User","site_admin":false},"labels":[{"id":78434525,"url":"https://api.github.com/repos/lettre/lettre/labels/bug","name":"bug","color":"b60205","default":true},{"id":467170284,"url":"https://api.github.com/repos/lettre/lettre/labels/builder","name":"builder","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":{"login":"amousset","id":329388,"avatar_url":"https://avatars0.githubusercontent.com/u/329388?v=4","gravatar_id":"","url":"https://api.github.com/users/amousset","html_url":"https://github.com/amousset","followers_url":"https://api.github.com/users/amousset/followers","following_url":"https://api.github.com/users/amousset/following{/other_user}","gists_url":"https://api.github.com/users/amousset/gists{/gist_id}","starred_url":"https://api.github.com/users/amousset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amousset/subscriptions","organizations_url":"https://api.github.com/users/amousset/orgs","repos_url":"https://api.github.com/users/amousset/repos","events_url":"https://api.github.com/users/amousset/events{/privacy}","received_events_url":"https://api.github.com/users/amousset/received_events","type":"User","site_admin":false},"assignees":[{"login":"amousset","id":329388,"avatar_url":"https://avatars0.githubusercontent.com/u/329388?v=4","gravatar_id":"","url":"https://api.github.com/users/amousset","html_url":"https://github.com/amousset","followers_url":"https://api.github.com/users/amousset/followers","following_url":"https://api.github.com/users/amousset/following{/other_user}","gists_url":"https://api.github.com/users/amousset/gists{/gist_id}","starred_url":"https://api.github.com/users/amousset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amousset/subscriptions","organizations_url":"https://api.github.com/users/amousset/orgs","repos_url":"https://api.github.com/users/amousset/repos","events_url":"https://api.github.com/users/amousset/events{/privacy}","received_events_url":"https://api.github.com/users/amousset/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2017-11-17T01:34:19Z","updated_at":"2018-03-08T11:10:04Z","closed_at":null,"author_association":"NONE","body":"When sending an email using the [lettre_email example](https://github.com/lettre/lettre/blob/master/lettre_email/examples/smtp.rs), the body appears to be omitted from the received email:\r\n\r\n![outlook](https://user-images.githubusercontent.com/3103817/32924770-f7eaa318-cb89-11e7-99a6-a5300bf3871c.png)\r\n\r\n![roundcube](https://user-images.githubusercontent.com/3103817/32924776-fe70d518-cb89-11e7-93d5-80007af5e5e4.png)\r\n\r\nRemoving the [attachment line](https://github.com/lettre/lettre/blob/master/lettre_email/examples/smtp.rs#L17) fixes the missing email body, but at the cost of the attached file(s).\r\nWhile the body text is not visible in the email, it can be found when viewing the email source:\r\n\r\n```\r\nSubject: Hi, Hello world\r\nContent-Type: text/plain; charset=utf-8\r\nTo: \"Test User\" <testing@example.com>\r\nFrom: <testing@example.com>\r\nDate: Fri, 17 Nov 2017 01:22:36 -0000\r\nMIME-Version: 1.0\r\nMessage-ID: <a4853237-f3d5-440f-a72b-bcc3f40d7878.lettre@localhost>\r\nContent-Type: multipart/mixed; boundary=EqdQGvGskvyveb4rbhhUNei8rPtCpG\r\n\r\nHello world.\r\n--EqdQGvGskvyveb4rbhhUNei8rPtCpG\r\nContent-Disposition: attachment; filename=\"Cargo.toml\"\r\nContent-Type: text/plain\r\n\r\n[package]\r\nname = \"lettre_test\"\r\nversion = \"0.1.0\"\r\nauthors = [\"Testing <testing@example.com>\"]\r\n\r\n[dependencies]\r\nlettre = \"0.7\"\r\nlettre_email = \"0.7\"\r\nmime = \"0.3\"\r\n\r\n\r\n--EqdQGvGskvyveb4rbhhUNei8rPtCpG--\r\n\r\n```\r\n\r\nUnfortunately I'm not familiar enough with the structure of multipart messages to tell if the above is correct."},"comment":{"url":"https://api.github.com/repos/lettre/lettre/issues/comments/371456867","html_url":"https://github.com/lettre/lettre/issues/201#issuecomment-371456867","issue_url":"https://api.github.com/repos/lettre/lettre/issues/201","id":371456867,"user":{"login":"Lisoph","id":3426722,"avatar_url":"https://avatars0.githubusercontent.com/u/3426722?v=4","gravatar_id":"","url":"https://api.github.com/users/Lisoph","html_url":"https://github.com/Lisoph","followers_url":"https://api.github.com/users/Lisoph/followers","following_url":"https://api.github.com/users/Lisoph/following{/other_user}","gists_url":"https://api.github.com/users/Lisoph/gists{/gist_id}","starred_url":"https://api.github.com/users/Lisoph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lisoph/subscriptions","organizations_url":"https://api.github.com/users/Lisoph/orgs","repos_url":"https://api.github.com/users/Lisoph/repos","events_url":"https://api.github.com/users/Lisoph/events{/privacy}","received_events_url":"https://api.github.com/users/Lisoph/received_events","type":"User","site_admin":false},"created_at":"2018-03-08T11:10:04Z","updated_at":"2018-03-08T11:10:04Z","author_association":"NONE","body":"For the time being, I'm using this workaround:\r\n\r\n```Rust\r\nlet text = \"Hello, I'm the email text!\";\r\nif any_attachments {\r\n        let body = PartBuilder::new()\r\n            .content_type(&mime::TEXT_PLAIN_UTF_8)\r\n            .body(text)\r\n            .build();\r\n        email.add_child(body);\r\n    } else {\r\n        email.set_text(text);\r\n    }\r\n```"}}
{"actor":{"display_login":"Lisoph"}}