This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 693bed91 Only want to add attachments for CCLAs
693bed91 is described below

commit 693bed91b76024627f8ca99b7a6643ed5ed4840c
Author: Sebb <[email protected]>
AuthorDate: Wed Aug 24 11:16:54 2022 +0100

    Only want to add attachments for CCLAs
---
 www/secretary/workbench/models/message.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/www/secretary/workbench/models/message.rb 
b/www/secretary/workbench/models/message.rb
index 31cb40ab..562e2f92 100644
--- a/www/secretary/workbench/models/message.rb
+++ b/www/secretary/workbench/models/message.rb
@@ -449,7 +449,9 @@ class Message
 
       headers[:attachments] = attachments
     # we also want to treat CLA requests as attachments
-    elsif headers['Subject'].include? 'CLA'
+    elsif headers['Subject'].include?('CLA') &&
+         !headers['Subject'].include?('ICLA') &&
+         !headers['Subject'].include?('iCLA')
       headers[:attachments] = [
         {name: RAWMESSAGE_ATTACHMENT_NAME,
           length: message.size,

Reply via email to