]> Pileus Git - ~andy/git/commitdiff
Merge branch 'maint'
authorJunio C Hamano <junkio@cox.net>
Thu, 26 Apr 2007 06:31:45 +0000 (23:31 -0700)
committerJunio C Hamano <junkio@cox.net>
Thu, 26 Apr 2007 06:31:45 +0000 (23:31 -0700)
* maint:
  Start preparing for 1.5.1.3
  Sanitize @to recipients.
  git-svn: Ignore usernames in URLs in find_by_url
  Document --dry-run and envelope-sender for git-send-email.
  Allow users to optionally specify their envelope sender.
  Ensure clean addresses are always used with Net::SMTP
  Validate @recipients before using it for sendmail and Net::SMTP.
  Perform correct quoting of recipient names.
  Change the scope of the $cc variable as it is not needed outside of send_message.
  Debugging cleanup improvements
  Prefix Dry- to the message status to denote dry-runs.
  Document --dry-run parameter to send-email.
  git-svn: Don't rely on $_ after making a function call
  Fix handle leak in write_tree
  Actually handle some-low memory conditions

Conflicts:

RelNotes
git-send-email.perl

1  2 
builtin-write-tree.c
git-compat-util.h
git-send-email.perl
sha1_file.c

Simple merge
Simple merge
index d6b15480dc1e211f0653ff54963889464dad3573,12ced288857c7531f964d2e08e9a7c3cc1136dbd..a6e3e026199a8d5ce763360c60ee0491f14820a5
@@@ -441,17 -461,11 +461,14 @@@ sub send_messag
            $gitversion = Git::version();
        }
  
-       my ($author_name) = ($from =~ /^(.*?)\s+</);
-       if ($author_name && $author_name =~ /\./ && $author_name !~ /^".*"$/) {
-               my ($name, $addr) = ($from =~ /^(.*?)(\s+<.*)/);
-               $from = "\"$name\"$addr";
-       }
+       my $cc = join(", ", unique_email_list(@cc));
 +      my $ccline = "";
 +      if ($cc ne '') {
 +              $ccline = "\nCc: $cc";
 +      }
+       $from = sanitize_address_rfc822($from);
        my $header = "From: $from
 -To: $to
 -Cc: $cc
 +To: $to${ccline}
  Subject: $subject
  Date: $date
  Message-Id: $message_id
diff --cc sha1_file.c
Simple merge