[rt-users] Email Priority.

Mark Jenks mark.jenks at iodincorporated.com
Thu Aug 5 15:29:46 EDT 2010


Okay, I'm looking at debug.  It never runs my new Global Scrip of "On
Create Set Priority".

-Mark

[Thu Aug  5 19:28:21 2010] [info]:
<rt-3.8.8-12447-1281036500-344.1543-4-0 at iodincorporated.com> #1543/22696
- Scrip 4 On Create Notify AdminCcs
(/opt/rt3/bin/../lib/RT/Action/SendEmail.pm:300)
[Thu Aug  5 19:28:21 2010] [info]:
<rt-3.8.8-12447-1281036500-344.1543-4-0 at iodincorporated.com> No
recipients found. Not sending.
(/opt/rt3/bin/../lib/RT/Interface/Email.pm:352)
[Thu Aug  5 19:28:21 2010] [info]:
<rt-3.8.8-12447-1281036500-1485.1543-19-0 at iodincorporated.com>
#1543/22696 - Scrip 19 On Create Notify Ccs
(/opt/rt3/bin/../lib/RT/Action/SendEmail.pm:300)
[Thu Aug  5 19:28:21 2010] [info]:
<rt-3.8.8-12447-1281036500-1485.1543-19-0 at iodincorporated.com> No
recipients found. Not sending.
(/opt/rt3/bin/../lib/RT/Interface/Email.pm:352)
[Thu Aug  5 19:28:21 2010] [info]:
<rt-3.8.8-12447-1281036501-1702.1543-3-0 at iodincorporated.com>
#1543/22696 - Scrip 3 On Create Notify Requestors
(/opt/rt3/bin/../lib/RT/Action/SendEmail.pm:300)
[Thu Aug  5 19:28:21 2010] [info]:
<rt-3.8.8-12447-1281036501-1702.1543-3-0 at iodincorporated.com> sent  To:
mark.jenks at iodincorporated.com
(/opt/rt3/bin/../lib/RT/Action/SendEmail.pm:331)
[Thu Aug  5 19:28:21 2010] [info]: Ticket 1543 created in queue
'Systems' by mark.jenks (/opt/rt3/bin/../lib/RT/Ticket_Overlay.pm:671)

-----Original Message-----
From: Mark Jenks 
Sent: Thursday, August 05, 2010 11:39 AM
To: Mark Jenks; Christian Loos
Cc: rt-users at lists.bestpractical.com
Subject: RE: [rt-users] Email Priority.

Anyone have any suggestions why the below is not working?

-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Mark
Jenks
Sent: Wednesday, August 04, 2010 1:00 PM
To: Christian Loos
Cc: rt-users at lists.bestpractical.com
Subject: Re: [rt-users] Email Priority.

That is exactly what I have an when I send an email into the queue with
the priority on, it doesn't set it.    I see it when I show full
headers.

How do you debug a scrip?

-----Original Message-----
From: Christian Loos [mailto:cloos at netcologne.de] 
Sent: Wednesday, August 04, 2010 10:48 AM
To: Mark Jenks
Cc: rt-users at lists.bestpractical.com
Subject: Re: Email Priority.

You have to create a new scrip with:

Description: On Create Set Priority
Condition: On Create
Action: User Defined
Template: Global template: Blank
Stage: TransactionCreate

and my code in 'Custom action cleanupcode'.

-Chris

Am 04.08.2010 17:28, schrieb Mark Jenks:
> Okay, I modified the original "On create notify requestors" and put
that
> code in.  Got nothing.
> Created a new "On create set priority" and it still didn't do
anything.
> 
> -Mark
> 
> -----Original Message-----
> From: Christian Loos [mailto:cloos at netcologne.de] 
> Sent: Wednesday, August 04, 2010 3:54 AM
> To: Mark Jenks
> Cc: rt-users at lists.bestpractical.com
> Subject: Re: Email Priority.
> 
> Create a scrip 'On Create' with the following 'Custom action cleanup
> code':
> 
> my $ticket;
> my $attachment = $self->TransactionObj->Attachments->First;
> return 1 unless $attachment;
> my $prio = $attachment->GetHeader('Priority');
> return 1 unless $prio;
> 
> if ( $prio eq 'Urgent' ) {
>   $ticket->SetPriority(50);
> }
> return 1;
> 
> -chris
> 
> Am 03.08.2010 20:17, schrieb Mark Jenks:
>> Is there a way to set a ticket priority to 50 if the user sets the
> Email
>> from outlook to Urgent?
>>
>>  
>>
>> Inside of the headers of the email exists "Priority: Urgent".
>>
>>  
>>
>> Can that be checked and acted on when a ticket gets created?
>>

CONFIDENTIALITY NOTICE:  The information contained in this email
message, including any attachments, may be 
privileged, confidential and otherwise protected from disclosure.  If
the reader of this message is not the 
intended recipient, you are hereby notified that any use, dissemination,
distribution or copying of this 
message, including any attachments, is strictly prohibited.  If you have
received this email message in 
error, please notify the sender by reply email and delete/destroy the
email message, including attachments, 
and any copies thereof.  Although we have taken precautions to minimize
the risk of transmitting viruses via 
email and attachments thereto, we do not guarantee that either is
virus-free, and we accept no liability for 
any damages sustained as a result of any such viruses.

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

CONFIDENTIALITY NOTICE:  The information contained in this email message, including any attachments, may be 
privileged, confidential and otherwise protected from disclosure.  If the reader of this message is not the 
intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this 
message, including any attachments, is strictly prohibited.  If you have received this email message in 
error, please notify the sender by reply email and delete/destroy the email message, including attachments, 
and any copies thereof.  Although we have taken precautions to minimize the risk of transmitting viruses via 
email and attachments thereto, we do not guarantee that either is virus-free, and we accept no liability for 
any damages sustained as a result of any such viruses.



More information about the rt-users mailing list