X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FConfig.pm;h=3f8581cc5a1b0fac0a0b07011d2c9259b2cd43da;hb=7b125e587a4d1ee0aca692e23ea7897f671855ae;hp=bec82c474120e44780a3576a23a56300f44455f9;hpb=7d9c599b7caaa5c0c6d678756d423ee80499c2c0;p=freeside.git diff --git a/rt/lib/RT/Config.pm b/rt/lib/RT/Config.pm index bec82c474..3f8581cc5 100644 --- a/rt/lib/RT/Config.pm +++ b/rt/lib/RT/Config.pm @@ -333,6 +333,22 @@ our %META = ( }, }, + RTAddressRegexp => { + Type => 'SCALAR', + PostLoadCheck => sub { + my $self = shift; + my $value = $self->Get('RTAddressRegexp'); + return if $value; + + $RT::Logger->error( + 'The RTAddressRegexp option is not set in the config.' + .' Not setting this option results in additional SQL queries to' + .' check whether each address belongs to RT or not.' + .' It is especially important to set this option if RT recieves' + .' emails on addresses that are not in the database or config.' + ); + }, + }, # User overridable mail options EmailFrequency => { Section => 'Mail', #loc @@ -349,6 +365,16 @@ our %META = ( ] } }, + NotifyActor => { + Section => 'Mail', #loc + Overridable => 1, + SortOrder => 2, + Widget => '/Widgets/Form/Boolean', + WidgetArguments => { + Description => 'Outgoing mail', #loc + Hints => 'Should RT send you mail for ticket updates you make?', #loc + } + }, # this tends to break extensions that stash links in ticket update pages Organization => { @@ -821,7 +847,7 @@ sub SetFromConfig { # XXX skip references to scalars or other references. # Otherwie 5.10 goes boom. may be we should skip any # reference - return if ref($entry) eq 'SCALAR' || ref($entry) eq 'REF'; + next if ref($entry) eq 'SCALAR' || ref($entry) eq 'REF'; my $entry_ref = *{$entry}{ ref($ref) }; next unless $entry_ref;