From 7d847adb75c84d8e7baddd39beda3f6587632eb6 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Sun, 24 Aug 2008 10:34:01 -0300 Subject: Improve script to work with pine/alpine folders From: Mauro Carvalho Chehab Priority: normal Signed-off-by: Mauro Carvalho Chehab --- mailimport | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mailimport') diff --git a/mailimport b/mailimport index bd6d36c2e..8ed624179 100755 --- a/mailimport +++ b/mailimport @@ -165,6 +165,12 @@ proccess_patch () { i="$_" + CHECK="`cat $i| perl -ne 'if (m/^Subject:.*FOLDER INTERNAL DATA/) { print -1; }'`" + + if [ "$CHECK" != "" ]; then + return + fi + echo $i if [ "`diffstat -p1 -l "$i"`" == "" ]; then echo "*** ERROR nothing to commit" -- cgit v1.2.3