[rt-users] RT send 2 mail notification for setting the ticket owner

Rabin Yasharzadehe rabin at isoc.org.il
Mon May 11 17:50:33 EDT 2015


On Sun, May 10, 2015 at 7:45 PM, Bill Cole <
rtusers-20090205 at billmail.scconsult.com> wrote:

> On 10 May 2015, at 5:41, Rabin Yasharzadehe wrote:
>
>  First mail looks like this,
>>
>> Sun May 10 12:27:14 2015: Request 242534 was acted upon.
>>
>>> Transaction: Given to rabin by X
>>> Queue: sandbox
>>> Subject: *(No subject given)*
>>> Owner: rabin
>>> Requestors: rabin
>>> Status: new
>>> Ticket: https://rt
>>>
>>>
>> ​the 2nd mail notification look like this,
>>
>> ​​​​Sun May 10 12:27:14 2015: Request 242534 was acted upon.
>>
>>> Transaction: Owner set to rabin by X
>>> Queue: sandbox
>>> Subject: *(No subject given)*
>>> Owner: rabin
>>> Requestors: rabin
>>> Status: new
>>> Ticket: https://rt
>>>
>>
>>
>> ​why is that ? ​
>>
>
> You have 2 different scrips being triggered by the same transaction. You
> can find which scrip is sending which message by looking at the Message-Id
> header. An example from my system:
>
> Message-ID: <rt-4.2.9-96149-1430920514-473.15045-118-0@[rt hostname]>
>
> That's: rt-version-Trans-EpochSec-msecs-Ticket-Scrip-MailSeq at hostname


​Thank you Bill,
your tip was very helpful (and probably also in the future)​

I found the scrip which send the email notification, but it is not familiar
to me,
the condition is "User defined" but i can't understand the Perl code,

can you help please ?

----
my $txn = $self->TransactionObj;
return 0 unless $txn->Field eq "Owner";
return 0 if $txn->NewValue == $txn->Creator;
return 1;
----


​



--
Rabin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20150512/c14daf8b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: screenshot1.png
Type: image/png
Size: 44619 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20150512/c14daf8b/attachment.png>


More information about the rt-users mailing list