Queue still being CC'ed with $ParseNewMessageForTicketCcs and $RTAddressRegexp

"Cena, Stephen (ext. 300)" <[email protected]> Tue, 10 Jan 2017 20:26:05 +0000
Newsgroups gmane.comp.bug-tracking.request-tracker.user
Message-ID <87F81E27495DC8489147E34A4152E268A494BCCC@MailStore2010.ogp.qvii.com>
I received a request to 'auto CC' clients on tickers (as our customers are only allowed to interface via email). I enabled $ParseNewMessageForTicketCcs<https://rt-wiki.bestpractical.com/wiki/ParseNewMessageForTicketCcs>. We then started getting random RT Bounce messages, and upon investigating I found: https://rt-wiki.bestpractical.com/wiki/RTAddressRegexp . Due to the randomness of the email formats and the quantity of queues, I couldn't write a simple regular expression so I have a somewhat large one:

Set($RTAddressRegexp, '(local-part1@domain1\.tld)|
(local-part2@domain2\.tld)|
(local-part3@domain3\.tld)|
:
:
(local-partN@domainN\.tld)/xi<mailto:local-partN@domainN\.tld)/xi>');

However, when a queue is added as a CC, it still gets added & a user created. When I use https://regex101.com/ , the matching works. Can I not do multi-line regexp in the SiteConfig file? I'm thinking this is something simple I'm overlooking. Thank you in advance.

Stephen Cena
Senior Systems Administrator
Quality Vision International, Inc.
Phone: (585) 544-0450 x300
To notify helpdesk: http://helpdesk.ogp.qvii.com or email: [email protected]<mailto:[email protected]>
To report email issues: [email protected]<mailto:[email protected]>