rohrpost

A commandline mail client to change the world as we see it.
git clone git://r-36.net/rohrpost
Log | Files | Refs | LICENSE

commit d72c582b14c69bcf5efa2e812a88e0dcf0a4dde9
parent 635e4b15cebfa376e70f2f78e8560d7ff42071b2
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(-)

diff --git a/bin/rpdl b/bin/rpdl @@ -0,0 +1 @@ +rpdownload+ \ No newline at end of file diff --git a/bin/rpdownload b/bin/rpdownload @@ -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 @@ -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