1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-13 05:34:25 +00:00
gitea/services/mailer
zeripath 1514e13bb8
Add option to convert CRLF to LF line endings for sendmail (#18075)
It appears that several versions of sendmail require that the mail is sent to them with
LF line endings instead of CRLF endings - which of course they will then convert back
to CRLF line endings to comply with the SMTP standard.

This PR adds another setting SENDMAIL_CONVERT_CRLF which will pass the message writer
through a filter. This will filter out and convert CRLFs to LFs before writing them
out to sendmail.

Fix #18024

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-01-06 01:43:45 +01:00
..
mail_comment.go Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
mail_issue.go Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
mail_release.go Unify and simplify TrN for i18n (#18141) 2022-01-02 04:33:57 +01:00
mail_repo.go Unify and simplify TrN for i18n (#18141) 2022-01-02 04:33:57 +01:00
mail_test.go Add List-Unsubscribe header (#17804) 2021-12-21 22:53:03 +00:00
mail.go Unify and simplify TrN for i18n (#18141) 2022-01-02 04:33:57 +01:00
mailer_test.go refactoring nits (#18188) 2022-01-05 07:27:53 +01:00
mailer.go Add option to convert CRLF to LF line endings for sendmail (#18075) 2022-01-06 01:43:45 +01:00
main_test.go Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00