# HG changeset patch # User Thomas De Schampheleire # Date 1436473046 -7200 # Node ID 2577ddeab3318cb82d1ea019ff4c3f68ff3fe3af # Parent c935bcaf7086c18bb32ed105ffa47b951b3b3c21 email: remove user from subject of emails For comment and pullrequest mails: - remove user that triggered the email, as this is now in the From header. Based on code by Cedric De Herdt. diff -r c935bcaf7086 -r 2577ddeab331 kallithea/model/notification.py --- a/kallithea/model/notification.py Thu Aug 27 22:19:39 2015 +0200 +++ b/kallithea/model/notification.py Thu Jul 09 22:17:26 2015 +0200 @@ -299,13 +299,13 @@ self.TYPE_PULL_REQUEST_COMMENT: 'pull_request_comment', } self._subj_map = { - self.TYPE_CHANGESET_COMMENT: _('[Comment from %(comment_username)s] %(repo_name)s changeset %(short_id)s on %(branch)s'), + self.TYPE_CHANGESET_COMMENT: _('[Comment] %(repo_name)s changeset %(short_id)s on %(branch)s'), self.TYPE_MESSAGE: 'Test Message', # self.TYPE_PASSWORD_RESET self.TYPE_REGISTRATION: _('New user %(new_username)s registered'), # self.TYPE_DEFAULT - self.TYPE_PULL_REQUEST: _('[Added by %(pr_username)s] %(repo_name)s pull request %(pr_nice_id)s from %(ref)s'), - self.TYPE_PULL_REQUEST_COMMENT: _('[Comment from %(comment_username)s] %(repo_name)s pull request %(pr_nice_id)s from %(ref)s'), + self.TYPE_PULL_REQUEST: _('[Added] %(repo_name)s pull request %(pr_nice_id)s from %(ref)s'), + self.TYPE_PULL_REQUEST_COMMENT: _('[Comment] %(repo_name)s pull request %(pr_nice_id)s from %(ref)s'), } def get_email_description(self, type_, **kwargs):