git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mailinfo: accept >From in message header
@ 2006-07-27 14:03 Michael S. Tsirkin
  2006-07-27 21:22 ` Junio C Hamano
  2006-08-07 12:51 ` Multiple pulls from the same branch in .git/remotes/origin Michael S. Tsirkin
  0 siblings, 2 replies; 27+ messages in thread
From: Michael S. Tsirkin @ 2006-07-27 14:03 UTC (permalink / raw)
  To: git

Hi!
Mail I get sometimes has multiple From lines, like this:

>From Majordomo@vger.kernel.org  Thu Jul 27 16:39:36 2006
>From mtsirkin  Thu Jul 27 16:39:36 2006
Received: from yok.mtl.com [10.0.8.11]
....

which confuses git-mailinfo since that does not recognize >From
as a valid header line. The following patch makes git-applymbox
work for me:

---

Recognize >From XXX as a valid header line.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>

diff --git a/builtin-mailinfo.c b/builtin-mailinfo.c
index ac53f76..2b6e9fa 100644
--- a/builtin-mailinfo.c
+++ b/builtin-mailinfo.c
@@ -446,7 +446,7 @@ static int read_one_header_line(char *li
 			break;
 	}
 	/* Count mbox From headers as headers */
-	if (!ofs && !memcmp(line, "From ", 5))
+	if (!ofs && (!memcmp(line, "From ", 5) || !memcmp(line, ">From ", 6)))
 		ofs = 1;
 	return ofs;
 }

-- 
MST

^ permalink raw reply related	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2006-08-23  1:34 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-27 14:03 [PATCH] mailinfo: accept >From in message header Michael S. Tsirkin
2006-07-27 21:22 ` Junio C Hamano
2006-07-27 21:32   ` Michael S. Tsirkin
2006-08-07 12:51 ` Multiple pulls from the same branch in .git/remotes/origin Michael S. Tsirkin
2006-08-07 18:28   ` Junio C Hamano
2006-08-07 19:38     ` Michael S. Tsirkin
2006-08-07 19:53       ` Junio C Hamano
2006-08-07 21:05         ` Michael S. Tsirkin
2006-08-07 22:04           ` Junio C Hamano
2006-08-07 22:33             ` Michael S. Tsirkin
2006-08-07 22:19         ` [PATCH] Multiple refs from the same remote in one git fetch Michael S. Tsirkin
2006-08-07 23:05           ` Junio C Hamano
2006-08-12 22:39             ` Michael S. Tsirkin
2006-08-12 23:07               ` Junio C Hamano
2006-08-14  0:13                 ` Michael S. Tsirkin
2006-08-14  0:20                   ` Junio C Hamano
2006-08-14  5:13                     ` Michael S. Tsirkin
2006-08-14  5:53                       ` Junio C Hamano
2006-08-14  6:33                         ` Michael S. Tsirkin
2006-08-14  7:34                           ` Junio C Hamano
2006-08-14  7:42                             ` Michael S. Tsirkin
2006-08-14 10:49                           ` Jakub Narebski
2006-08-14 17:51                             ` Michael S. Tsirkin
2006-08-14 18:33                               ` Jakub Narebski
2006-08-14 19:17                                 ` Michael S. Tsirkin
2006-08-22 15:10                       ` [PATCH repost] " Michael S. Tsirkin
2006-08-23  1:34                         ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).