<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 10, 2015 at 7:45 PM, Bill Cole <span dir="ltr"><<a href="mailto:rtusers-20090205@billmail.scconsult.com" target="_blank">rtusers-20090205@billmail.scconsult.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On 10 May 2015, at 5:41, Rabin Yasharzadehe wrote:<br>
<br>
</span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">
First mail looks like this,<br>
<br>
Sun May 10 12:27:14 2015: Request 242534 was acted upon.<br>
</span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">
Transaction: Given to rabin by X<br>
Queue: sandbox<br></span>
Subject: *(No subject given)*<span class=""><br>
Owner: rabin<br>
Requestors: rabin<br>
Status: new<br>
Ticket: <a href="https://rt" target="_blank">https://rt</a><br>
<br>
</span></blockquote><span class="">
<br>
​the 2nd mail notification look like this,<br>
<br>
​​​​Sun May 10 12:27:14 2015: Request 242534 was acted upon.<br>
</span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">
Transaction: Owner set to rabin by X<br>
Queue: sandbox<br></span>
Subject: *(No subject given)*<span class=""><br>
Owner: rabin<br>
Requestors: rabin<br>
Status: new<br>
Ticket: <a href="https://rt" target="_blank">https://rt</a><br>
</span></blockquote>
<br>
<br>
​why is that ? ​<br>
</blockquote>
<br>
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:<br>
<br>
Message-ID: <rt-4.2.9-96149-1430920514-473.15045-118-0@[rt hostname]><br>
<br>
That's: rt-version-Trans-EpochSec-msecs-Ticket-Scrip-MailSeq@hostname</blockquote></div><br><div class="gmail_default" style="font-family:tahoma,sans-serif">​Thank you Bill, <br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">your tip was very helpful (and probably also in the future)​<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I found the scrip which send the email notification, but it is not familiar to me, <br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">the condition is "User defined" but i can't understand the Perl code, <br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">can you help please ? <br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br><span style="font-family:monospace,monospace">----<br>my $txn = $self->TransactionObj;<br>return 0 unless $txn->Field eq "Owner";<br>return 0 if $txn->NewValue == $txn->Creator;<br>return 1;</span><br><span style="font-family:monospace,monospace">----</span><br><br></div><img src="cid:ii_i9kfaj8a0_14d44f4d0f010f8b" height="563" width="513"><br>​<br><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><br><br><span style="font-family:monospace">--<br>Rabin</span></div></div></div>
</div></div>