python-apps icon indicating copy to clipboard operation
python-apps copied to clipboard

Email Analyzer: How to get msg.HTMLbody rather than msg.body?

Open getkub opened this issue 3 years ago • 2 comments

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>

getkub avatar Dec 24 '21 10:12 getkub

@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

frikky avatar Dec 30 '21 16:12 frikky

@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

dhaval055 avatar Dec 31 '21 08:12 dhaval055