X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=rt3%2Frtconf.d%2Fplanetlab.pl;h=60268452c5451dd5770c700244b47e245c90685c;hb=9a6ec9330006b189d81d092c9945853e73ce10bf;hp=3b07d498587529b2a281c50b4499870d551ccd87;hpb=2e61c4611155f9dc1f88f5b0d372eeb31400f317;p=monitor.git diff --git a/rt3/rtconf.d/planetlab.pl b/rt3/rtconf.d/planetlab.pl index 3b07d49..6026845 100644 --- a/rt3/rtconf.d/planetlab.pl +++ b/rt3/rtconf.d/planetlab.pl @@ -33,6 +33,12 @@ { ScripCondition => 'On Create', ScripAction => 'AutoReply To Requestors', Template => 'AutoReply' }, + { ScripCondition => 'On Correspond', + ScripAction => 'Notify Requestors, Ccs and AdminCcs', + Template => 'PlanetLab Correspond with CC in body', }, + { ScripCondition => 'On Create', + ScripAction => 'Notify AdminCcs', + Template => 'PlanetLab Create with CC in body', }, ); @Templates = ( @@ -67,19 +73,58 @@ Thank you, {$Transaction->Content()} ' }, - { + { Queue => '0', - Name => 'correspondance with CC', # loc + Name => 'PlanetLab Correspond with CC in body', Description => 'Message with the recipients in the header', # loc Content => 'RT-Attach-Message: yes -Email Recipients (see http://PLC_RT_HOSTNAME/rt3/Ticket/Display.html?id={$Ticket->id} ) +Email Recipients (see http://PLC_RT_HOSTNAME/support ) + Owner: {$Ticket->OwnerObj->Name} + Requestor: {$Ticket->RequestorAddresses} +{ if ($acc=$Ticket->AdminCcAddresses) { " Ticket Ccs: " . $acc } } + +================================================== + +{$Transaction->Content()} +' + }, + { + Queue => '0', + Name => 'PlanetLab Create with CC in body', + Description => 'Create with CC in body', # loc + Content => 'RT-Attach-Message: yes + +Email Recipients (see http://PLC_RT_HOSTNAME/support ) Owner: {$Ticket->OwnerObj->Name} Requestor: {$Ticket->RequestorAddresses} { if ($acc=$Ticket->AdminCcAddresses) { " Ticket Ccs: " . $acc } } + ================================================== +{$Transaction->CreatedAsString}: Request {$Ticket->id} was acted upon. +Transaction: {$Transaction->Description} + +Subject: {$Transaction->Subject || $Ticket->Subject || "(No subject given)"} + {$Transaction->Content()} ' - }, + }, ); + +@Queues = ( + { Name => 'monitor', + Description => 'Queue for monitor', + CorrespondAddress => 'monitor@PLC_RT_HOSTNAME', + CommentAddress => '', }, + + { Name => 'security', + Description => 'Queue for security issues', + CorrespondAddress => 'security@PLC_RT_HOSTNAME', + CommentAddress => '', }, + + { Name => 'legal', + Description => 'Queue for legal issues', + CorrespondAddress => 'legal@PLC_RT_HOSTNAME', + CommentAddress => '', }, +)