You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/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>
3 years ago
..
mail.go Unify and simplify TrN for i18n (#18141) 3 years ago
mail_comment.go Move user related model into models/user (#17781) 3 years ago
mail_issue.go Some repository refactors (#17950) 3 years ago
mail_release.go Unify and simplify TrN for i18n (#18141) 3 years ago
mail_repo.go Unify and simplify TrN for i18n (#18141) 3 years ago
mail_test.go Add List-Unsubscribe header (#17804) 3 years ago
mailer.go Add option to convert CRLF to LF line endings for sendmail (#18075) 3 years ago
mailer_test.go refactoring nits (#18188) 3 years ago
main_test.go Decouple unit test code from business code (#17623) 3 years ago