Re: [PATCH 2/3] git send-email: do not ask questions when --compose is used.
- From
- Francis Galiegue <fg@one2team.com>
- Date
- Nov 1, 2008, 17:34 UTC
- Message-ID
- <200811011834.32702.fg@one2team.com>
- In-Reply-To
- <20081101170817.GC26229@artemis.corp>
Le Saturday 01 November 2008 18:08:17 Pierre Habouzit, vous avez écrit : [...]
Show 5 quoted lines
> > To: John Doe <some.address@some.tld>, Random Joe <random.joe@abc.def>, > Superman <batman@nyc.us>, > "Someone with a comma, inside its tag name" <a@b.com> >
fg@erwin ~ $ cat t.txt
To: John Doe <some.address@some.tld>, Random Joe <random.joe@abc.def>,
Superman <batman@nyc.us>, "Someone with a comma, inside its tag name"
<a@b.com>
fg@erwin ~ $ <t.txt perl -ne 's,^To:\s*,,i; @mails = m/\s*((?:"[^"]+")?
\s*<[^@]+@[^@]+>)\s*,?/g; END { print join("\n", @mails) . "\n"}'
<some.address@some.tld>
<random.joe@abc.def>
<batman@nyc.us>
"Someone with a comma, inside its tag name" <a@b.com>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 fge@one2team.com 40 avenue Raymond Poincaré 75116 Paris