aboutsummaryrefslogtreecommitdiffstats
path: root/src/ragel
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-15 17:42:56 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-15 17:42:56 +0100
commit4cd5cfe03ca6b315ea35a89df9f32b12d37fe694 (patch)
treecabb7542f9618a83ca58fee755b6ee5e4f4f84b3 /src/ragel
parentf166c85751692f0a317b0eb129e6ed0557e281a4 (diff)
downloadrspamd-4cd5cfe03ca6b315ea35a89df9f32b12d37fe694.tar.gz
rspamd-4cd5cfe03ca6b315ea35a89df9f32b12d37fe694.zip
[Feature] Add ESMTPSA received type
Diffstat (limited to 'src/ragel')
-rw-r--r--src/ragel/smtp_received.rl1
-rw-r--r--src/ragel/smtp_received_parser.rl3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/ragel/smtp_received.rl b/src/ragel/smtp_received.rl
index dd2212de3..e005dcc9c 100644
--- a/src/ragel/smtp_received.rl
+++ b/src/ragel/smtp_received.rl
@@ -15,6 +15,7 @@
"SMTP" %SMTP_proto |
"ESMTPS" %ESMTPS_proto |
"ESMTPA" %ESMTPA_proto |
+ "ESMTPSA" %ESMTPSA_proto |
"LMTP" %LMTP_proto |
"IMAP" %IMAP_proto |
Attdl_Protocol;
diff --git a/src/ragel/smtp_received_parser.rl b/src/ragel/smtp_received_parser.rl
index bfd32eaaa..b2c73cab3 100644
--- a/src/ragel/smtp_received_parser.rl
+++ b/src/ragel/smtp_received_parser.rl
@@ -226,6 +226,9 @@
action ESMTP_proto {
rh->type = RSPAMD_RECEIVED_ESMTP;
}
+ action ESMTPSA_proto {
+ rh->type = RSPAMD_RECEIVED_ESMTPSA;
+ }
action LMTP_proto {
rh->type = RSPAMD_RECEIVED_LMTP;
}