Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eml-upload: Message body not in note #14

Open
charraeus opened this issue Nov 18, 2022 · 3 comments
Open

eml-upload: Message body not in note #14

charraeus opened this issue Nov 18, 2022 · 3 comments

Comments

@charraeus
Copy link

Hi - it's me again :-),

I've imported an eml file via "eml upload". In the generated note the message body has disappeared. See screen shot. I tested with all three options "html", "text" and "markup".

If you need the eml file I could send it to you, but I don't want to put it on this public webpage.

OS: Mac OS 12.5.1
Mail Client: Apple Mail

Best regards,
Christian

Bildschirmfoto 2022-11-18 um 21 03 52

@bishoy-magdy
Copy link
Collaborator

Hmmm 🤔,TBH I don't have apple mail to test this problem, so I need an eml apple file example to figure out the problem. You can upload the eml file to Drive with an email access request and of course, the e-mail that you will follow does not contain sensitive data😂.

@charraeus
Copy link
Author

Find the eml file here: https://harraeus.de/austausch/Protokoll-der-letzten-Sitzung.eml.
In the file I

  • removed the base64 code of the attachment
  • changed all e-mail addresses
  • changed all ip addresses
  • checked if the eml file still could be opened by Apple mail --> positive

Best regards

@bishoy-magdy
Copy link
Collaborator

bishoy-magdy commented Nov 19, 2022

Find the eml file here: https://harraeus.de/austausch/Protokoll-der-letzten-Sitzung.eml. In the file I

  • removed the base64 code of the attachment
  • changed all e-mail addresses
  • changed all ip addresses
  • checked if the eml file still could be opened by Apple mail --> positive

Best regards

Yes, the file works well, thank you for your cooperation❤️.

I created a PR to fix this issue. The issue is that most email providers use HTML as the primary format for email content presentation, even if the email content is just plain text; the email parser will return both the HTML and the plain text, but it will not always email parser parse the plain text well, which is why I rely on the HTML email format. 

In the Apple Mail provider, if email content contains only plain text, it will return only the plain text attribute, not the HTML (undefined).

After Fix

Text Format

Markdown Format
2

HTML Format
3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants