Commit 4ba9ae39 authored by Václav Končický's avatar Václav Končický
Browse files

E-mail: Added Owl identification headers

parent 33173342
......@@ -1700,6 +1700,11 @@ def send_notify_to_dest(post, topic, course, author, target, dest, reply_to):
('Post by', full_name(author)),
('Posted', post.created.replace(microsecond=0).astimezone().strftime("%Y-%m-%d %H:%M:%S")),
]
msg['X-Owl-Semester'] = course.sident
msg['X-Owl-Course'] = course.ident
msg['X-Owl-Topic'] = topic.ident
if post.modified:
h.append(('Updated', post.modified.replace(microsecond=0).astimezone().strftime("%Y-%m-%d %H:%M:%S")))
h.append(('URL', url_for('topic_index', sident=course.sident, cident=course.ident, tident=topic.ident, student_uid=target_uid, _external=True, _scheme='https')))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment