#Send a copy to RT owner: True
Set($LoopsToRTOwner , 1);
-#Standard Support Email Address
-Set($RTAddressRegexp , '^support@PLC_RT_HOSTNAME$');
+# Try to figure out CC watchers
+Set($ParseNewMessageForTicketCcs , 1);
+# pattern to self-identify to avoid loops to itself.
+Set($RTAddressRegexp , '^(support|monitor|legal|security)@PLC_RT_HOSTNAME$');
1;
my $country = '';
my $priv = 0;
-if ( $ARGV[0] == 'priv' )
+if ( $ARGV[0] =~ /priv/ )
{
shift @ARGV;
$priv = 1;
($email_address,$realname,$organization)=split(/\,/,$bc_user);
my $UserObj = new RT::User(RT::SystemUser);
- print "adding user: $email_address\n";
+ # print "adding user: $email_address\n";
$UserObj->Create(Name => $email_address,
RealName => $realname,
EmailAddress => $email_address,
},
{
Queue => '0',
- Name => 'correspondance with CC', # loc
- 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} )
- Owner: {$Ticket->OwnerObj->Name}
- Requestor: {$Ticket->RequestorAddresses}
-{ if ($acc=$Ticket->AdminCcAddresses) { " Ticket Ccs: " . $acc } }
-==================================================
-
-{$Transaction->Content()}
-'
- },
- {
- Queue => '0',
Name => 'Create with CC in body', # loc
Description => 'Create with CC in body', # loc
Content => 'RT-Attach-Message: yes
{ GroupDomain => 'RT::System-Role',
GroupType => 'Owner',
Right => 'ModifyTicket', },
-)
+);
+
+@Scrips = (
+ { ScripCondition => 'On Create',
+ ScripAction => 'AutoReply To Requestors',
+ Template => 'AutoReply' },
+);
+
@Templates = (
{ Queue => '0',
Name => 'Autoreply', # loc
{$Transaction->Content()}
'
},
-)
+ {
+ Queue => '0',
+ Name => 'correspondance with CC', # loc
+ 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} )
+ Owner: {$Ticket->OwnerObj->Name}
+ Requestor: {$Ticket->RequestorAddresses}
+{ if ($acc=$Ticket->AdminCcAddresses) { " Ticket Ccs: " . $acc } }
+==================================================
+
+{$Transaction->Content()}
+'
+ },
+);
#!/bin/bash
-echo "syncadmins.sh"
MDIR=/usr/share/monitor
source $MDIR/monitorconfig.sh
${MONITOR_SCRIPT_ROOT}/plcquery.py --type person --withsitename --byrole admin \