Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
f74d8ed2
Commit
f74d8ed2
authored
Nov 08, 2019
by
IKEDA Soji
Browse files
WWSympa: compose_mail: "Date:" field was omitted. Add it.
parent
313a004e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cgi/wwsympa.fcgi.in
View file @
f74d8ed2
...
...
@@ -14791,6 +14791,14 @@ sub do_send_mail {
if $in_reply_to;
$msg_string .= sprintf "Subject: %s\n", $encoded_subject
if defined $encoded_subject;
# Format current time.
# If setting local timezone fails, fallback to UTC.
my $date =
(eval { DateTime->now(time_zone => 'local') } || DateTime->now)
->strftime('%a, %{day} %b %Y %H:%M:%S %z');
$msg_string .= sprintf "Date: %s\n", $date;
if (Conf::get_robot_conf($robot, 'use_html_editor')) {
$msg_string .= sprintf "Content-Type: text/html\n\n%s",
$in{'body'};
...
...
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