Skip to content

Conversation

strk
Copy link
Contributor

@strk strk commented Sep 7, 2016

It is the FROM field in mailer configuration that needs be used,
not the USER field, which is for authentication.

Closes #3615

@@ -160,7 +160,7 @@ func composeIssueMessage(issue *Issue, doer *User, tplName base.TplName, tos []s
if err != nil {
log.Error(3, "HTMLString (%s): %v", tplName, err)
}
msg := mailer.NewMessageFrom(tos, fmt.Sprintf(`"%s" <%s>`, doer.DisplayName(), setting.MailService.User), subject, content)
msg := mailer.NewMessageFrom(tos, fmt.Sprintf(`"%s" <%s>`, doer.DisplayName(), setting.MailService.From), subject, content)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not going to work, because this setting can contain name <email>, not just email address.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With 6e0a1a9 it would not be
a problem for the FROM to be name <email>.

BTW, according to the Config Cheat Sheet, USER could also not
be an email (it says "usually your e-mail address").

@unknwon unknwon added the status: needs feedback Tell me more about it label Sep 9, 2016
@@ -160,7 +161,12 @@ func composeIssueMessage(issue *Issue, doer *User, tplName base.TplName, tos []s
if err != nil {
log.Error(3, "HTMLString (%s): %v", tplName, err)
}
msg := mailer.NewMessageFrom(tos, fmt.Sprintf(`"%s" <%s>`, doer.DisplayName(), setting.MailService.User), subject, content)
sender, err := mail.ParseAddress(setting.MailService.From)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should put this process in the modules/setting while loading email configs? Add a FromEmail field in the struct https://github.com/gogits/gogs/blob/master/modules/setting/setting.go#L716 . So we can print error and halt at start time.

Copy link
Contributor Author

@strk strk Sep 9, 2016 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@unknwon unknwon added status: waits for review It is waiting to be reviewed by maintainers and removed status: needs feedback Tell me more about it labels Sep 9, 2016
Use proper url for libravatar dep
@strk strk force-pushed the proper-from-on-issue-mail branch from f66c565 to fb4a8e6 Compare November 2, 2016 19:21
It is the FROM field in mailer configuration that needs be used,
not the USER field, which is for authentication.

Closes gogs#3615
@strk strk force-pushed the proper-from-on-issue-mail branch from fb4a8e6 to 20c1740 Compare November 2, 2016 19:25
@strk
Copy link
Contributor Author

strk commented Nov 2, 2016

Sorry but I'm afraid the branch attached to this PR cannot be merged into Gogs anymore as it was rebased to Gitea develop branch. Closing.

@strk strk closed this Nov 2, 2016
Martchus pushed a commit to Martchus/gogs that referenced this pull request Aug 27, 2018
…3616)

* Use Segoe UI for Latin characters before falling back to YaHei

This fixes issues with character rendering on hidpi displays and other
aliasing/hinting issues, as Segoe UI has been painstakingly hinted by
typographers for Microsoft while YaHei has not. See gogs#3237 for more
details.

Closes gogs#3237

* Include transformed LESS -> CSS in commit
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: waits for review It is waiting to be reviewed by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants