From patchwork Wed May 18 17:18:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [08/15] send-pull-request: fix greedy auto-cc regex Date: Wed, 18 May 2011 17:18:28 -0000 From: Darren Hart X-Patchwork-Id: 4359 Message-Id: <470435bfda129afa7f6ac9eb5a6b5fff28dc2294.1305738598.git.dvhart@linux.intel.com> To: openembedded-core@lists.openembedded.org A greedy regular expression caused emails to be harvested from patches that were quoted in the commit message. Ensure only tags that start at the beginning of the line are considered for harvesting. NOTE: users are still responsible for verifying the recipients list and to ensure they do not spam people! Signed-off-by: Darren Hart Acked-by: Bruce Ashfield Acked-by: Otavio Salvador Cc: Richard Purdie Cc: Saul Wold Cc: Bruce Ashfield Cc: Otavio Salvador --- scripts/send-pull-request | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scripts/send-pull-request b/scripts/send-pull-request index d265c47..b294d35 100755 --- a/scripts/send-pull-request +++ b/scripts/send-pull-request @@ -90,7 +90,7 @@ done if [ $AUTO -eq 1 ]; then harvest_recipients TO "^[Tt][Oo]: *" harvest_recipients CC "^[Cc][Cc]: *" - harvest_recipients CC "^.*-[Bb][Yy]: *" + harvest_recipients CC "^[A-Z][A-Za-z-]*-[Bb][Yy]: *" fi AUTO_TO="$(git config sendemail.to)"