{"thread":{"id":"9190","subject":"[PATCH] git am: skip pine's internal folder data","startedAt":"2007-07-24T00:02:25Z","lastAt":"2007-07-24T00:02:25Z","messageCount":1,"participants":["Johannes Schindelin"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"48382","messageId":"Pine.LNX.4.64.0707240102110.14781@racer.site","threadId":"9190","inReplyTo":null,"subject":"[PATCH] git am: skip pine's internal folder data","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-07-24T00:02:25Z","receivedAt":"2007-07-24T00:02:25Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"\nTest if the From: line contains \"Mail System Internal Data\" and if\nit is, skip this mail.\n\nSigned-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>\n---\n git-am.sh |    6 ++++++\n 1 files changed, 6 insertions(+), 0 deletions(-)\n\ndiff --git a/git-am.sh b/git-am.sh\nindex bfd65dc..22d2b5c 100755\n--- a/git-am.sh\n+++ b/git-am.sh\n@@ -284,6 +284,12 @@ do\n \t\tgit mailinfo $keep $utf8 \"$dotest/msg\" \"$dotest/patch\" \\\n \t\t\t<\"$dotest/$msgnum\" >\"$dotest/info\" ||\n \t\t\tstop_here $this\n+\n+\t\t# skip pine's internal folder data\n+\t\tsed '/^$/q' < \"$dotest\"/info |\n+\t\t\tgrep '^Author: Mail System Internal Data$' > /dev/null\n+\t\t\t&& go_next && continue\n+\n \t\ttest -s $dotest/patch || {\n \t\t\techo \"Patch is empty.  Was it split wrong?\"\n \t\t\tstop_here $this\n-- \n1.5.3.rc2.32.g35c5b-dirty\n"}]}