# Re: [PATCH] git-send-email: handle email address with quoted comma

1 messages from 2008-12-19 to 2008-12-19. Participants: Matt Kraai.
Thread: https://gitlist.dev/t/16795

## Matt Kraai, 2008-12-19 06:38

Subject: Re: [PATCH] git-send-email: handle email address with quoted comma
Message-ID: <20081219063806.GA5425@ftbfs.org>
URL: https://gitlist.dev/e/20081219063806.GA5425%40ftbfs.org

```
Howdy,

> +sub split_addrs($) {
> +    my ($addrs) = @_;
> +
> +	return &quotewords('\s*,\s*', 1, $addrs);
> +}
> +

According to the documentation of Text::ParseWords,

 The &*quotewords() functions simply call &parse_line(), so if you're
 only splitting one line you can call &parse_line() directly and save
 a function call.

so quotewords could be replaced by parse_line.  I don't know if that's
less readable, though.

-- 
Matt                                                 http://ftbfs.org/

```
