Commit 3110863b authored by Martin Mareš's avatar Martin Mareš
Browse files

Merge branch 'vk-email-filter' into 'master'

Hlavičky e-mailu pro třídění

See merge request !7
parents 33173342 4ba9ae39
......@@ -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