commit 5ae23df: Apply suggestions from code review

GitHub noreply at github.com
Sat Jun 3 20:07:09 UTC 2023


Author: Vsevolod Stakhov
Date: 2023-06-03 21:02:27 +0100
URL: https://github.com/rspamd/rspamd/commit/5ae23df13912d102cdd260574fe87f52b645a68d (refs/pull/4505/head)

Apply suggestions from code review

---
 rules/html.lua | 2 +-
 rules/misc.lua | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/rules/html.lua b/rules/html.lua
index 100e3a160..df42f2f0e 100644
--- a/rules/html.lua
+++ b/rules/html.lua
@@ -395,7 +395,7 @@ rspamd_config.HTTP_TO_HTTPS = {
     end
     return false
   end,
-  description = 'HTML anchor text contains different scheme to target URL',
+  description = 'The anchor text contains a distinct scheme compared to the target URL',
   score = 0.5,
   group = 'html'
 }
diff --git a/rules/misc.lua b/rules/misc.lua
index c8a83a6f9..b27a1bc53 100644
--- a/rules/misc.lua
+++ b/rules/misc.lua
@@ -148,7 +148,7 @@ local obscured_id = rspamd_config:register_symbol{
   name = 'R_SUSPICIOUS_URL',
   score = 5.0,
   one_shot = true,
-  description = 'Has obfuscated or suspicious URL',
+  description = 'A message has been identified to contain an obfuscated or suspicious URL',
   group = 'url'
 }
 
@@ -382,7 +382,7 @@ end
 rspamd_config:register_symbol({
   name = 'FREEMAIL_REPLYTO_NEQ_FROM_DOM',
   callback = freemail_reply_neq_from,
-  description = 'Freemail addresses in From and Reply-To headers, but to different freemail services',
+  description = 'The From and Reply-To addresses in the email are from different freemail services',
   score = 3.0,
   group = 'headers',
 })


More information about the Commits mailing list