Merge branch 'jc/pack'
[gitweb.git] / git-send-email.perl
index dd7560b180adcba90a1fc3dc94c206b567398e9e..d8319d45fb275c783511232c7b0047a517973e03 100755 (executable)
@@ -361,7 +361,8 @@ sub expand_aliases {
        } while (!defined $_);
 
        $initial_reply_to = $_;
-       $initial_reply_to =~ s/(^\s+|\s+$)//g;
+       $initial_reply_to =~ s/^\s+<?/</;
+       $initial_reply_to =~ s/>?\s+$/>/;
 }
 
 if (!defined $smtp_server) {