<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 31 July 2013 18:37, Kevin Falcone <span dir="ltr"><<a href="mailto:falcone@bestpractical.com" target="_blank">falcone@bestpractical.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">I've generally just used RT::Action::Notify and --action-arg AdminCc to<br></div>
notify the AdminCcs (or other arguments as needed).  For Notify, you<br>
must use --transaction first or --transaction last and keep in mind<br>
that Notify.pm obeys the NotifyActor note. RecordCorrespondence might<br>
work fine, I've just never used it.  Using SendEmail directly is<br>
almost never what you want.<br>
<br>
Keep in mind however that any code that records a transaction on a<br>
ticket (so RecordCorrespondence, which records a transaction by<br>
calling the Correspond method) is going to update LastUpdated on the<br>
ticket.  You're updating the ticket, so LastUpdated moves.<br>
<br>
Sending mail without that is likely to be *very* difficult.  You<br>
likely actually want a Condition module that checks for a status<br>
change or checks for the first notification to do your calculations,<br>
or to record something in a custom field for easier querying.<br><br></blockquote><div><br></div><div style="font-family:arial,sans-serif;font-size:13px">I think I've got the Condition module worked out.  Using two custom fields that update on correspondence (if we update it sets the StaffUpdate to Y and increments a counter).  If the customer updates it sets StaffUpdate to N and resets the counter.  This in conjunction with the LastUpdated and other fields seems very useful for the condition checking.<br>

</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">I've attempted to use RT::Action::Notify briefly and then realized I don't know how to use it because it looks like it calls functions in RT::Action::SendEmail and tries to parse a template but I don't know how to tell it what template to use.  When I run it with rt-crontool it basically chokes on the Parse part of RT::Action::SendEmail.  Do you know of any functioning examples using Notify and SendEmail?  I've been googling but this seems to be a bit of a gray area apparently.  I see posts about people asking but no examples of it working. </span> </div>

</div><br clear="all"><div style>Thanks!</div><div style><br></div>-- <br><div>Landon Stewart <LandonStewart@Gmail.com><br></div>
</div></div>