The code being used to blacklist autoreplies is not doing anything right now. I did some poking and found a scrip that does what we want. All you need to do is modify your existing autoreply Scrip (there is no global one since every queue uses its own autoreply template). I've modified the mcs-systems queue to use this new exception list. The change is simply to change "Condition" from "On Create" to "User Defined", then put this code in the Condition field (changing the address list to match what you want): my @exceptionList = ('^accounts@', '^systems@', '^support@', '^notify@', 'noreply', 'no-reply', '^root@', 'daemon', 'testneos', '^neos@', 'postmaster', '^help@', '^[email protected]', '^[email protected]', '^[email protected]'); my $transactionType = $self->TransactionObj->Type; my $ticketRequestor = lc($self->TicketObj->RequestorAddresses); if ($transactionType eq 'Create') { return if grep { $ticketRequestor =~ lc($_) } @exceptionList; return 1; } return; -- Craig
You can make this a little nicer by putting the exception list in RT_SiteConfig.pm (this is from the CI): Set( @exceptionList, '(voice-)?no(-)?reply@', '^do(-?)not(-)?reply@', '^condor@', '^root@', '^(ci-)?apc-\d+@', '^apache@', '^nagios@', '[email protected]', '[email protected]', '[email protected]', '^postmaster@', '^mailer-daemon@', '.*@networksolutions.com', 'osg@tick*.globalnoc.iu.edu', '[email protected]', '(goc|security|gratia-operation)@opensciencegrid.org', 'hgclinical@', 'mailman(-owner)?@', '[email protected]', '.*@.*magicjack.com', '[email protected]', '[email protected]' ); And then all your autoreply scrips look like: my $transactionType = $self->TransactionObj->Type; my $ticketRequestor = lc($self->TicketObj->RequestorAddresses); if ($transactionType eq 'Create') { return if grep { $ticketRequestor =~ /$_/i } @{RT->Config->Get('exceptionList')}; return 1; } return; On Nov 16, 2011, at 2:42 PM, Craig Stacey wrote:
The code being used to blacklist autoreplies is not doing anything right now. I did some poking and found a scrip that does what we want. All you need to do is modify your existing autoreply Scrip (there is no global one since every queue uses its own autoreply template).
I've modified the mcs-systems queue to use this new exception list. The change is simply to change "Condition" from "On Create" to "User Defined", then put this code in the Condition field (changing the address list to match what you want):
my @exceptionList = ('^accounts@', '^systems@', '^support@', '^notify@', 'noreply', 'no-reply', '^root@', 'daemon', 'testneos', '^neos@', 'postmaster', '^help@', '^[email protected]', '^[email protected]', '^[email protected]');
my $transactionType = $self->TransactionObj->Type; my $ticketRequestor = lc($self->TicketObj->RequestorAddresses);
if ($transactionType eq 'Create') { return if grep { $ticketRequestor =~ lc($_) } @exceptionList; return 1; } return; -- Craig
True, except then the list becomes something only the sysadmins can edit and not the queue owner. -- Craig On Nov 16, 2011, at 2:58 PM, Ti Leggett wrote:
You can make this a little nicer by putting the exception list in RT_SiteConfig.pm (this is from the CI):
Set( @exceptionList, '(voice-)?no(-)?reply@', '^do(-?)not(-)?reply@', '^condor@', '^root@', '^(ci-)?apc-\d+@', '^apache@', '^nagios@', '[email protected]', '[email protected]', '[email protected]', '^postmaster@', '^mailer-daemon@', '.*@networksolutions.com', 'osg@tick*.globalnoc.iu.edu', '[email protected]', '(goc|security|gratia-operation)@opensciencegrid.org', 'hgclinical@', 'mailman(-owner)?@', '[email protected]', '.*@.*magicjack.com', '[email protected]', '[email protected]' );
And then all your autoreply scrips look like:
my $transactionType = $self->TransactionObj->Type; my $ticketRequestor = lc($self->TicketObj->RequestorAddresses);
if ($transactionType eq 'Create') { return if grep { $ticketRequestor =~ /$_/i } @{RT->Config->Get('exceptionList')}; return 1; } return;
On Nov 16, 2011, at 2:42 PM, Craig Stacey wrote:
The code being used to blacklist autoreplies is not doing anything right now. I did some poking and found a scrip that does what we want. All you need to do is modify your existing autoreply Scrip (there is no global one since every queue uses its own autoreply template).
I've modified the mcs-systems queue to use this new exception list. The change is simply to change "Condition" from "On Create" to "User Defined", then put this code in the Condition field (changing the address list to match what you want):
my @exceptionList = ('^accounts@', '^systems@', '^support@', '^notify@', 'noreply', 'no-reply', '^root@', 'daemon', 'testneos', '^neos@', 'postmaster', '^help@', '^[email protected]', '^[email protected]', '^[email protected]');
my $transactionType = $self->TransactionObj->Type; my $ticketRequestor = lc($self->TicketObj->RequestorAddresses);
if ($transactionType eq 'Create') { return if grep { $ticketRequestor =~ lc($_) } @exceptionList; return 1; } return; -- Craig
Then combine them. Make a localExceptionList in the scrip and make it: my @localExceptionList = ( ); ... return if grep { $ticketRequestor =~ /$_/i } @{RT->Config->Get('exceptionList')}; return if grep { $ticketRequestor =~ lc($_) } @localExceptionList; return 1; Then they get the benefit of the global list that we know about and can add their own if they care to. On Nov 16, 2011, at 3:04 PM, Craig Stacey wrote:
True, except then the list becomes something only the sysadmins can edit and not the queue owner. -- Craig
On Nov 16, 2011, at 2:58 PM, Ti Leggett wrote:
You can make this a little nicer by putting the exception list in RT_SiteConfig.pm (this is from the CI):
Set( @exceptionList, '(voice-)?no(-)?reply@', '^do(-?)not(-)?reply@', '^condor@', '^root@', '^(ci-)?apc-\d+@', '^apache@', '^nagios@', '[email protected]', '[email protected]', '[email protected]', '^postmaster@', '^mailer-daemon@', '.*@networksolutions.com', 'osg@tick*.globalnoc.iu.edu', '[email protected]', '(goc|security|gratia-operation)@opensciencegrid.org', 'hgclinical@', 'mailman(-owner)?@', '[email protected]', '.*@.*magicjack.com', '[email protected]', '[email protected]' );
And then all your autoreply scrips look like:
my $transactionType = $self->TransactionObj->Type; my $ticketRequestor = lc($self->TicketObj->RequestorAddresses);
if ($transactionType eq 'Create') { return if grep { $ticketRequestor =~ /$_/i } @{RT->Config->Get('exceptionList')}; return 1; } return;
On Nov 16, 2011, at 2:42 PM, Craig Stacey wrote:
The code being used to blacklist autoreplies is not doing anything right now. I did some poking and found a scrip that does what we want. All you need to do is modify your existing autoreply Scrip (there is no global one since every queue uses its own autoreply template).
I've modified the mcs-systems queue to use this new exception list. The change is simply to change "Condition" from "On Create" to "User Defined", then put this code in the Condition field (changing the address list to match what you want):
my @exceptionList = ('^accounts@', '^systems@', '^support@', '^notify@', 'noreply', 'no-reply', '^root@', 'daemon', 'testneos', '^neos@', 'postmaster', '^help@', '^[email protected]', '^[email protected]', '^[email protected]');
my $transactionType = $self->TransactionObj->Type; my $ticketRequestor = lc($self->TicketObj->RequestorAddresses);
if ($transactionType eq 'Create') { return if grep { $ticketRequestor =~ lc($_) } @exceptionList; return 1; } return; -- Craig
That's a better idea. -- Craig On Nov 16, 2011, at 3:10 PM, Ti Leggett wrote:
Then combine them. Make a localExceptionList in the scrip and make it:
my @localExceptionList = ( );
...
return if grep { $ticketRequestor =~ /$_/i } @{RT->Config->Get('exceptionList')}; return if grep { $ticketRequestor =~ lc($_) } @localExceptionList; return 1;
Then they get the benefit of the global list that we know about and can add their own if they care to.
On Nov 16, 2011, at 3:04 PM, Craig Stacey wrote:
True, except then the list becomes something only the sysadmins can edit and not the queue owner. -- Craig
On Nov 16, 2011, at 2:58 PM, Ti Leggett wrote:
You can make this a little nicer by putting the exception list in RT_SiteConfig.pm (this is from the CI):
Set( @exceptionList, '(voice-)?no(-)?reply@', '^do(-?)not(-)?reply@', '^condor@', '^root@', '^(ci-)?apc-\d+@', '^apache@', '^nagios@', '[email protected]', '[email protected]', '[email protected]', '^postmaster@', '^mailer-daemon@', '.*@networksolutions.com', 'osg@tick*.globalnoc.iu.edu', '[email protected]', '(goc|security|gratia-operation)@opensciencegrid.org', 'hgclinical@', 'mailman(-owner)?@', '[email protected]', '.*@.*magicjack.com', '[email protected]', '[email protected]' );
And then all your autoreply scrips look like:
my $transactionType = $self->TransactionObj->Type; my $ticketRequestor = lc($self->TicketObj->RequestorAddresses);
if ($transactionType eq 'Create') { return if grep { $ticketRequestor =~ /$_/i } @{RT->Config->Get('exceptionList')}; return 1; } return;
On Nov 16, 2011, at 2:42 PM, Craig Stacey wrote:
The code being used to blacklist autoreplies is not doing anything right now. I did some poking and found a scrip that does what we want. All you need to do is modify your existing autoreply Scrip (there is no global one since every queue uses its own autoreply template).
I've modified the mcs-systems queue to use this new exception list. The change is simply to change "Condition" from "On Create" to "User Defined", then put this code in the Condition field (changing the address list to match what you want):
my @exceptionList = ('^accounts@', '^systems@', '^support@', '^notify@', 'noreply', 'no-reply', '^root@', 'daemon', 'testneos', '^neos@', 'postmaster', '^help@', '^[email protected]', '^[email protected]', '^[email protected]');
my $transactionType = $self->TransactionObj->Type; my $ticketRequestor = lc($self->TicketObj->RequestorAddresses);
if ($transactionType eq 'Create') { return if grep { $ticketRequestor =~ lc($_) } @exceptionList; return 1; } return; -- Craig
participants (2)
-
Craig Stacey -
Ti Leggett