Skip to content

Instantly share code, notes, and snippets.

@ikedas
Created August 14, 2022 09:20
Show Gist options
  • Save ikedas/378ab2206e06a6d37847479de7d14c87 to your computer and use it in GitHub Desktop.
Save ikedas/378ab2206e06a6d37847479de7d14c87 to your computer and use it in GitHub Desktop.
Never attach messges in moderation notices
diff --git a/default/mail_tt2/moderate.tt2 b/default/mail_tt2/moderate.tt2
index e1e8e69..9e9cc15 100644
--- a/default/mail_tt2/moderate.tt2
+++ b/default/mail_tt2/moderate.tt2
@@ -3,7 +3,7 @@ From: [% fromlist %]
 To: [%"Moderator"|loc|mailbox("${list.name}-editor@${domain}",list.name)%]
 Subject: [%"Message for list %1 from %2 to be approved"|loc(list.name,msg_from)|qencode%]
 Reply-To: [% conf.email %]@[% domain %]
-[% IF spam_status != 'spam' -%]
+[% IF 0 -%]
 Content-Type: multipart/mixed; boundary="[% boundary %]"

 --[% boundary %]
@@ -40,7 +40,7 @@ REJECT [% list.name %] [% modkey %]
 [%|loc%]The messages moderating documentation:[%END%] [% 'help' | url_abs(['admin-moderate.html']) %]
 [%- END%]
 [%- END%]
-[% IF spam_status != 'spam' -%]
+[% IF 0 -%]
 --[% boundary %]
 Content-Type: message/rfc822
 Content-Transfer-Encoding: 8bit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment