-
Notifications
You must be signed in to change notification settings - Fork 217
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
Add plaintext toggle #476
Add plaintext toggle #476
Conversation
Add a toggle, that makes it possible to send E-Mails as unformated Plain text.
Hi, @nikoksr, @svaloumas, is there anything I can do to get this PR reviewd? |
Hi @janboll, sorry for the delay! We're both rather caught up atm. I'll throw a look at it later today tho, would that help you out? We greatly appreciate your contribution! |
Of course, thank you for the feedback! |
Hi @janboll, looking at your PR, everything looks very good! We appreciate it. The only thing that came to my mind is the maintainability of your solution. A solution I would personally like better would be if instead of using fixed text formats, which require functions, like The advantage would be that we can repeat the same pattern for other services and not use n functions in the style Please let me know what you think and if you have a better suggestion, so that we can get this merged asap! cc @svaloumas adding you in case you have any additions to this. |
That makes sense. I'll refactor the PR! |
I refactored the change a little to use a single function to set the correct body format settings (With the naming of the method I sicked to E-Mail terminology). I am unsure if the solution I proposed meets your expectations. Cause reading your comment again, did you think about changing the Notifier interface and adding methods to format the message? |
@janboll appreciate the quick fix! No, you did absolutely the right thing, no worries there! I don't want it to be part of the I'll fix the linter issues for you real quick and then we're ready to merge! Thank you so much for your time and efforts. |
Codecov ReportBase: 73.73% // Head: 73.43% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #476 +/- ##
==========================================
- Coverage 73.73% 73.43% -0.30%
==========================================
Files 36 37 +1
Lines 1104 1148 +44
==========================================
+ Hits 814 843 +29
- Misses 213 228 +15
Partials 77 77
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Ignoring codecov complaining here. Yes, send method should be tested but since the |
Description
Adding a toggle, that makes it possible to send E-Mails as unformatted Plain text.
Motivation and Context
I want to send E-Mails as unformatted Plain Text. Right now the mail service sends out e-mails as HTML only.
How Has This Been Tested?
Types of changes
Checklist: