Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Mareš
Postal Owl
Commits
3110863b
Commit
3110863b
authored
Oct 19, 2021
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
owl.py
View file @
3110863b
...
...
@@ -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'
)))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment