[PATCH] patchbomb: allow multiple addresses in a single --to/cc/bcc argument

Marti Raudsepp marti at juffo.org
Sun Nov 1 09:02:43 CST 2009


On Sun, Nov 1, 2009 at 11:12 AM, Sune Foldager <cryo at cyanite.org> wrote:
> [...] I still find the feature a bit weird. I mean, then we should also
> change other commands which take multiple arguments to accept comma
> separated lists? Or is this because the configuration is done with
> commas (due to the way the config format works, I guess)?

I'm having a hard time understanding where you are coming from.

*EVERY* single email client allows you to specify multiple recipients
as a comma-separated list. Even Mercurial accepts comma-separated
lists when to/cc are specified in the .hgrc file, or when input
interactively into the prompt. 'git send-email' supports multiple
addresses separated by commas. Even if you write your MIME headers by
hand, you can use commas. This is a universal convention in email
software.

But suddenly, Mercurial breaks this convention in --to/--cc and
silently throws away everyone but the 1st recipient!

So... The only unsurprising alternative is to nag the user "abort:
don't use commas in --cc or --to arguments"
But why should we do that if we can be helpful instead?

Regards,
Marti


More information about the Mercurial-devel mailing list