From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.204.20.129 with SMTP id f1cs141140bkb; Tue, 12 Oct 2010 09:16:17 -0700 (PDT) Received: by 10.236.103.165 with SMTP id f25mr15194507yhg.90.1286900176719; Tue, 12 Oct 2010 09:16:16 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id c4si4449048yha.59.2010.10.12.09.16.16; Tue, 12 Oct 2010 09:16:16 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 1577C19783F0; Tue, 12 Oct 2010 12:16:16 -0400 (EDT) Received: from sam.mediasupervision.de (sam.mediasupervision.de [80.152.3.104]) by rubyforge.org (Postfix) with ESMTP id A45EF1858363 for ; Tue, 12 Oct 2010 12:16:00 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by sam.mediasupervision.de (Postfix) with ESMTP id C9627485CED for ; Tue, 12 Oct 2010 18:15:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at sam.mediasupervision.de Received: from sam.mediasupervision.de ([127.0.0.1]) by localhost (sam.mediasupervision.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zpe2YdBYeYqf for ; Tue, 12 Oct 2010 18:15:59 +0200 (CEST) Received: by sam.mediasupervision.de (Postfix, from userid 1000) id 969A74862F9; Tue, 12 Oct 2010 18:15:59 +0200 (CEST) From: Gregor Hoffleit To: sup-devel Date: Tue, 12 Oct 2010 18:15:59 +0200 Message-Id: <1286900062-sup-8729@sam.mediasupervision.de> User-Agent: Sup/git Content-Transfer-Encoding: 8bit Content-Type: multipart/mixed; boundary="=-1286900159-592871-4874-2260-1-=" MIME-Version: 1.0 Subject: [sup-devel] [PATCH] Bugfix: Correctly split list of mail addresses X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org --=-1286900159-592871-4874-2260-1-= Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline >From the commit message: split_on_commas() fails to work correctly for wrapped header lines: Cc: John Doe , Foo Bar Sup parsed this (in lib/sup/person.rb, Person.from_address_list) as: Cc: John Doe , foo.bar I fixed this by normalizing the whitespace before working the regex in split_on_commas. Regards, Gregor Hoffleit --=-1286900159-592871-4874-2260-1-= Content-Disposition: attachment; filename="0005-Bugfix-Correctly-split-list-of-mail-addresses.patch" Content-Type: application/octet-stream; name="0005-Bugfix-Correctly-split-list-of-mail-addresses.patch" Content-Transfer-Encoding: base64 RnJvbSAzZjI2NzMxM2M0MTE2Yjc1ZWU3ZGU1OTg4MjBiMjAyZjlkMWFkZTY4 IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBHcmVnb3IgSG9mZmxl aXQgPGdyZWdvckBzYW0ubWVkaWFzdXBlcnZpc2lvbi5kZT4KRGF0ZTogVHVl LCAxMiBPY3QgMjAxMCAxODowNDozNyArMDIwMApTdWJqZWN0OiBbUEFUQ0hd IEJ1Z2ZpeDogQ29ycmVjdGx5IHNwbGl0IGxpc3Qgb2YgbWFpbCBhZGRyZXNz ZXMKCnNwbGl0X29uX2NvbW1hcygpIGZhaWxzIHRvIHdvcmsgY29ycmVjdGx5 IGZvciB3cmFwcGVkIGhlYWRlciBsaW5lczoKCiAgICBDYzogSm9obiBEb2Ug PGpvaG4uZG9lQHN1YmRpdmlzaW9uLmV4YW1wbGUuY29tPiwgRm9vIEJhcgoJ PGZvby5iYXJAc3ViZGl2aXNpb24uZXhhbXBs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ZCB3YXkuIGdvdCB0byBo YXZlIGEgcmVtYWluZGVyIGZvciBwdXJwb3NlcyBvZgotLSAKMS41LjYuNQoK --=-1286900159-592871-4874-2260-1-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel --=-1286900159-592871-4874-2260-1-=--