commit fe630db: [Minor] Add `special` flag for URLs

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Jan 11 20:28:05 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-01-11 20:25:12 +0000
URL: https://github.com/rspamd/rspamd/commit/fe630db2dbb6924e5159141df594174ddf9315c0

[Minor] Add `special` flag for URLs

---
 src/libserver/url.c | 1 +
 src/libserver/url.h | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/libserver/url.c b/src/libserver/url.c
index 169b9b107..3a9c90608 100644
--- a/src/libserver/url.c
+++ b/src/libserver/url.c
@@ -245,6 +245,7 @@ struct rspamd_url_flag_name {
 		{"truncated", RSPAMD_URL_FLAG_TRUNCATED, -1},
 		{"redirect_target", RSPAMD_URL_FLAG_REDIRECT_TARGET, -1},
 		{"invisible", RSPAMD_URL_FLAG_INVISIBLE, -1},
+		{"special", RSPAMD_URL_FLAG_SPECIAL, -1},
 };
 
 
diff --git a/src/libserver/url.h b/src/libserver/url.h
index 8fdddaca8..e8677fdc2 100644
--- a/src/libserver/url.h
+++ b/src/libserver/url.h
@@ -42,9 +42,10 @@ enum rspamd_url_flags {
 	RSPAMD_URL_FLAG_TRUNCATED = 1u << 23u,
 	RSPAMD_URL_FLAG_REDIRECT_TARGET = 1u << 24u,
 	RSPAMD_URL_FLAG_INVISIBLE = 1u << 25u,
+	RSPAMD_URL_FLAG_SPECIAL = 1u << 26u,
 
 };
-#define RSPAMD_URL_MAX_FLAG_SHIFT (25u)
+#define RSPAMD_URL_MAX_FLAG_SHIFT (26u)
 
 struct rspamd_url_tag {
 	const gchar *data;


More information about the Commits mailing list