--- a/Allura/allura/model/discuss.py
+++ b/Allura/allura/model/discuss.py
@@ -442,7 +442,10 @@
self.acl, author.project_role()._id, 'unmoderated_post')
g.post_event('discussion.new_post', self.thread_id, self._id)
artifact = self.thread.artifact or self.thread
- Notification.post(artifact, 'message', post=self)
+ n = Notification.post(artifact, 'message', post=self)
+ monitoring_email = self.app.config.options.get('MonitoringEmail')
+ if monitoring_email:
+ n.send_simple(monitoring_email)
session(self).flush()
self.thread.last_post_date = max(
self.thread.last_post_date,