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

[PATCH] git am: skip pine's internal folder data

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 24, 2007, 00:02 UTC
Message-ID
<Pine.LNX.4.64.0707240102110.14781@racer.site>

Test if the From: line contains "Mail System Internal Data" and if it is, skip this mail.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
 git-am.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/git-am.sh b/git-am.sh
index bfd65dc..22d2b5c 100755
--- a/git-am.sh
+++ b/git-am.sh
@@ -284,6 +284,12 @@ do
 		git mailinfo $keep $utf8 "$dotest/msg" "$dotest/patch" \
 			<"$dotest/$msgnum" >"$dotest/info" ||
 			stop_here $this
+
+		# skip pine's internal folder data
+		sed '/^$/q' < "$dotest"/info |
+			grep '^Author: Mail System Internal Data$' > /dev/null
+			&& go_next && continue
+
 		test -s $dotest/patch || {
 			echo "Patch is empty.  Was it split wrong?"
 			stop_here $this
-- 
1.5.3.rc2.32.g35c5b-dirty
Message 1 of 1 in “git am: skip pine's internal folder data”
  1. git am: skip pine's internal folder dataJohannes Schindelin, Jul 24, 2007

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.