Re: [rt-users] Scrip for escalating priority based on to address from header

2008-01-31 Thread Kimberly McKinnis
ctical.com Subject: Re: [rt-users] Scrip for escalating priority based on to address from header At Wednesday 1/30/2008 06:06 PM, Kimberly McKinnis wrote: >my $to = >$self->TicketObj->Transactions->First->Message->First->GetHeader('To'); >if ($to =~/[EMAIL PR

Re: [rt-users] Scrip for escalating priority based on to address from header

2008-01-31 Thread Stephen Turner
At Wednesday 1/30/2008 06:06 PM, Kimberly McKinnis wrote: >my $to = >$self->TicketObj->Transactions->First->Message->First->GetHeader('To'); >if ($to =~/[EMAIL PROTECTED]/) >{ >$self->TicketObj->SetPriority(98); >} >return 1; > >It doesn't error, but it seems to be ignored entirely. I used 'my',

Re: [rt-users] Scrip for escalating priority based on to address from header

2008-01-30 Thread Kimberly McKinnis
Global symbol "$to" requires explicit package name at (eval 2305) line 2. (/usr/lib/rt/RT/Action/UserDefined.pm:81) From: Todd Chapman [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 30, 2008 11:58 AM To: Kimberly

Re: [rt-users] Scrip for escalating priority based on to address from header

2008-01-30 Thread Todd Chapman
t/RT/Action/UserDefined.pm:81) > > -- > *From:* Todd Chapman [mailto:[EMAIL PROTECTED] > *Sent:* Wednesday, January 30, 2008 11:58 AM > *To:* Kimberly McKinnis > *Cc:* rt-users@lists.bestpractical.com > *Subject:* Re: [rt-users] Scrip for escalati

Re: [rt-users] Scrip for escalating priority based on to address from header

2008-01-30 Thread Kimberly McKinnis
esday, January 30, 2008 11:58 AM To: Kimberly McKinnis Cc: rt-users@lists.bestpractical.com Subject: Re: [rt-users] Scrip for escalating priority based on to address from header Why do you have a package statement? And $Ticket should be $self->TicketObj. On 1/30/08, Kimberly McKinnis <

Re: [rt-users] Scrip for escalating priority based on to address from header

2008-01-30 Thread Todd Chapman
Why do you have a package statement? And $Ticket should be $self->TicketObj. On 1/30/08, Kimberly McKinnis <[EMAIL PROTECTED]> wrote: > > I've read up on priorities, but nothing I've seen quite fits my need. We > have two email addresses that both go to the same queue, an alert email and > a sup

[rt-users] Scrip for escalating priority based on to address from header

2008-01-30 Thread Kimberly McKinnis
I've read up on priorities, but nothing I've seen quite fits my need. We have two email addresses that both go to the same queue, an alert email and a support email. The alert email also SMS's my mobile phone. I'd like to have RT check the to: address from the header and set anything to the alert e