aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-11-12 19:41:55 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-11-12 19:41:55 -0300
commit8f6f663e74f1ef41fbbfda607ff52e67b728d15d (patch)
tree06feecc858f3a1e42f4586dab6ee6382bd9b848f
parent336023055c3f469e5943d32fe2478516fecabb16 (diff)
downloadutils-mail-8f6f663e74f1ef41fbbfda607ff52e67b728d15d.tar.gz
utils-mail-8f6f663e74f1ef41fbbfda607ff52e67b728d15d.tar.bz2
Feat: adds alternative getmails wrapper (2)
-rwxr-xr-xgetmails-alternative3
1 files changed, 2 insertions, 1 deletions
diff --git a/getmails-alternative b/getmails-alternative
index 982f7aa..d85753a 100755
--- a/getmails-alternative
+++ b/getmails-alternative
@@ -7,6 +7,7 @@
# Parameters
CONFIG_FOLDER="$HOME/.getmail/config"
+GETMAIL="/usr/bin/getmail"
# Check
if [ ! -d "$CONFIG_FOLDER" ]; then
@@ -14,4 +15,4 @@ if [ ! -d "$CONFIG_FOLDER" ]; then
fi
# Dispatch
-ls -1 $CONFIG_FOLDER | grep -v '^oldmail-' | grep '@' | grep -v '.disabled$' | xargs echo | sed -e 's/ / --rcfile /g' | xargs echo getmail --rcfile
+ls -1 $CONFIG_FOLDER | grep -v '^oldmail-' | grep '@' | grep -v '.disabled$' | xargs echo | sed -e 's/ / --rcfile /g' | xargs $GETMAIL --rcfile