{"action":"created","issue":{"url":"https://api.github.com/repos/higty/higlabo/issues/6","repository_url":"https://api.github.com/repos/higty/higlabo","labels_url":"https://api.github.com/repos/higty/higlabo/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/higty/higlabo/issues/6/comments","events_url":"https://api.github.com/repos/higty/higlabo/issues/6/events","html_url":"https://github.com/higty/higlabo/issues/6","id":176324408,"number":6,"title":"Malformed Quoted-Printable MIME content in SmtpMessage with HTML body","user":{"login":"cdokolas","id":1136790,"avatar_url":"https://avatars.githubusercontent.com/u/1136790?v=3","gravatar_id":"","url":"https://api.github.com/users/cdokolas","html_url":"https://github.com/cdokolas","followers_url":"https://api.github.com/users/cdokolas/followers","following_url":"https://api.github.com/users/cdokolas/following{/other_user}","gists_url":"https://api.github.com/users/cdokolas/gists{/gist_id}","starred_url":"https://api.github.com/users/cdokolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdokolas/subscriptions","organizations_url":"https://api.github.com/users/cdokolas/orgs","repos_url":"https://api.github.com/users/cdokolas/repos","events_url":"https://api.github.com/users/cdokolas/events{/privacy}","received_events_url":"https://api.github.com/users/cdokolas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-09-12T08:52:49Z","updated_at":"2016-09-14T11:24:05Z","closed_at":null,"body":"I noticed that in messages with an HTML body, a '.' (period) may get dropped when in happens to be at the end, or beginning, of a line in the \"Quoted-Printable\" content.\r\n\r\nExample from an actual e-mail (redacted):\r\n\r\n```\r\nt@xxx.com.gr\"=0D=0ATrue  : Sending \"Xxxxxxxx Xxxxx Report for XXX XXX XXXX=\r\nXX - XXX XXXXXX XXXX\" to \"xx_xxx@xxx.com.gr\"=0D=0ATrue  : Sending \"Xxxxxxx=\r\nx Xxxxx Xxxxxx for XXX XXX XXXXXX - XXX XXXXXX XXXX\" to \"xxxxxxxxxxx@xxxxx=\r\ngr\"=0D=0ATrue  : Sending \"Xxxxxxxx Xxxxx Report for XXX XXXXXXXXX - XXXXX=\r\n```\r\n\r\nIn the last pair of lines there should be a period so that the resulting text is `to \"xxxxxxxxxxx@xxxxx.gr\"`\r\n\r\nIt would appear that the last line should be one character longer, but I don't know how Quoted-Printable encoding works.\r\n"},"comment":{"url":"https://api.github.com/repos/higty/higlabo/issues/comments/246982947","html_url":"https://github.com/higty/higlabo/issues/6#issuecomment-246982947","issue_url":"https://api.github.com/repos/higty/higlabo/issues/6","id":246982947,"user":{"login":"cdokolas","id":1136790,"avatar_url":"https://avatars.githubusercontent.com/u/1136790?v=3","gravatar_id":"","url":"https://api.github.com/users/cdokolas","html_url":"https://github.com/cdokolas","followers_url":"https://api.github.com/users/cdokolas/followers","following_url":"https://api.github.com/users/cdokolas/following{/other_user}","gists_url":"https://api.github.com/users/cdokolas/gists{/gist_id}","starred_url":"https://api.github.com/users/cdokolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdokolas/subscriptions","organizations_url":"https://api.github.com/users/cdokolas/orgs","repos_url":"https://api.github.com/users/cdokolas/repos","events_url":"https://api.github.com/users/cdokolas/events{/privacy}","received_events_url":"https://api.github.com/users/cdokolas/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T11:24:04Z","updated_at":"2016-09-14T11:24:04Z","body":"This will replicate the problem:\r\n\r\n```\r\nusing System;\r\nusing System.Text;\r\nusing HigLabo.Net.Smtp;\r\nusing HigLabo.Mime;\r\n\r\nnamespace higlabotest\r\n{\r\n    class Program\r\n    {\r\n        static void Main(string[] args)\r\n        {\r\n            //notice Greek characters in lines 49,50,116-119\r\n            string body = @\"<pre>******************\r\n* DoDailyReports *\r\n******************\r\nStart: 2016-09-12T06:00:24\r\nEnd: 2016-09-12T06:02:46\r\nElapsed time: 00:02:21.6297010\r\nReports run: 1\r\n\r\nDaily Customer Xxxxx Reports (DoDailyCCReports)\r\n-----------------------------------------------\r\nStart: 2016-09-12T06:00:24\r\nEnd: 2016-09-12T06:02:46\r\nElapsed time: 00:02:21.6137558\r\nSuccess: True\r\n--- START ---\r\nTrue  : Generated report 'Customer Xxxxx Report for XXX XXXXX 17 - XXXXX 17 MAIN' (3 recipients)\r\nTrue  : Generated report 'Customer Xxxxx Report for XXX XXXXXXX - XXXXXXX MAIN' (3 recipients)\r\nTrue  : Generated report 'Customer Xxxxx Report for XXX XXXXXXXXXX - XXXXXXXXXX MAIN' (3 recipients)\r\nTrue  : Generated report 'Customer Xxxxx Report for XXX XXXXXXXX - XXXXXXXX MAIN' (3 recipients)\r\nTrue  : Generated report 'Customer Xxxxx Report for XXX XXXXXX - XXXXXX MAIN' (3 recipients)\r\nTrue  : Generated report 'Customer Xxxxx Report for XXX XXXXX - XXXXX MAIN' (3 recipients)\r\nTrue  : Generated report 'Customer Xxxxx Report for XXX XXX XXXXX - XXX XXXXX MAIN' (3 recipients)\r\nTrue  : Generated report 'Customer Xxxxx Report for XXX XXXXXXX - XXXXXXX MAIN' (3 recipients)\r\nTrue  : Generated report 'Customer Xxxxx Report for XXX XXXXX 77 - XXXXX 77 MAIN' (3 recipients)\r\nTrue  : Generated report 'Customer Xxxxx Report for XXX XXXXXXX - XXXXXXX MAIN' (3 recipients)\r\nTrue  : Generated report 'Customer Xxxxx Report for XXX XXXXXXXX 94 - XXXXXXXX 94 MAIN' (3 recipients)\r\nTrue  : Generated report 'Customer Xxxxx Report for XXX XXXXXXXX 51 - XXXXXXXX 51 MAIN' (3 recipients)\r\nTrue  : Generated report 'Customer Xxxxx Report for XXX XXXXXX - XXXXXX MAIN' (3 recipients)\r\nTrue  : Generated report 'Customer Xxxxx Report for XXX XXX XXXXXX - XXX XXXXXX MAIN' (3 recipients)\r\nTrue  : Generated report 'Customer Xxxxx Report for XXX XXXXXXXXX - XXXXXXXXX MAIN' (3 recipients)\r\nTrue  : Generated report 'Customer Xxxxx Report for XXX XXXXXXXXX - XXXXXXXXX MAIN' (3 recipients)\r\nTrue  : Generated report 'Customer Xxxxx Report for XXX XXXXXXX - XXXXXXX MAIN' (3 recipients)\r\nTrue  : Generated report 'Customer Xxxxx Report for XXX XXXXXX - XXXXXX MAIN' (3 recipients)\r\nTrue  : Generated report 'Customer Xxxxx Report for XXX XXXXXX - XXXXXX SIDE' (3 recipients)\r\nTrue  : Generated report 'Customer Xxxxx Report for XXXXXXX XXXXXXXXXXX - XXXXXXXXXXX MAIN' (3 recipients)\r\nTrue  : Generated report 'Customer Xxxxx Report for XXXXXXX XXXXXXXX - XXXXXXXX MAIN' (3 recipients)\r\nTrue  : Generated report 'Customer Xxxxx Report for XXXX ΠΕΡΙΣΤΕΡΙ (007) - 1ST FLOOR CC' (2 recipients)\r\nTrue  : Generated report 'Customer Xxxxx Report for XXXX ΠΕΡΙΣΤΕΡΙ (007) - 2ND FLOOR CC' (2 recipients)\r\nTrue  : Collecting reports\r\nTrue  : Generating 23 reports for 67 recepients\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXX 17 - XXXXX 17 MAIN\"\" to \"\"acxxxxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXX 17 - XXXXX 17 MAIN\"\" to \"\"hr_xxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXX 17 - XXXXX 17 MAIN\"\" to \"\"xxxxxxxxxxx@xxxxx.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXX - XXXXXXX MAIN\"\" to \"\"acxxxxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXX - XXXXXXX MAIN\"\" to \"\"hr_xxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXX - XXXXXXX MAIN\"\" to \"\"xxxxxxxxxxx@xxxxx.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXXXXX - XXXXXXXXXX MAIN\"\" to \"\"acxxxxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXXXXX - XXXXXXXXXX MAIN\"\" to \"\"hr_xxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXXXXX - XXXXXXXXXX MAIN\"\" to \"\"xxxxxxxxxxx@xxxxx.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXXX - XXXXXXXX MAIN\"\" to \"\"acxxxxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXXX - XXXXXXXX MAIN\"\" to \"\"hr_xxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXXX - XXXXXXXX MAIN\"\" to \"\"xxxxxxxxxxx@xxxxx.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXX - XXXXXX MAIN\"\" to \"\"acxxxxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXX - XXXXXX MAIN\"\" to \"\"hr_xxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXX - XXXXXX MAIN\"\" to \"\"xxxxxxxxxxx@xxxxx.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXX - XXXXX MAIN\"\" to \"\"acxxxxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXX - XXXXX MAIN\"\" to \"\"hr_xxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXX - XXXXX MAIN\"\" to \"\"xxxxxxxxxxx@xxxxx.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXX XXXXX - XXX XXXXX MAIN\"\" to \"\"acxxxxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXX XXXXX - XXX XXXXX MAIN\"\" to \"\"hr_xxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXX XXXXX - XXX XXXXX MAIN\"\" to \"\"xxxxxxxxxxx@xxxxx.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXX - XXXXXXX MAIN\"\" to \"\"acxxxxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXX - XXXXXXX MAIN\"\" to \"\"hr_xxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXX - XXXXXXX MAIN\"\" to \"\"xxxxxxxxxxx@xxxxx.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXX 77 - XXXXX 77 MAIN\"\" to \"\"acxxxxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXX 77 - XXXXX 77 MAIN\"\" to \"\"hr_xxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXX 77 - XXXXX 77 MAIN\"\" to \"\"xxxxxxxxxxx@xxxxx.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXX - XXXXXXX MAIN\"\" to \"\"acxxxxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXX - XXXXXXX MAIN\"\" to \"\"hr_xxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXX - XXXXXXX MAIN\"\" to \"\"xxxxxxxxxxx@xxxxx.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXXX 94 - XXXXXXXX 94 MAIN\"\" to \"\"acxxxxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXXX 94 - XXXXXXXX 94 MAIN\"\" to \"\"hr_xxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXXX 94 - XXXXXXXX 94 MAIN\"\" to \"\"xxxxxxxxxxx@xxxxx.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXXX 51 - XXXXXXXX 51 MAIN\"\" to \"\"acxxxxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXXX 51 - XXXXXXXX 51 MAIN\"\" to \"\"hr_xxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXXX 51 - XXXXXXXX 51 MAIN\"\" to \"\"xxxxxxxxxxx@xxxxx.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXX - XXXXXX MAIN\"\" to \"\"acxxxxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXX - XXXXXX MAIN\"\" to \"\"hr_xxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXX - XXXXXX MAIN\"\" to \"\"xxxxxxxxxxx@xxxxx.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXX XXXXXX - XXX XXXXXX MAIN\"\" to \"\"acxxxxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXX XXXXXX - XXX XXXXXX MAIN\"\" to \"\"hr_xxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXX XXXXXX - XXX XXXXXX MAIN\"\" to \"\"xxxxxxxxxxx@xxxxxgr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXXXX - XXXXXXXXX MAIN\"\" to \"\"acxxxxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXXXX - XXXXXXXXX MAIN\"\" to \"\"hr_xxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXXXX - XXXXXXXXX MAIN\"\" to \"\"xxxxxxxxxxx@xxxxx.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXXXX - XXXXXXXXX MAIN\"\" to \"\"acxxxxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXXXX - XXXXXXXXX MAIN\"\" to \"\"hr_xxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXXXX - XXXXXXXXX MAIN\"\" to \"\"xxxxxxxxxxx@xxxxx.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXX - XXXXXXX MAIN\"\" to \"\"acxxxxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXX - XXXXXXX MAIN\"\" to \"\"hr_xxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXXX - XXXXXXX MAIN\"\" to \"\"xxxxxxxxxxx@xxxxx.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXX - XXXXXX MAIN\"\" to \"\"acxxxxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXX - XXXXXX MAIN\"\" to \"\"hr_xxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXX - XXXXXX MAIN\"\" to \"\"xxxxxxxxxxx@xxxxx.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXX - XXXXXX SIDE\"\" to \"\"acxxxxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXX - XXXXXX SIDE\"\" to \"\"hr_xxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXX XXXXXX - XXXXXX SIDE\"\" to \"\"xxxxxxxxxxx@xxxxx.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXXXXXX XXXXXXXXXXX - XXXXXXXXXXX MAIN\"\" to \"\"acxxxxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXXXXXX XXXXXXXXXXX - XXXXXXXXXXX MAIN\"\" to \"\"hr_xxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXXXXXX XXXXXXXXXXX - XXXXXXXXXXX MAIN\"\" to \"\"xxxxxxxxxxx@xxxxx.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXXXXXX XXXXXXXX - XXXXXXXX MAIN\"\" to \"\"acxxxxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXXXXXX XXXXXXXX - XXXXXXXX MAIN\"\" to \"\"hr_xxx@xxx.com.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXXXXXX XXXXXXXX - XXXXXXXX MAIN\"\" to \"\"xxxxxxxxxxx@xxxxx.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXXX ΠΕΡΙΣΤΕΡΙ (007) - 1ST FLOOR CC\"\" to \"\"kots_XXXXXXXXXXXXX@xxxxxxxxxx.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXXX ΠΕΡΙΣΤΕΡΙ (007) - 1ST FLOOR CC\"\" to \"\"avasp@xxxxxxxxxx.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXXX ΠΕΡΙΣΤΕΡΙ (007) - 2ND FLOOR CC\"\" to \"\"kots_XXXXXXXXXXXXX@xxxxxxxxxx.gr\"\"\r\nTrue  : Sending \"\"Customer Xxxxx Report for XXXX ΠΕΡΙΣΤΕΡΙ (007) - 2ND FLOOR CC\"\" to \"\"avasp@xxxxxxxxxx.gr\"\"\r\n--- END ---\r\n</pre>\";\r\n            SmtpMessage smtpMessage = new SmtpMessage();\r\n            smtpMessage.Subject = \"subject\";\r\n            smtpMessage.SetBodyAsHtmlContent(body);\r\n            smtpMessage.From = new MailAddress(\"someone@somewhere.com\");\r\n            smtpMessage.To.Add(new MailAddress(\"someone@somewhere.com\"));\r\n\r\n            SendMailCommand cmd = new SendMailCommand(smtpMessage);\r\n            string data = Encoding.ASCII.GetString(cmd.Data);\r\n            Console.WriteLine(data);\r\n            //problem appears between lines 114-115 of 'data'\r\n        }\r\n    }\r\n}\r\n```"}}
{"actor":{"display_login":"cdokolas"}}