git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] That works

From
Stefan Beller <sbeller@google.com>
Date
Mar 17, 2016, 17:47 UTC
Message-ID
<1458236870-23464-1-git-send-email-sbeller@google.com>
In-Reply-To
<20160317020015.GC12830@sigill.intra.peff.net>
sent from git-send-email with a corrupt .mailrc file.

Thanks, Stefan

diff --git a/git-send-email.perl b/git-send-email.perl
index d356901..c45b22a 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -533,7 +533,7 @@ my %parse_alias = (
 			$aliases{$alias} = \@addr
 		}}},
 	mailrc => sub { my $fh = shift; while (<$fh>) {
-		if (/^alias\s+(\S+)\s+(.*)$/) {
+		if (/^alias\s+(\S+)\s+(.*?)\s*$/) {
 			# spaces delimit multiple addresses
 			$aliases{$1} = [ quotewords('\s+', 0, $2) ];
 		}}},
Previous: Jeff KingNext: Jeff King
Message 3 of 4 in “One whitespace breaks sending mail (using mailrc aliases wit send-emal)”
  1. Stefan BellerMar 17, 2016
  2. Jeff KingMar 17, 2016
  3. That worksStefan Beller, Mar 17, 2016
  4. Jeff KingMar 17, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.