Commit 1936cde3 authored by Kevin Falcone's avatar Kevin Falcone
Browse files

This only works if MailCommand is set to sendmailpipe

parent e235dd26
......@@ -26,10 +26,12 @@ END
my ($fh, $filename) = tempfile();
diag("Tempfile: $filename");
if (RT->can('Config') && RT->Config->can('Set')) {
RT->Config->Set(MailCommand => 'sendmailpipe');
RT->Config->Set(SendmailPath => "cat > $filename");
RT->Config->Set(SendmailBounceArguments => '');
RT->Config->Set(SendmailArguments => '');
} else {
$RT::MailCommand = 'sendmailpipe';
$RT::SendmailPath = "cat > $filename";
$RT::SendmailBounceArguments = '';
$RT::SendmailArguments = '';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment