I most be missing something
Trying to retrieve array from site config for sendemail_local overlay.
These set command work great in the SiteConfig except they only take one value.
Set(AcceptSubjectTagRegex, qr{compass\@whatever\.com});
Set(NoSubjectChangeTagRegex, qr{\@whereever\.com});
retrieved using
my $accept_domain = RT->Config->Get(‘AcceptSubjectTagRegex’);
my $nosubchange_email = RT->Config->Get(‘NoSubjectChangeTagRegex’);
Trying to convert to an array like
Set(@TestNoSubjectChangeTagRegex, qw(@whatever.com$ @corp.whereever.com$));
retrieved using
my @testnosubchange_email = RT->Config->Get(‘TestNoSubjectChangeTagRegex’);
When used like this I get the message that the value is undefined rendering my foreach loop useless. Seee below foreach loop
foreach $key (@testnosubchange_email) {
$RT::Logger->info("Test Key is $key hash @testnosubchange_email\n");
if ($user->EmailAddress =~ $key) {
$RT::Logger->info("Test past key is $key\n");
last;
}
}
Can someone tell me what I am doing wrong?
Thanks