aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/email_addr.h
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/libmime/email_addr.h
parent8c9a5fc40ae7275e9101ecfe65bef6d150260af1 (diff)
downloadrspamd-a102caecf7ab481bf4f3f5f4a233a5e64467e4d2.tar.gz
rspamd-a102caecf7ab481bf4f3f5f4a233a5e64467e4d2.zip
[Minor] Add a simple way to limit number of email addresses
Diffstat (limited to 'src/libmime/email_addr.h')
-rw-r--r--src/libmime/email_addr.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libmime/email_addr.h b/src/libmime/email_addr.h
index 13e94f7cc..2452fc7aa 100644
--- a/src/libmime/email_addr.h
+++ b/src/libmime/email_addr.h
@@ -67,8 +67,9 @@ struct rspamd_task;
* @param len length of string
* @return
*/
-struct rspamd_email_address *rspamd_email_address_from_smtp (
- const gchar *str, guint len);
+struct rspamd_email_address *rspamd_email_address_from_smtp (const gchar *str,
+ guint len,
+ gint max_elements);
/**
* Parses email address from the mime header, decodes names and return the array
@@ -79,10 +80,9 @@ struct rspamd_email_address *rspamd_email_address_from_smtp (
* @param len
* @return
*/
-GPtrArray *rspamd_email_address_from_mime (rspamd_mempool_t *pool,
- const gchar *hdr,
- guint len,
- GPtrArray *src);
+GPtrArray *
+rspamd_email_address_from_mime (rspamd_mempool_t *pool, const gchar *hdr, guint len,
+ GPtrArray *src, gint max_elements);
/**
* Destroys list of email addresses