diff options
author | mark <mark> | 2012-01-19 00:50:14 +0000 |
---|---|---|
committer | mark <mark> | 2012-01-19 00:50:14 +0000 |
commit | 697df286084b490b9371471ae736337776c248e4 (patch) | |
tree | 19372396edbd1ba2c4c3e24ac9c86261e6135f9f /rt/lib/RT/Interface/Web_Vendor.pm | |
parent | 0264f4933ae74d6eaceebbf0d73903b143bfea6c (diff) |
RT NonCustomerEmailRegexp option, #15847
Diffstat (limited to 'rt/lib/RT/Interface/Web_Vendor.pm')
-rw-r--r-- | rt/lib/RT/Interface/Web_Vendor.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rt/lib/RT/Interface/Web_Vendor.pm b/rt/lib/RT/Interface/Web_Vendor.pm index 129f69fab..ee8c34b55 100644 --- a/rt/lib/RT/Interface/Web_Vendor.pm +++ b/rt/lib/RT/Interface/Web_Vendor.pm @@ -118,6 +118,14 @@ sub ProcessTicketCustomers { } ### + #remove any declared non-customer addresses + ### + + my $exclude_regexp = RT->Config->Get('NonCustomerEmailRegexp'); + @Requestors = grep { not $_->EmailAddress =~ $exclude_regexp } @Requestors + if defined $exclude_regexp; + + ### #link ticket (and requestors) to customers ### |