]> gitweb.fluxo.info Git - utils-mail.git/commitdiff
Feat: adds alternative getmails wrapper (2)
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 12 Nov 2020 22:41:55 +0000 (19:41 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 12 Nov 2020 22:41:55 +0000 (19:41 -0300)
getmails-alternative

index 982f7aa1fab00f039f6f90a2f6f00ed346f8c74e..d85753a5545582ffe2a4dea6fe15b02ee457da32 100755 (executable)
@@ -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