Re: [PATCH] git send-email: edit recipient addresses with the --compose flag

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Francis Galiegue <fg@...>
Cc: Tait <git.git@...>, Git Mailing List <git@...>
Date: Tuesday, November 11, 2008 - 4:47 pm

On Tue, 11 Nov 2008, Francis Galiegue wrote:
nk

So what does this script produce on your systems?


#!/usr/bin/perl -Tw
--8<--
use strict;
my $ws =3D "To: \nCc:";

$ws =3D~ /^To:\s*(.+)\s*\nCc:/ism;

if ($1 eq ' ') {
=09print "\$1 is equal to a space.\n";
}
-->8--

On mine, it prints the message.  So it seems it is matching _a_ space.
This resulted in an illegal recipient field.  Junio's suggestion to
change this to

  /^To:\s*(\S.+?)\s*\nCc:/ism

worked beautifully.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] git send-email: edit recipient addresses with th..., Ian Hilt, (Tue Nov 11, 4:47 pm)
Re: [PATCH] git send-email: edit recipient addresses with th..., Aristotle Pagaltzis, (Mon Nov 10, 4:08 am)