From: Jay Soffian Date: Sat, 14 Feb 2009 05:50:00 GMT Subject: Re: [PATCH 2/3] send-email: don't call unquote_rfc2047 unnecessarily Message-ID: <76718490902132150w59d48581ke1c6394809bf810a@mail.gmail.com> In-Reply-To: <1234583491-61260-3-git-send-email-jaysoffian@gmail.com> On Fri, Feb 13, 2009 at 10:51 PM, Jay Soffian wrote: > From: Jay Soffian > > If --suppress-cc=author then there is no need to unquote the From: > address. > > Signed-off-by: Jay Soffian > --- > git-send-email.perl | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/git-send-email.perl b/git-send-email.perl > index a2e0b94..2a3e3e8 100755 > --- a/git-send-email.perl > +++ b/git-send-email.perl > @@ -958,8 +958,8 @@ foreach my $t (@files) { > $subject = $1; > } > elsif (/^From:\s+(.*)$/) { > + next if $suppress_cc{'author'}; > ($author, $author_encoding) = unquote_rfc2047($1); > - next if ($suppress_cc{'author'}); > printf("(mbox) Adding cc: %s from line '%s'\n", > $1, $_) unless $quiet; > push @cc, $1; Crap. Ignore this one from the series. $author is used later and we have to parse it regardless. This is brittle code, but I should've realize it. j.