summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-04-14 15:36:34 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-04-14 15:36:34 -0300
commit2c20fa5c2a3cec7aa554a2683ddfedb0eb7ec31a (patch)
tree70e263699bfab62798f16402ce07f60d9fb41a41
parent4c27c478d1937514e9fa46eb617a3f68b5539d34 (diff)
downloadmediapointer-dvb-s2-2c20fa5c2a3cec7aa554a2683ddfedb0eb7ec31a.tar.gz
mediapointer-dvb-s2-2c20fa5c2a3cec7aa554a2683ddfedb0eb7ec31a.tar.bz2
Improved to handle also inlined patches
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rwxr-xr-xmailimport9
1 files changed, 8 insertions, 1 deletions
diff --git a/mailimport b/mailimport
index 80584af00..fd2169d07 100755
--- a/mailimport
+++ b/mailimport
@@ -140,7 +140,14 @@ apply_patch () {
hg log -r -1 -v
}
-echo git-mailsplit $MBOX $DIR
+grep -v $MBOX >$DIR/tmpbox <<EOF
+^Content-Type:
+^--Boundary-
+^Content-Disposition: inline
+^Content-Transfer-Encoding: 8bit
+EOF
+
+echo git-mailsplit $MBOX/tmpbox $DIR
echo -n "Number of patches at file: "
git-mailsplit $MBOX $DIR
echo