[PATCH] Make git-send-email add missing angles < > around --in-reply-to if missing.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  This is a most annoying issue with git-send-email: I never know if it will
add < > or not. Now, it just check if there are some or not, if not it adds
them, so that it just works.

Signed-off-by: Pierre Habouzit <madcoder@xxxxxxxxxx>
---
 git-send-email.perl |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/git-send-email.perl b/git-send-email.perl
index dd7560b..61e9c9c 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -632,6 +632,10 @@ X-Mailer: git-send-email $gitversion
 	}
 }
 
+if (length $initial_reply_to) {
+	$initial_reply_to = "<$initial_reply_to" unless ($initial_reply_to =~ /^</);
+	$initial_reply_to .= ">" unless ($initial_reply_to =~ />$/);
+}
 $reply_to = $initial_reply_to;
 $references = $initial_reply_to || '';
 $subject = $initial_subject;
-- 
1.5.3.1

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux