diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-05-19 17:00:25 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-05-19 17:00:25 +0100 |
commit | a102caecf7ab481bf4f3f5f4a233a5e64467e4d2 (patch) | |
tree | 1a9f0062f230d59ebe03323f7a6c935148504c10 /src/libserver/milter.c | |
parent | 8c9a5fc40ae7275e9101ecfe65bef6d150260af1 (diff) | |
download | rspamd-a102caecf7ab481bf4f3f5f4a233a5e64467e4d2.tar.gz rspamd-a102caecf7ab481bf4f3f5f4a233a5e64467e4d2.zip |
[Minor] Add a simple way to limit number of email addresses
Diffstat (limited to 'src/libserver/milter.c')
-rw-r--r-- | src/libserver/milter.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libserver/milter.c b/src/libserver/milter.c index dc398912d..4713b7371 100644 --- a/src/libserver/milter.c +++ b/src/libserver/milter.c @@ -603,7 +603,7 @@ rspamd_milter_process_command (struct rspamd_milter_session *session, cpy = rspamd_mempool_alloc (priv->pool, zero - pos); memcpy (cpy, pos, zero - pos); msg_debug_milter ("got mail: %*s", (int)(zero - pos), cpy); - addr = rspamd_email_address_from_smtp (cpy, zero - pos); + addr = rspamd_email_address_from_smtp (cpy, zero - pos, -1); if (addr) { session->from = addr; @@ -618,7 +618,7 @@ rspamd_milter_process_command (struct rspamd_milter_session *session, /* That actually should not happen */ cpy = rspamd_mempool_alloc (priv->pool, end - pos); memcpy (cpy, pos, end - pos); - addr = rspamd_email_address_from_smtp (cpy, end - pos); + addr = rspamd_email_address_from_smtp (cpy, end - pos, -1); if (addr) { session->from = addr; @@ -707,7 +707,7 @@ rspamd_milter_process_command (struct rspamd_milter_session *session, memcpy (cpy, pos, end - pos); msg_debug_milter ("got rcpt: %*s", (int)(zero - pos), cpy); - addr = rspamd_email_address_from_smtp (cpy, zero - pos); + addr = rspamd_email_address_from_smtp (cpy, zero - pos, -1); if (addr) { if (!session->rcpts) { @@ -726,7 +726,7 @@ rspamd_milter_process_command (struct rspamd_milter_session *session, msg_debug_milter ("got weird rcpt: %*s", (int)(end - pos), pos); /* That actually should not happen */ - addr = rspamd_email_address_from_smtp (cpy, end - pos); + addr = rspamd_email_address_from_smtp (cpy, end - pos, -1); if (addr) { if (!session->rcpts) { |