commit 1f725cb: [Minor] Surbl: Skip displayed only urls

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Dec 27 18:28:08 UTC 2018


Author: Vsevolod Stakhov
Date: 2018-12-14 09:19:45 +0000
URL: https://github.com/rspamd/rspamd/commit/1f725cbd80f92cb976e3fd6be7af8d076bb8b57e

[Minor] Surbl: Skip displayed only urls

---
 src/plugins/surbl.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c
index 056fafb9c..4bc17db20 100644
--- a/src/plugins/surbl.c
+++ b/src/plugins/surbl.c
@@ -1907,6 +1907,11 @@ surbl_tree_url_callback (gpointer key, gpointer value, void *data)
 		return;
 	}
 
+	if (url->flags & RSPAMD_URL_FLAG_HTML_DISPLAYED) {
+		/* Skip urls that are displayed only */
+		return;
+	}
+
 	task = param->task;
 	surbl_module_ctx = param->ctx;
 


More information about the Commits mailing list