aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/protocol.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-19 17:00:25 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-19 17:00:25 +0100
commita102caecf7ab481bf4f3f5f4a233a5e64467e4d2 (patch)
tree1a9f0062f230d59ebe03323f7a6c935148504c10 /src/libserver/protocol.c
parent8c9a5fc40ae7275e9101ecfe65bef6d150260af1 (diff)
downloadrspamd-a102caecf7ab481bf4f3f5f4a233a5e64467e4d2.tar.gz
rspamd-a102caecf7ab481bf4f3f5f4a233a5e64467e4d2.zip
[Minor] Add a simple way to limit number of email addresses
Diffstat (limited to 'src/libserver/protocol.c')
-rw-r--r--src/libserver/protocol.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c
index 9d1276064..1d51ff28f 100644
--- a/src/libserver/protocol.c
+++ b/src/libserver/protocol.c
@@ -292,7 +292,7 @@ rspamd_protocol_process_recipients (struct rspamd_task *task,
else if (*p == ',' && start_addr != NULL && p > start_addr) {
/* We have finished address, check what we have */
addr = rspamd_email_address_from_smtp (start_addr,
- p - start_addr);
+ p - start_addr, -1);
if (addr) {
if (task->rcpt_envelope == NULL) {
@@ -322,7 +322,7 @@ rspamd_protocol_process_recipients (struct rspamd_task *task,
if (start_addr && p > start_addr) {
switch (state) {
case normal_string:
- addr = rspamd_email_address_from_smtp (start_addr, end - start_addr);
+ addr = rspamd_email_address_from_smtp (start_addr, end - start_addr, -1);
if (addr) {
if (task->rcpt_envelope == NULL) {
@@ -495,7 +495,7 @@ rspamd_protocol_handle_headers (struct rspamd_task *task,
IF_HEADER (FROM_HEADER) {
task->from_envelope = rspamd_email_address_from_smtp (
hv_tok->begin,
- hv_tok->len);
+ hv_tok->len, -1);
msg_debug_protocol ("read from header, value: %T", hv_tok);
if (!task->from_envelope) {