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

Mails containing plain text are empty #55

Open
vmario89 opened this issue Dec 29, 2019 · 2 comments
Open

Mails containing plain text are empty #55

vmario89 opened this issue Dec 29, 2019 · 2 comments
Labels

Comments

@vmario89
Copy link

Hi,
pushing emails without html body like "echo -e "ok" | mail -s "[email protected]" [email protected]" are going to be empty in Matrix

another example:
grafik
grafik

As you can see the content is not the plaintext, instead it's just "zero" - both on chat and on the browser message

@vmario89
Copy link
Author

additional notes:
reconfiguring production.yml to change messageFormat, fragmentFormat, skipDatabase, messagePlainFormat, fragmentPainFormat did not change anything. I played through with all possible variants. i think the message parsing itself is the problem here

@vmario89
Copy link
Author

vmario89 commented Dec 29, 2019

hm okay had another try. i looked into sqlite database. the mail content is there. the $full_text_body is fine. i reconfigured production.yml to use
messageFormat: "$subject: Hier klicken, um die volle Nachricht anzuzeigen"
fragmentFormat: "$full_text_body"
messagePlainFormat: "$subject | https://red.redacted.de/m/$id"
fragmentPlainFormat: "$full_text_body"

grafik

in html body there you can find the "zero" i mentioned
it does always render "zero". - only some of the plain messages seem to work

@turt2live turt2live added the bug label Dec 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants