aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/url.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-19 13:06:49 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-19 13:06:49 +0000
commit2287a9092a9300cc56a05a9e83771e0bf05dc064 (patch)
tree7408f8d9e2b5e9d01806e1347f1bb0f38918ab7a /src/libserver/url.h
parent970a8f6bf3b0f0b601567483c29f91af72d99008 (diff)
downloadrspamd-2287a9092a9300cc56a05a9e83771e0bf05dc064.tar.gz
rspamd-2287a9092a9300cc56a05a9e83771e0bf05dc064.zip
Use flags for urls
Diffstat (limited to 'src/libserver/url.h')
-rw-r--r--src/libserver/url.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/libserver/url.h b/src/libserver/url.h
index f1c850b80..90b6d5c61 100644
--- a/src/libserver/url.h
+++ b/src/libserver/url.h
@@ -8,6 +8,12 @@
struct rspamd_task;
struct mime_text_part;
+enum rspamd_url_flags {
+ RSPAMD_URL_FLAG_PHISHED = 1 << 0,
+ RSPAMD_URL_FLAG_NUMERIC = 1 << 1,
+ RSPAMD_URL_FLAG_OBSCURED = 1 << 2,
+};
+
struct rspamd_url {
gchar *string;
gint protocol;
@@ -35,8 +41,7 @@ struct rspamd_url {
guint tldlen;
guint urllen;
- gboolean is_phished; /* URI maybe phishing */
- gboolean is_numeric; /* URI contains IP address */
+ enum rspamd_url_flags flags;
};
enum uri_errno {