Index:
[thread]
[date]
[author]
[stats]
From: markus schnalke <meillo@marmaro.de>
To : <masqmail@marmaro.de>
Date: Mon, 06 Dec 2010 18:46:09 +0100
Re: [masqmail] -t option and cmdline arguments
[2010-11-01 18:06] markus schnalke <meillo@marmaro.de>
>
> the -t option tells masqmail to read the recipients from the mail
> headers. (Usually the headers are not looked at but the recipients are
> taken on the command line.)
>
> The case of question is what to do if -t is given *and* addresses on
> the command line. Here the other MTAs behave differently:
>
> - smail, exim, masqmail (all the same family): substract the cmdline
> recipients from the recipients in the headers.
>
> - postfix: add the cmdline recipients to the recipients in the
> headers, which is the contrary. (Earlier versions of postfix failed
> if -t was given together with recipients on the cmdline.)
>
> - sendmail: behaved differently, depending on the version.
> As neither substracting nor adding the cmdline addresses seems to be
> the right behavior, I suggest to simply ignore them. The idea behind
> this is seeing -t as ``read recipient addresses from headers *instead*
> of from the cmdline arguments''. As masqmail doesn't look at the
> headers in the normal (without -t) case, it shouldn't look at the
> addresses given on the cmdlin in the -t case.
While implementing the new behavior I found that ignoring the cmdline
arguments is slightly more complicated than adding them. Hence
masqmail will now add them, similar to postfix.
The way to see it is:
(1) Command line address arguments are always recipients.
(2) With -t the headers are scanned for recipients, too.
The case of recipient arguments and -t is rare and anyway incompatible
among MTAs. I decided to go for the most simple code.
The change will be part of the upcoming 0.3.1 release.
meillo
Index:
[thread]
[date]
[author]
[stats]