Herron has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/365424 )

Change subject: Lists: Change exim filter for spam observed from qq.com
......................................................................


Lists: Change exim filter for spam observed from qq.com

Update exim filter with messages attributes seen in spam sent to list -owners
addresses.

Set check_rfc2047_length = false to decode unusually long subject headers.

Bug: T170601
Change-Id: Id5a9766f7b8a3d304d73829eb385cb132e89680a
---
M modules/profile/templates/exim/exim4.conf.mailman.erb
M modules/profile/templates/exim/system_filter.conf.mailman.erb
2 files changed, 8 insertions(+), 2 deletions(-)

Approvals:
  Herron: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/profile/templates/exim/exim4.conf.mailman.erb 
b/modules/profile/templates/exim/exim4.conf.mailman.erb
index 410ecb8..e5b52da 100644
--- a/modules/profile/templates/exim/exim4.conf.mailman.erb
+++ b/modules/profile/templates/exim/exim4.conf.mailman.erb
@@ -64,6 +64,7 @@
 # Other
 never_users = root : daemon : bin
 ignore_bounce_errors_after = 0h
+check_rfc2047_length = false
 
 add_environment = <; PATH=/bin:/usr/bin
 keep_environment =
diff --git a/modules/profile/templates/exim/system_filter.conf.mailman.erb 
b/modules/profile/templates/exim/system_filter.conf.mailman.erb
index 5c39455..3d92a2f 100644
--- a/modules/profile/templates/exim/system_filter.conf.mailman.erb
+++ b/modules/profile/templates/exim/system_filter.conf.mailman.erb
@@ -19,6 +19,11 @@
 endif
 
 # Filter spam observed from qq.com with matching subject.
-if $header_subject: contains "只要投紸荭宝天天" and $header_from: ends "qq.com" then
-        fail text "Message rejected"
+if $header_subject: contains "只要投紸荭宝天天" and $header_from: contains "@qq.com" 
then
+        fail text "Message rejected ref1"
+endif
+
+# Filter spam observed from qq.com with matching subject.
+if $header_subject: matches "8。COM.*天天" and $header_from: contains "@qq.com" 
then
+        fail text "Message rejected ref2"
 endif

-- 
To view, visit https://gerrit.wikimedia.org/r/365424
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id5a9766f7b8a3d304d73829eb385cb132e89680a
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Herron <kher...@wikimedia.org>
Gerrit-Reviewer: Herron <kher...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to