{"action":"created","issue":{"url":"https://api.github.com/repos/axel-angel/whatsapp-email-bridge/issues/6","labels_url":"https://api.github.com/repos/axel-angel/whatsapp-email-bridge/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/axel-angel/whatsapp-email-bridge/issues/6/comments","events_url":"https://api.github.com/repos/axel-angel/whatsapp-email-bridge/issues/6/events","html_url":"https://github.com/axel-angel/whatsapp-email-bridge/issues/6","id":83063514,"number":6,"title":"plain text email through an error ","user":{"login":"Salmon-Bard","id":12681954,"avatar_url":"https://avatars.githubusercontent.com/u/12681954?v=3","gravatar_id":"","url":"https://api.github.com/users/Salmon-Bard","html_url":"https://github.com/Salmon-Bard","followers_url":"https://api.github.com/users/Salmon-Bard/followers","following_url":"https://api.github.com/users/Salmon-Bard/following{/other_user}","gists_url":"https://api.github.com/users/Salmon-Bard/gists{/gist_id}","starred_url":"https://api.github.com/users/Salmon-Bard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Salmon-Bard/subscriptions","organizations_url":"https://api.github.com/users/Salmon-Bard/orgs","repos_url":"https://api.github.com/users/Salmon-Bard/repos","events_url":"https://api.github.com/users/Salmon-Bard/events{/privacy}","received_events_url":"https://api.github.com/users/Salmon-Bard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-31T11:04:03Z","updated_at":"2015-06-23T18:48:13Z","closed_at":null,"body":"First: this is a Great project and has very good potentials. If you add a donation link I will be glad to support.\r\n\r\n I'm trying to send a plain text email through the socket but it fails. Strangely when sending email with HTML format OR a plain text email with attachments it all process nicely. Only sole plain text emails has  this issue. here is the thorough exception:\r\n<code>error: uncaptured python exception, closing channel <__main__.LMTPChannel connected '' at 0x7f0315d045f0> (<type 'exceptions.AttributeError'>:'str' object has no attribute 'get' [/usr/lib/python2.7/asyncore.py|read|83] [/usr/lib/python2.7/asyncore.py|handle_read_event|449] [/usr/lib/python2.7/asynchat.py|handle_read|158] [/usr/lib/python2.7/smtpd.py|found_terminator|181] [WhatsAppEmailForwarder.py|process_message|267] [WhatsAppEmailForwarder.py|handle_forward_media|270])</code>\r\n\r\nAnother issue I found is that emails sent from gmail through the above exception error if with attachment. Also gmail 64bit encodes none English emails text and it seems current script does not support decoding if encode content types. The gmail header contains:\r\n\r\n<code>Content-Type: text/plain; charset=UTF-8\r\nContent-Transfer-Encoding: base64</code>"},"comment":{"url":"https://api.github.com/repos/axel-angel/whatsapp-email-bridge/issues/comments/114605551","html_url":"https://github.com/axel-angel/whatsapp-email-bridge/issues/6#issuecomment-114605551","issue_url":"https://api.github.com/repos/axel-angel/whatsapp-email-bridge/issues/6","id":114605551,"user":{"login":"axel-angel","id":2393097,"avatar_url":"https://avatars.githubusercontent.com/u/2393097?v=3","gravatar_id":"","url":"https://api.github.com/users/axel-angel","html_url":"https://github.com/axel-angel","followers_url":"https://api.github.com/users/axel-angel/followers","following_url":"https://api.github.com/users/axel-angel/following{/other_user}","gists_url":"https://api.github.com/users/axel-angel/gists{/gist_id}","starred_url":"https://api.github.com/users/axel-angel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axel-angel/subscriptions","organizations_url":"https://api.github.com/users/axel-angel/orgs","repos_url":"https://api.github.com/users/axel-angel/repos","events_url":"https://api.github.com/users/axel-angel/events{/privacy}","received_events_url":"https://api.github.com/users/axel-angel/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T18:48:13Z","updated_at":"2015-06-23T18:48:13Z","body":"I was very busy until lately. I got a bit of time and decided to dig into your issues.\r\n\r\nI added support for base64 content, thus the (3)rd case should work for you (I tested manually). \r\n\r\nThe 2a is still a mystery for me: it's working when I inject your mail manually. It probably means the content you gave me is not exactly what is actually sent (processing is different on gmail than on the Python server). Can you add a print in process_message, just print(data) and post here what you got.\r\n\r\nFor the attachments, I didn't spend time on it yet. Hopefully I will soon. By the way, you will need to adapt your config, sorry for that."}}