diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-08-24 10:34:01 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-08-24 10:34:01 -0300 |
commit | 7d847adb75c84d8e7baddd39beda3f6587632eb6 (patch) | |
tree | 9694e1f65cb15f7ca730b9fe60eb2e07fa0379c8 /mailimport | |
parent | ab19cb308e86c5aeb0531bbbf5bfb2c09d3423a3 (diff) | |
download | mediapointer-dvb-s2-7d847adb75c84d8e7baddd39beda3f6587632eb6.tar.gz mediapointer-dvb-s2-7d847adb75c84d8e7baddd39beda3f6587632eb6.tar.bz2 |
Improve script to work with pine/alpine folders
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'mailimport')
-rwxr-xr-x | mailimport | 6 |
1 files changed, 6 insertions, 0 deletions
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" |