Re: bsd-mailx incompatibility?
On Fri, 30 Dec 2011 13:03:33 +1300, Richard Hector wrote:
> Some time between lenny and squeeze (and before lucid, but I haven't
> searched further), mail changed its arguments.
>
> lenny: -e Don't send empty mails. If the body is empty skip the
> mail.
> squeeze/lucid: -E Don't send messages with an empty body.
>
> .. and -e is gone.
>
> I looked in the (upstream) changelog, and it shows the addition of the
> -E flag, with no reference to -e whatsoever :-(
>
> This is really annoying, but must have been struck by other people - and
> other scripts.
Mmm, people can read the man page and your scripts can be updated
accordingly :-?
> Any suggestions what the best answer is for a script that needs to be
> deployed on both? I'm deploying it with a locally built debian package,
> so I guess I could check the version in the postinst ... or just build
> different packages with different dependencies, which is probably the
> most reliable, but also the most work :-(
How about using "heirloom-mailx" instead? It seems that both versions
(lenny and squeeze) are still using "-E" for the same thing.
Greetings,
--
Camaleón
Reply to: