Sure. Keep in mind that if this is something you want to happen in ALL
Queues, Then you don’t need thisw scrip. RT offers this as a Global option.
Anyway, here is the one for On Create from emails:
#Custom Action cleanup Code:
Set up variables for parsing CC’s
my $trans = $self->TransactionObj;
my $ticket = $self->TicketObj;
my $user = RT::User->new($RT::SystemUser);
Parse the email CC’s into ticket “CC” Watchers
foreach $header ($trans->Attachments->First->GetHeader(“Cc”))
foreach $cc ( split /,/, $header )
($addr) = $cc =~ /([\w-]+?@[\w-]+?.[\w]+)/;
$ccname = substr($addr, 0,length($addr)-8);
$addr = $user->CanonicalizeEmailAddress($ccname);
$ticket->AddWatcher( Type => ‘Cc’, Email => $ccname );
For the "On Correspondence one, you merely add an “unless” after the $addr
unless ($ticket->IsWatcher(Type => 'Cc', EmailAddress => $addr))
$ticket->AddWatcher( Type => 'Cc', Email => $ccname );
So anyway, you can put this code into any Queue you want this to happen in,
but again, if you want all Queue to have this, then its better to turn on
that option in you config settings.
LBNLOn Sun, May 2, 2010 at 9:34 AM, HS email@example.com wrote:
could you provide this scrip, please? Would like to give it a try.
— Kenneth Crocker firstname.lastname@example.org schrieb am *Fr, 30.4.2010:
Von: Kenneth Crocker email@example.com
Betreff: Re: [rt-users] merge users(?)
An: “who else” firstname.lastname@example.org
Datum: Freitag, 30. April, 2010 18:34 Uhr
Did you consider just making the extra Users Cc’s on the Ticket? Then all
you would have to do is make sure there was a notification scrip for Cc’s on
whatever. We have a scrip that will “Add a Ticket CC” for all Cc’s on an
email when a ticket is created or on correspondence. That way, you don’t
have to have a CF and monitor/maintain it. I think it simpler.
*On Fri, Apr 30, 2010 at 9:27 AM, who else <email@example.com://firstname.lastname@example.org
who else wrote:
it seems it works.
I worked it out this way:
There is a scrip that can do this:
You create a custom user field called othermail and populate it with the
people you want to get the email. All, the other IBMers will be added as
requestors whenever one of them requests. We’ve done this for some
supervisors who want to keep an eye on all calls made by their staff.
Unfortunately this only works for ONE additional othermail but not two.
only accepts the first emailadress. Anybody out here, to point me in the
right direction please, am not a programmer, so i’d appreciate your
Thank you very much.
PS: Besides this it works like a charm
*View this message in context:
*Sent from the Request Tracker - User mailing list archive at Nabble.com.
Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com