mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	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>
This commit is contained in:
		@@ -1494,6 +1494,9 @@ PATH =
 | 
			
		||||
;;
 | 
			
		||||
;; Timeout for Sendmail
 | 
			
		||||
;SENDMAIL_TIMEOUT = 5m
 | 
			
		||||
;;
 | 
			
		||||
;; convert \r\n to \n for Sendmail
 | 
			
		||||
;SENDMAIL_CONVERT_CRLF = true
 | 
			
		||||
 | 
			
		||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 | 
			
		||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user