summaryrefslogtreecommitdiffstats
path: root/src/libserver/html.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-17 13:51:19 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-17 13:51:19 +0100
commit500ddb601ca945959149e5a8b5b089151e7b338f (patch)
tree41bd96f437316a3e43da99e62f3e0f3bfc3aff4e /src/libserver/html.h
parent2fed92c0756145ad4f78b0ad1f020e0c2019df91 (diff)
downloadrspamd-500ddb601ca945959149e5a8b5b089151e7b338f.tar.gz
rspamd-500ddb601ca945959149e5a8b5b089151e7b338f.zip
Improve tag_exists function.
Diffstat (limited to 'src/libserver/html.h')
-rw-r--r--src/libserver/html.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libserver/html.h b/src/libserver/html.h
index c70d7d6ed..4b17b5000 100644
--- a/src/libserver/html.h
+++ b/src/libserver/html.h
@@ -41,14 +41,10 @@ struct rspamd_task;
struct html_content {
GNode *html_tags;
gint flags;
+ guchar *tags_seen;
};
/*
- * Get tag structure by its name (binary search is used)
- */
-struct html_tag * get_tag_by_name (const gchar *name);
-
-/*
* Decode HTML entitles in text. Text is modified in place.
*/
guint rspamd_html_decode_entitles_inplace (gchar *s, guint len);
@@ -61,4 +57,9 @@ GByteArray* rspamd_html_process_part_full (rspamd_mempool_t *pool,
struct html_content *hc,
GByteArray *in, GList **exceptions, GHashTable *urls, GHashTable *emails);
+/*
+ * Returns true if a specified tag has been seen in a part
+ */
+gboolean rspamd_html_tag_seen (struct html_content *hc, const gchar *tagname);
+
#endif