]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add `special` flag for URLs
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 Jan 2022 20:25:12 +0000 (20:25 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 Jan 2022 20:25:12 +0000 (20:25 +0000)
src/libserver/url.c
src/libserver/url.h

index 169b9b10766be8029217614b7dad3d61c0cff819..3a9c90608017a71febecab043768b204fc298d22 100644 (file)
@@ -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},
 };
 
 
index 8fdddaca8e2d89c42181a9d689f8d84b77462901..e8677fdc2d136ba3b6e1dac7d110ae4e4ad0391d 100644 (file)
@@ -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;