Subject: Re: [PATCH 2/3] git send-email: do not ask questions when --compose is used.

From: Francis Galiegue <[email-masked]>
Date: Sat, 1 Nov 2008 18:34:32 +0100

Le Saturday 01 November 2008 18:08:17 Pierre Habouzit, vous avez écrit :
[...]
>
> To: John Doe <[email-masked]>, Random Joe <[email-masked]>,
>   Superman <[email-masked]>,
>   "Someone with a comma, inside its tag name" <[email-masked]>
>

fg@erwin ~ $ cat t.txt
To: John Doe <[email-masked]>, Random Joe <[email-masked]>, 
Superman <[email-masked]>, "Someone with a comma, inside its tag name" 
<[email-masked]>
fg@erwin ~ $ <t.txt perl -ne 's,^To:\s*,,i; @mails = m/\s*((?:"[^"]+")?
\s*<[^@]+@[^@]+>)\s*,?/g; END { print join("\n", @mails) . "\n"}'
<[email-masked]>
<[email-masked]>
<[email-masked]>
"Someone with a comma, inside its tag name" <[email-masked]>

That's regex, not especially perl ;)

-- 
Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 6 83 87 78 75
Tel : +33 (0) 1 78 94 55 52
[email-masked]
40 avenue Raymond Poincaré
75116 Paris