Re: Queue still being CC'ed with $ParseNewMessageForTicketCcs and $RTAddressRegexp
Alex Vandiver <[email protected]> Tue, 10 Jan 2017 17:21:43 -0800
| Newsgroups | gmane.comp.bug-tracking.request-tracker.user |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 10 Jan 2017 20:26:05 +0000 "Cena, Stephen (ext. 300)" <[email protected]> wrote: > Set($RTAddressRegexp, '(local-part1@domain1\.tld)| > (local-part2@domain2\.tld)| > (local-part3@domain3\.tld)| > : > : > (local-partN@domainN\.tld)/xi'); If you want to use the /x modifier, provide a regular expression object, not a string: Set($RTAddressRegexp, qr/ (local-part1@domain1\.tld)| (local-part2@domain2\.tld)| (local-part3@domain3\.tld)| : : (local-partN@domainN\.tld) /xi ); Tangentially, the inner grouping ()s are not necessary here, but you will want to anchor the regular expression to the start and end of what it's matching. And you'll need to escape the "@" signs: Set($RTAddressRegexp, qr/ ^ ( local-part1\@domain1\.tld | local-part2\@domain2\.tld | local-part3\@domain3\.tld | : | : | local-partN\@domainN\.tld ) $ /xi ); - Alex