aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/protocol.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-19 17:18:43 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-19 17:18:43 +0100
commit13a13b60f155603393c5575ccfdeaa877cb613b6 (patch)
tree50d47f0d708d1b41dedb758928c7073f29c9a105 /src/libserver/protocol.c
parenta102caecf7ab481bf4f3f5f4a233a5e64467e4d2 (diff)
downloadrspamd-13a13b60f155603393c5575ccfdeaa877cb613b6.tar.gz
rspamd-13a13b60f155603393c5575ccfdeaa877cb613b6.zip
[Minor] Add `max_recipients` config knob
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 1d51ff28f..9d1276064 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, -1);
+ p - start_addr);
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, -1);
+ addr = rspamd_email_address_from_smtp (start_addr, end - start_addr);
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, -1);
+ hv_tok->len);
msg_debug_protocol ("read from header, value: %T", hv_tok);
if (!task->from_envelope) {