From: Junio C Hamano <junkio@cox.net>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: git@vger.kernel.org
Subject: Re: git send-email woes
Date: Mon, 25 Sep 2006 21:11:30 -0700 [thread overview]
Message-ID: <7vvenbuv0t.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: 20060925215127.GA3965@uranus.ravnborg.org
Sam Ravnborg <sam@ravnborg.org> writes:
>> @@ -431,6 +431,11 @@ sub send_message
>> $gitversion =~ s/^.* //;
>> }
>>
>> + my ($author_name) = ($from =~ /^(.*?)\s+</);
>> + if ($author_name =~ /\./ && $author_name !~ /^".*"$/) {
>> + my ($name, $addr) = ($from =~ /^(.*?)(\s+<.*)/);
>> + $from = "\"$name\"$addr";
>> + }
>> my $header = "From: $from
>> To: $to
>> Cc: $cc
>>
> I would assume we had to do the same for all mail addresses?
> In this case also for $to and $cc and $reply_to.
I do not think so, although I admit I only had a cursory look at
the code. In this part of the code, $to and $cc are coming from
return value of unique_email_list sub, which cleanses each
address with extract_valid_address sub. This sub does:
A U Thor <foo@bar.baz> => foo@bar.baz
In other words, I think it is only "$from" that needs it.
I think $to and $cc should not strip out the human-readable name,
but in this case it saved us extra trouble. Sigh...
prev parent reply other threads:[~2006-09-26 4:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-24 22:43 git send-email woes Sam Ravnborg
2006-09-25 18:32 ` Sam Ravnborg
2006-09-25 19:58 ` Junio C Hamano
2006-09-25 21:17 ` David Miller
2006-09-25 21:51 ` Sam Ravnborg
2006-09-26 4:11 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vvenbuv0t.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).