Email should not be sent, but it is!


#1

I find out that still in latest version of RT + RTIR is issue when have 2 requestor in one ticket they both get replay event if uncheck one in replay recepient form. It works correct general queue but in incident report not.

When open replay form in incident report get il log:

[7653] [Thu Apr  4 11:57:50 2019] [warning]: Use of uninitialized value $ARGS{"TxnRecipients"} in split at /opt/rt4/share/html/Helpers/ShowSimplifiedRecipients line 99. (/opt/rt4/share/html/Helpers/ShowSimplifiedRecipients:99)

When sendin replay in log saw this:

[7675] [Thu Apr  4 11:59:41 2019] [debug]: Calling SetRecipientDigests for transaction RT::Transaction=HASH(0x5617ec1ca3c8), id 89 (/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:685)
[7675] [Thu Apr  4 11:59:41 2019] [debug]: Working on mailfield To; recipients are  (/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:701)
...
[7675] [Thu Apr  4 11:59:41 2019] [debug]: Committing scrip #5 on txn #89 of ticket #1 (/opt/rt4/sbin/../lib/RT/Scrips.pm:293)
[7675] [Thu Apr  4 11:59:41 2019] [debug]: Calling SetRecipientDigests for transaction RT::Transaction=HASH(0x5617ec1ca3c8), id 89 (/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:685)
[7675] [Thu Apr  4 11:59:41 2019] [debug]: Working on mailfield To; recipients are recipient1@example.com,recipient2@example.com (/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:701)

Looks like script 5 mess up recipient list but if i repeat that in general queue all work as should.
I used Ubuntu 18. Run all updates and have documented step by step install to replicate this issue.
RTIR 3.2.0 works correctly but that bug show up in 3.3.0 version