Joongi Kim committed a30be66

added author and date information to the email format

Comments (0)

Files changed (2)


     def __init__(self, env):
         NotifyEmail.__init__(self, env)
-    def notify(self, resid, subject, msg, old_rev, new_rev, diff):
-            'diff_body': diff,
-            'commit_message': msg,
-            'old_rev': old_rev,
-            'new_rev': new_rev,
-        })
-        NotifyEmail.notify(self, resid, subject)
+    def notify(self, resid, template_vars):
+        NotifyEmail.notify(self, resid, template_vars['subject'])
     def get_recipients(self, resid):
         return (self.config.get('changeset', 'notification_recipients'), '')
                                        (repos.display_rev(changeset.rev), reponame))
         new_rev = repos.display_rev(changeset.rev)
         old_rev = repos.display_rev(repos.previous_rev(changeset.rev))
-        cn.notify(changeset.rev, subject, changeset.message, old_rev, new_rev, diff)
+        template_vars = {
+            'subject': subject,
+            'diff_body': diff,
+            'author':,
+            'date':,
+            'commit_message': changeset.message,
+            'old_rev': old_rev,
+            'new_rev': new_rev,
+        }
+        cn.notify(changeset.rev, template_vars)
     def changeset_modified(self, repos, changeset, old_changeset):
         if not self.notify:


+Author: $author
+Date: $date
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.