aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ragel/smtp_received_parser.rl9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/ragel/smtp_received_parser.rl b/src/ragel/smtp_received_parser.rl
index cc4d37e0c..12b1c1b5c 100644
--- a/src/ragel/smtp_received_parser.rl
+++ b/src/ragel/smtp_received_parser.rl
@@ -254,14 +254,7 @@
}
action Date_End {
if (date_start && p > date_start) {
- guint len;
- char *tdate;
-
- len = p - date_start;
- tdate = g_malloc (len + 1);
- rspamd_strlcpy (tdate, date_start, len + 1);
- rh->timestamp = g_mime_utils_header_decode_date (tdate, NULL);
- g_free (tdate);
+ rh->timestamp = rspamd_tm_to_time (&tm, tz);
}
}