[sup-devel] [PATCH] Bugfix: Correctly split list of mail addresses
Gregor Hoffleit
gregor at hoffleit.de
Tue Oct 12 12:15:59 EDT 2010
>From the commit message:
split_on_commas() fails to work correctly for wrapped header lines:
Cc: John Doe <john.doe at subdivision.example.com>, Foo Bar
<foo.bar at subdivision.example.com>
Sup parsed this (in lib/sup/person.rb, Person.from_address_list) as:
Cc: John Doe <john.doe at subdivision.example.com>,
foo.bar <foo.bar at subdivision.example.com>
I fixed this by normalizing the whitespace before working the
regex in split_on_commas.
Regards,
Gregor Hoffleit
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Bugfix-Correctly-split-list-of-mail-addresses.patch
Type: application/octet-stream
Size: 1260 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-devel/attachments/20101012/21433583/attachment-0001.obj>
More information about the Sup-devel
mailing list