aboutsummaryrefslogtreecommitdiffstats
path: root/services/mailer/mailer.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-01-24 22:59:39 +0000
committerGitHub <noreply@github.com>2020-01-24 22:59:39 +0000
commit700611cc18e58343d9d67980263b246bcacb6171 (patch)
tree212bc8a8f1e40a5b8ab55cdaa575da75b9a9cb4d /services/mailer/mailer.go
parent88c212a8a3b44920b5faf568fbe0a4a9e983139c (diff)
downloadgitea-700611cc18e58343d9d67980263b246bcacb6171.tar.gz
gitea-700611cc18e58343d9d67980263b246bcacb6171.zip
Switch to use -f instead of -F for sendmail (#9961)
Fix #9385
Diffstat (limited to 'services/mailer/mailer.go')
-rw-r--r--services/mailer/mailer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/mailer/mailer.go b/services/mailer/mailer.go
index afcc7a7278..9ff1729104 100644
--- a/services/mailer/mailer.go
+++ b/services/mailer/mailer.go
@@ -240,7 +240,7 @@ func (s *sendmailSender) Send(from string, to []string, msg io.WriterTo) error {
var closeError error
var waitError error
- args := []string{"-F", from, "-i"}
+ args := []string{"-f", from, "-i"}
args = append(args, setting.MailService.SendmailArgs...)
args = append(args, to...)
log.Trace("Sending with: %s %v", setting.MailService.SendmailPath, args)