Commit 5280d95d authored by Kevin Falcone's avatar Kevin Falcone
Browse files

Modern 3.8 and 4.0 explicitly > /dev/null in sendmailpipe

This means any data cat'ed onto a tempfile actually goes to /dev/null
We should fix this when we switch to RT::Test
parent 2f614e46
......@@ -27,12 +27,12 @@ END
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(SendmailPath => "cat > $filename;");
RT->Config->Set(SendmailBounceArguments => '');
RT->Config->Set(SendmailArguments => '');
} else {
$RT::MailCommand = 'sendmailpipe';
$RT::SendmailPath = "cat > $filename";
$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