python-apps
python-apps copied to clipboard
Email Analyzer: How to get msg.HTMLbody rather than msg.body?
Currently, while parsing an email (.msg), the Email Analyser parses the body is a simple manner. So all the HTML formatting in the email is lost
| Company | Country |
|---|---|
| GOOG | US |
| ARM | UK |
Currently the output comes as
Company \r\n\r\Country \r\n\r\nGOOG\r\n\r\nUS \r\n\r\ARM \r\n\r\nUK
Hence, cannot parse which one is row or column (nor table formatting like colors)
Expected as below
<table>
<tr>
<th>Company</th>
<th>Country</th>
</tr>
<tr>
<td>GOOG</td>
<td>US</td>
</tr>
<tr>
<td>ARM</td>
<td>UK</td>
</tr>
</table>
@dhaval055 could you have a look at this?
I'm guessing there is some weird parsing happening here: https://github.com/Shuffle/python-apps/blob/77a80910df840fd66b745b27290ad87cd897ff63/email-analyzer/1.0.0/src/app.py#L52
@dhaval055 could you have a look at this?
I'm guessing there is some weird parsing happening here:
https://github.com/Shuffle/python-apps/blob/77a80910df840fd66b745b27290ad87cd897ff63/email-analyzer/1.0.0/src/app.py#L52
Sure