RTIR sends emails to all correspondents


#1

In new installation with RT 4.4.1 and RTIR 4.0.0 or RTIR 4.0.1rc1 if replay to Incident Report e-mail is sent to all correspond e-mails ignoring unchecked boxes. I checked POST data. It’s send it correctly only one checked e-mail. But in fact both emails receive it.
In TO field must be only one e-mail “test1@locahost”, but have second one too “test2@locahost”. This is how log looks like when replay to incident report ticket:
[1829] [Fri Aug 18 11:06:01 2017] [debug]: Converting ‘utf-8’ to ‘utf-8’ for text/plain - Subjectless message (/opt/rt4/sbin/…/lib/RT/I18N.pm:289)
[1829] [Fri Aug 18 11:06:01 2017] [debug]: Converting ‘utf-8’ to ‘utf-8’ for text/plain - Subjectless message (/opt/rt4/sbin/…/lib/RT/I18N.pm:289)
[1829] [Fri Aug 18 11:06:01 2017] [debug]: About to prepare scrips for transaction #145 (/opt/rt4/sbin/…/lib/RT/Transaction.pm:189)
[1829] [Fri Aug 18 11:06:01 2017] [debug]: Found 11 scrips for TransactionCreate stage with applicable type(s) Correspond for txn #145 on ticket #3 (/opt/rt4/sbin/…/lib/RT/Scrips.pm:482)
[1829] [Fri Aug 18 11:06:01 2017] [debug]: Skipping Scrip #11 because it isn’t applicable (/opt/rt4/sbin/…/lib/RT/Scrips.pm:337)
[1829] [Fri Aug 18 11:06:01 2017] [debug]: Skipping Scrip #18 because it isn’t applicable (/opt/rt4/sbin/…/lib/RT/Scrips.pm:337)
[1829] [Fri Aug 18 11:06:01 2017] [debug]: Skipping Scrip #19 because it isn’t applicable (/opt/rt4/sbin/…/lib/RT/Scrips.pm:337)
[1829] [Fri Aug 18 11:06:01 2017] [debug]: Skipping Scrip #23 because it isn’t applicable (/opt/rt4/sbin/…/lib/RT/Scrips.pm:337)
[1829] [Fri Aug 18 11:06:01 2017] [debug]: Skipping Scrip #25 because it isn’t applicable (/opt/rt4/sbin/…/lib/RT/Scrips.pm:337)
[1829] [Fri Aug 18 11:06:01 2017] [debug]: Skipping Scrip #29 because it isn’t applicable (/opt/rt4/sbin/…/lib/RT/Scrips.pm:337)
[1829] [Fri Aug 18 11:06:01 2017] [debug]: Converting ‘utf-8’ to ‘utf-8’ for text/plain - [trt.localhost #3] test subject (/opt/rt4/sbin/…/lib/RT/I18N.pm:289)
[1829] [Fri Aug 18 11:06:01 2017] [debug]: Converting ‘utf-8’ to ‘utf-8’ for text/plain - [trt.localhost #3] test subject (/opt/rt4/sbin/…/lib/RT/I18N.pm:289)
[1829] [Fri Aug 18 11:06:01 2017] [debug]: Skipping Scrip #6 because it didn’t Prepare (/opt/rt4/sbin/…/lib/RT/Scrips.pm:345)
[1829] [Fri Aug 18 11:06:01 2017] [debug]: Found 0 scrips for TransactionBatch stage with applicable type(s) Correspond for txn #145 on ticket #3 (/opt/rt4/sbin/…/lib/RT/Scrips.pm:482)
[1829] [Fri Aug 18 11:06:02 2017] [warning]: Use of uninitialized value in split at /opt/rt4/share/html/Helpers/ShowSimplifiedRecipients line 99. (/opt/rt4/share/html/Helpers/ShowSimplifiedRecipients:99)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Converting ‘utf-8’ to ‘utf-8’ for text/plain - Subjectless message (/opt/rt4/sbin/…/lib/RT/I18N.pm:289)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Converting ‘utf-8’ to ‘utf-8’ for text/plain - Subjectless message (/opt/rt4/sbin/…/lib/RT/I18N.pm:289)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: About to prepare scrips for transaction #146 (/opt/rt4/sbin/…/lib/RT/Transaction.pm:189)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Found 11 scrips for TransactionCreate stage with applicable type(s) Correspond for txn #146 on ticket #3 (/opt/rt4/sbin/…/lib/RT/Scrips.pm:482)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Skipping Scrip #11 because it isn’t applicable (/opt/rt4/sbin/…/lib/RT/Scrips.pm:337)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Skipping Scrip #18 because it isn’t applicable (/opt/rt4/sbin/…/lib/RT/Scrips.pm:337)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Skipping Scrip #19 because it isn’t applicable (/opt/rt4/sbin/…/lib/RT/Scrips.pm:337)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Skipping Scrip #23 because it isn’t applicable (/opt/rt4/sbin/…/lib/RT/Scrips.pm:337)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Skipping Scrip #25 because it isn’t applicable (/opt/rt4/sbin/…/lib/RT/Scrips.pm:337)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Skipping Scrip #29 because it isn’t applicable (/opt/rt4/sbin/…/lib/RT/Scrips.pm:337)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Converting ‘utf-8’ to ‘utf-8’ for text/plain - [trt.localhost #3] test subject (/opt/rt4/sbin/…/lib/RT/I18N.pm:289)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Converting ‘utf-8’ to ‘utf-8’ for text/plain - [trt.localhost #3] test subject (/opt/rt4/sbin/…/lib/RT/I18N.pm:289)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Skipping Scrip #6 because it didn’t Prepare (/opt/rt4/sbin/…/lib/RT/Scrips.pm:345)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: About to commit scrips for transaction #146 (/opt/rt4/sbin/…/lib/RT/Transaction.pm:212)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Committing scrip #13 on txn #146 of ticket #3 (/opt/rt4/sbin/…/lib/RT/Scrips.pm:293)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Committing scrip #33 on txn #146 of ticket #3 (/opt/rt4/sbin/…/lib/RT/Scrips.pm:293)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Committing scrip #4 on txn #146 of ticket #3 (/opt/rt4/sbin/…/lib/RT/Scrips.pm:293)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Calling SetRecipientDigests for transaction RT::Transaction=HASH(0xb8c78e8), id 146 (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:684)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Working on mailfield To; recipients are (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:700)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Subject: [trt.localhost #3] test subject
From: test@localhost
Reply-To: test@localhost
In-Reply-To: rt-4.4.1-1829-1503054287-912.3-4-0@example.com
References: RT-Ticket-3@example.com
rt-4.4.1-1829-1503054173-372.3-4-0@example.com
rt-4.4.1-1829-1503054287-912.3-4-0@example.com
Message-ID: rt-4.4.1-1829-1503054368-1915.3-4-0@example.com
X-RT-Loop-Prevention: trt.localhost
X-RT-Ticket: trt.localhost #3
X-Managed-BY: RT 4.4.1 (http://www.bestpractical.com/rt/)
X-RT-Originator: root@localhost
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8 (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:707)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Removing deferred recipients from To: line (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:730)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Setting deferred recipients for attribute creation (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:739)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Working on mailfield Cc; recipients are (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:700)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Subject: [trt.localhost #3] test subject
From: test@localhost
Reply-To: test@localhost
In-Reply-To: rt-4.4.1-1829-1503054287-912.3-4-0@example.com
References: RT-Ticket-3@example.com
rt-4.4.1-1829-1503054173-372.3-4-0@example.com
rt-4.4.1-1829-1503054287-912.3-4-0@example.com
Message-ID: rt-4.4.1-1829-1503054368-1915.3-4-0@example.com
X-RT-Loop-Prevention: trt.localhost
X-RT-Ticket: trt.localhost #3
X-Managed-BY: RT 4.4.1 (http://www.bestpractical.com/rt/)
X-RT-Originator: root@localhost
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8 (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:707)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Removing deferred recipients from Cc: line (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:730)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Setting deferred recipients for attribute creation (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:739)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Working on mailfield Bcc; recipients are (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:700)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Subject: [trt.localhost #3] test subject
From: test@localhost
Reply-To: test@localhost
In-Reply-To: rt-4.4.1-1829-1503054287-912.3-4-0@example.com
References: RT-Ticket-3@example.com
rt-4.4.1-1829-1503054173-372.3-4-0@example.com
rt-4.4.1-1829-1503054287-912.3-4-0@example.com
Message-ID: rt-4.4.1-1829-1503054368-1915.3-4-0@example.com
X-RT-Loop-Prevention: trt.localhost
X-RT-Ticket: trt.localhost #3
X-Managed-BY: RT 4.4.1 (http://www.bestpractical.com/rt/)
X-RT-Originator: root@localhost
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8 (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:707)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Removing deferred recipients from Bcc: line (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:730)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Setting deferred recipients for attribute creation (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:739)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: No recipients found for deferred delivery on transaction #146 (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:752)
[1829] [Fri Aug 18 11:06:08 2017] [info]: rt-4.4.1-1829-1503054368-1915.3-4-0@example.com #3/146 - Scrip 4 On Correspond Notify Other Recipients (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:285)
[1829] [Fri Aug 18 11:06:08 2017] [info]: rt-4.4.1-1829-1503054368-1915.3-4-0@example.com No recipients found. Not sending. (/opt/rt4/sbin/…/lib/RT/Interface/Email.pm:806)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Committing scrip #5 on txn #146 of ticket #3 (/opt/rt4/sbin/…/lib/RT/Scrips.pm:293)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Calling SetRecipientDigests for transaction RT::Transaction=HASH(0xb8c78e8), id 146 (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:684)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Working on mailfield To; recipients are test1@locahost,test2@locahost (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:700)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Subject: [trt.localhost #3] test subject
From: test@localhost
Reply-To: test@localhost
In-Reply-To: rt-4.4.1-1829-1503054287-912.3-5-0@example.com
References: RT-Ticket-3@example.com
rt-4.4.1-1829-1503054173-372.3-5-0@example.com
rt-4.4.1-1829-1503054287-912.3-5-0@example.com
Message-ID: rt-4.4.1-1829-1503054368-1857.3-5-0@example.com
X-RT-Loop-Prevention: trt.localhost
X-RT-Ticket: trt.localhost #3
X-Managed-BY: RT 4.4.1 (http://www.bestpractical.com/rt/)
X-RT-Originator: root@localhost
To: test1@locahost, test2@locahost
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8 (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:707)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Got user mail preference ‘Individual messages’ for user test1@locahost (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:721)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Got user mail preference ‘Individual messages’ for user test2@locahost (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:721)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Removing deferred recipients from To: line (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:730)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Setting deferred recipients for attribute creation (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:739)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Working on mailfield Cc; recipients are (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:700)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Subject: [trt.localhost #3] test subject
From: test@localhost
Reply-To: test@localhost
In-Reply-To: rt-4.4.1-1829-1503054287-912.3-5-0@example.com
References: RT-Ticket-3@example.com
rt-4.4.1-1829-1503054173-372.3-5-0@example.com
rt-4.4.1-1829-1503054287-912.3-5-0@example.com
Message-ID: rt-4.4.1-1829-1503054368-1857.3-5-0@example.com
X-RT-Loop-Prevention: trt.localhost
X-RT-Ticket: trt.localhost #3
X-Managed-BY: RT 4.4.1 (http://www.bestpractical.com/rt/)
X-RT-Originator: root@localhost
To: test1@locahost, test2@locahost
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8 (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:707)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Removing deferred recipients from Cc: line (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:730)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Setting deferred recipients for attribute creation (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:739)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Working on mailfield Bcc; recipients are (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:700)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Subject: [trt.localhost #3] test subject
From: test@localhost
Reply-To: test@localhost
In-Reply-To: rt-4.4.1-1829-1503054287-912.3-5-0@example.com
References: RT-Ticket-3@example.com
rt-4.4.1-1829-1503054173-372.3-5-0@example.com
rt-4.4.1-1829-1503054287-912.3-5-0@example.com
Message-ID: rt-4.4.1-1829-1503054368-1857.3-5-0@example.com
X-RT-Loop-Prevention: trt.localhost
X-RT-Ticket: trt.localhost #3
X-Managed-BY: RT 4.4.1 (http://www.bestpractical.com/rt/)
X-RT-Originator: root@localhost
To: test1@locahost, test2@locahost
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8 (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:707)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Removing deferred recipients from Bcc: line (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:730)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Setting deferred recipients for attribute creation (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:739)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: No recipients found for deferred delivery on transaction #146 (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:752)
[1829] [Fri Aug 18 11:06:08 2017] [info]: rt-4.4.1-1829-1503054368-1857.3-5-0@example.com #3/146 - Scrip 5 On Correspond Notify Requestors and Ccs (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:285)
[1829] [Fri Aug 18 11:06:08 2017] [info]: rt-4.4.1-1829-1503054368-1857.3-5-0@example.com sent To: test1@locahost, test2@locahost (/opt/rt4/sbin/…/lib/RT/Action/SendEmail.pm:316)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Converting ‘utf-8’ to ‘utf-8’ for text/plain - [trt.localhost #3] test subject (/opt/rt4/sbin/…/lib/RT/I18N.pm:289)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Skipping scrips for transaction #147 (/opt/rt4/sbin/…/lib/RT/Transaction.pm:181)
[1829] [Fri Aug 18 11:06:08 2017] [debug]: Found 0 scrips for TransactionBatch stage with applicable type(s) Correspond for txn #146 on ticket #3 (/opt/rt4/sbin/…/lib/RT/Scrips.pm:482)
[1829] [Fri Aug 18 11:06:09 2017] [debug]: Found MakeClicky cache (/opt/rt4/share/html/Elements/MakeClicky:144)
[1829] [Fri Aug 18 11:06:09 2017] [debug]: Found MakeClicky cache (/opt/rt4/share/html/Elements/MakeClicky:144)
[1829] [Fri Aug 18 11:06:09 2017] [debug]: Found MakeClicky cache (/opt/rt4/share/html/Elements/MakeClicky:144)
[1829] [Fri Aug 18 11:06:09 2017] [debug]: Rendering attachment #90 of ‘text/html’ type (/opt/rt4/share/html/Elements/ShowTransactionAttachments:191)
[1829] [Fri Aug 18 11:06:09 2017] [debug]: Found MakeClicky cache (/opt/rt4/share/html/Elements/MakeClicky:144)
[1829] [Fri Aug 18 11:06:09 2017] [debug]: Rendering attachment #93 of ‘text/plain’ type (/opt/rt4/share/html/Elements/ShowTransactionAttachments:191)
[1829] [Fri Aug 18 11:06:09 2017] [debug]: Found MakeClicky cache (/opt/rt4/share/html/Elements/MakeClicky:144)
[1829] [Fri Aug 18 11:06:09 2017] [debug]: Found MakeClicky cache (/opt/rt4/share/html/Elements/MakeClicky:144)
[1829] [Fri Aug 18 11:06:09 2017] [debug]: Rendering attachment #96 of ‘text/plain’ type (/opt/rt4/share/html/Elements/ShowTransactionAttachments:191)