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
sympa
sympa
Commits
26b4a546
Unverified
Commit
26b4a546
authored
Nov 11, 2019
by
IKEDA Soji
Committed by
GitHub
Nov 11, 2019
Browse files
Merge pull request #793 from ikedas/issue-791 by ikedas
WWSympa: compose_mail: "Date:" field was omitted. Add it. (#791)
parents
c95fd286
f74d8ed2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cgi/wwsympa.fcgi.in
View file @
26b4a546
...
...
@@ -14805,6 +14805,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