[Rt-commit] rt branch, 4.2/mail-sending, updated. rt-4.1.5-48-g072bd53
Alex Vandiver
alexmv at bestpractical.com
Mon Dec 17 13:45:57 EST 2012
The branch, 4.2/mail-sending has been updated
via 072bd5391ccc53ec41354c3eb691efcb3e29a7c6 (commit)
from 4481d8365f14ab39c63c918f0d28c7d5d05a5378 (commit)
Summary of changes:
lib/RT/Config.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 072bd5391ccc53ec41354c3eb691efcb3e29a7c6
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Mon Dec 17 13:45:54 2012 -0500
We also support the (undocumented) option of MailCommand as a coderef
diff --git a/lib/RT/Config.pm b/lib/RT/Config.pm
index 23c6cdd..eb844f5 100644
--- a/lib/RT/Config.pm
+++ b/lib/RT/Config.pm
@@ -597,7 +597,8 @@ our %META = (
my $self = shift;
my $value = $self->Get('MailCommand');
$RT::Logger->error("Unknown outgoing mail configuration: $value")
- unless $value =~/^(sendmail|sendmailpipe|qmail|testfile)$/;
+ unless ref($value) eq "CODE"
+ or $value =~/^(sendmail|sendmailpipe|qmail|testfile)$/;
},
},
MailPlugins => { Type => 'ARRAY' },
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list