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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Cc: Pierre Habouzit <madcoder@...>
Date: Tuesday, September 11, 2007 - 8:00 pm

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@debian.org>
---
 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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Make git-send-email add missing angles < > aro..., Pierre Habouzit, (Tue Sep 11, 8:00 pm)