Sendmail arguments dropped

Hello.
Am I lucky? When I start any task then I have to patch something :slight_smile:

RT_SiteConfig:
Set($MailCommand , ‘sendmail’);
Set($SendmailArguments , ‘-oi -t -fbar@foo.bar’);

This sendmail arguments go a long way and at the end
exec($exe, @args, @to);

Before we call $entity->send we don’t split args in parts so sendmail
get in ARGV single part ‘-oi -t -fbar@foo.bar’ instead of array ‘-oi’,
‘-t’, ‘-fbar@foo.bar’. :frowning: sendmail don’t look in it at all :frowning:

Heh.
In EmailParser.pm:349, RT forget about SendmailArguments!!!
In Interface/Mail.pm:192 too.

Patch attached fix only one place.

	Best regards. Ruslan.

rt3.sendmail_args.patch (488 Bytes)

A little more on.

I think, my patch is work around only. Right fix would be change option
$SendmailArguments from scalar to an array and join it on piping instead
of spliting on ->send(). Am I wrong?

	Best regards. Ruslan.

Ruslan U. Zakirov wrote: