diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-07-25 15:56:43 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-07-25 16:05:06 +0100 |
commit | 5fd7a90fdaa33f52c59bdb0ca84451e5c1e22365 (patch) | |
tree | da29b9e1576aa6c453adf31d76334c3f9c15525c /src/libserver/url.h | |
parent | c82c2ccc54d5f99d99782d3282e6f2a8671eef2e (diff) | |
download | rspamd-5fd7a90fdaa33f52c59bdb0ca84451e5c1e22365.tar.gz rspamd-5fd7a90fdaa33f52c59bdb0ca84451e5c1e22365.zip |
[Feature] Add order to urls structure
Diffstat (limited to 'src/libserver/url.h')
-rw-r--r-- | src/libserver/url.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libserver/url.h b/src/libserver/url.h index 7a005efd8..f3d561736 100644 --- a/src/libserver/url.h +++ b/src/libserver/url.h @@ -82,6 +82,11 @@ struct rspamd_url { uint16_t count; uint16_t urllen; uint16_t rawlen; + + /* Absolute order of the URL in a message */ + uint16_t order; + /* Order of the URL in a specific part of message */ + uint16_t part_order; }; /** @@ -156,6 +161,7 @@ void rspamd_url_deinit(void); void rspamd_url_text_extract(rspamd_mempool_t *pool, struct rspamd_task *task, struct rspamd_mime_text_part *part, + uint16_t *cur_order, enum rspamd_url_find_type how); /* |