Code

git am: skip pine's internal folder data
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Tue, 24 Jul 2007 00:02:25 +0000 (01:02 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Jul 2007 03:48:04 +0000 (20:48 -0700)
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-am.sh

index bfd65dcf955187030e183b11c164abe02e9bbe62..6cf0eeee7159caecd5b76e0acb520af6895cef93 100755 (executable)
--- 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
+               grep '^Author: Mail System Internal Data$' \
+                       <"$dotest"/info >/dev/null &&
+                       go_next && continue
+
                test -s $dotest/patch || {
                        echo "Patch is empty.  Was it split wrong?"
                        stop_here $this