tFix rpdownload and add rpdl for short form. - rohrpost - A commandline mail client to change the world as we see it.
(HTM) git clone git://r-36.net/rohrpost
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit d72c582b14c69bcf5efa2e812a88e0dcf0a4dde9
(DIR) parent 635e4b15cebfa376e70f2f78e8560d7ff42071b2
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Sat, 27 Feb 2021 14:25:47 +0100
Fix rpdownload and add rpdl for short form.
Diffstat:
bin/rpdl | 2 ++
bin/rpdownload | 9 +--------
2 files changed, 3 insertions(+), 8 deletions(-)
---
(DIR) diff --git a/bin/rpdl b/bin/rpdl
t@@ -0,0 +1 @@
+rpdownload
+\ No newline at end of file
(DIR) diff --git a/bin/rpdownload b/bin/rpdownload
t@@ -6,13 +6,7 @@ then
exit 1
fi
-if [ -z "$DOWNLOADDIR" ];
-then
- echo "\$DOWNLOADDIR should be set for downloading content."
- exit 1
-fi
-
-if [ $# -lt 2 ];
+if [ $# -lt 1 ];
then
echo "usage: `basename $0` msgid"
exit 1
t@@ -21,7 +15,6 @@ fi
msgid="$*"
url=$(rpview -- $msgid | awk '/URL:/ {print $2}' | tr -d '\r')
-cd $DOWNLOADDIR
for i in $url
do
echo $i