On 08/06/2010 08:23 PM, Victor Victrolla wrote:
I was actually pretty confused about what the RTAddressRegexp should
look like, and how it should be written (in quotes, in //'s, etc).
Set($RTAddressRegexp , '*[email protected]');
Quotes are fine. The problem is indeed that *[email protected] isn't a
valid regex. It's also unlikely what you actually want.
$RTAddressRegexp should match only the addresses that RT uses, not any
of your users' addresses. As perldoc etc/RT_Config.pm says:
"C<$RTAddressRegexp> is used to make sure RT doesn't add itself as a
ticket CC if the setting above is enabled. It is important that you set
this to a regular expression that matches all addresses used by your RT.
This lets RT avoid sending mail to itself."
Given these settings:
Set($CorrespondAddress , '[email protected]');
Set($CommentAddress , '[email protected]');
You likely want: Set($RTAddressRegexp, '^[email protected]$');
If you've configured other queue addresses already, you should add them
as well, like so:
Set($RTAddressRegexp, '^(?:rt|other|athird)@censored.com$');
Hope that helps,
Thomas
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com