summaryrefslogtreecommitdiff
path: root/localgotallmail
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2003-05-24 11:03:18 +0000
committerJonas Smedegaard <dr@jones.dk>2003-05-24 11:03:18 +0000
commitaed5276178f42658d21bb680b18dd30428c18e7b (patch)
tree87be6b93430c90f6a01370dc27fc1414351e5655 /localgotallmail
parentdc3d50e7f45e549c6de820d0f5b9959408adf7c5 (diff)
Continue batch run even on gotmail errors.
Diffstat (limited to 'localgotallmail')
-rwxr-xr-xlocalgotallmail2
1 files changed, 1 insertions, 1 deletions
diff --git a/localgotallmail b/localgotallmail
index 5fbf419..2f59874 100755
--- a/localgotallmail
+++ b/localgotallmail
@@ -45,7 +45,7 @@ for user in $USERS; do
if [ -z "$target" ]; then
target=$user
fi
- su mail -c "gotmail -u $login -p $pw --delete-messages $opts --forwarding-email $target"
+ su mail -c "(set +e; gotmail -u $login -p $pw --delete-messages $opts --forwarding-email $target || echo \"Getting mail from $login@hotmail.com to $target failed with error \$?\"; set -e)"
done
fi
done