--- a/Allura/allura/model/notification.py
+++ b/Allura/allura/model/notification.py
@@ -124,6 +124,7 @@
text=kwargs.pop('text', subject))
if not d.get('text'):
d['text'] = ''
+ assert d['reply_to_address'] is not None
n = cls(artifact_reference=artifact.dump_ref(),
topic=topic,
link=kwargs.pop('link', artifact.url()),
@@ -170,7 +171,7 @@
g.publish('audit', 'forgemail.send_email', {
'destinations':[str(user_id)],
'from':from_address,
- 'reply_to':from_address,
+ 'reply_to':reply_to_address,
'subject':subject,
'message_id':h.gen_message_id(),
'text':text},
@@ -205,6 +206,8 @@
('user_id', 'project_id', 'app_config_id',
'artifact_index_id', 'topic', 'is_flash'),
]
+ indexes = [
+ ('project_id', 'artifact_index_id') ]
_id = FieldProperty(S.ObjectId)
user_id = ForeignIdProperty('User', if_missing=lambda:c.user._id)
project_id = ForeignIdProperty('Project', if_missing=lambda:c.project._id)