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 64f5d81b5f7a51f072db45d8662563e6d8ec7307
parent d72c582b14c69bcf5efa2e812a88e0dcf0a4dde9
Author: Christoph Lohmann <20h@r-36.net>
Date:   Sat, 27 Feb 2021 14:29:06 +0100

Rename rpdownload to rpdl.

Diffstat:
bin/rpdl | 2--
bin/rpdl | 23+++++++++++++++++++++++
bin/rpdownload | 23-----------------------
3 files changed, 23 insertions(+), 25 deletions(-)

diff --git a/bin/rpdl b/bin/rpdl @@ -1 +0,0 @@ -rpdownload- \ No newline at end of file diff --git a/bin/rpdl b/bin/rpdl @@ -0,0 +1,23 @@ +#!/bin/sh + +if [ -z "$DOWNLOADER" ]; +then + echo "\$DOWNLOADER should be set for downloading content." + exit 1 +fi + +if [ $# -lt 1 ]; +then + echo "usage: `basename $0` msgid" + exit 1 +fi + +msgid="$*" + +url=$(rpview -- $msgid | awk '/URL:/ {print $2}' | tr -d '\r') +for i in $url +do + echo $i + $DOWNLOADER "$i" +done + diff --git a/bin/rpdownload b/bin/rpdownload @@ -1,23 +0,0 @@ -#!/bin/sh - -if [ -z "$DOWNLOADER" ]; -then - echo "\$DOWNLOADER should be set for downloading content." - exit 1 -fi - -if [ $# -lt 1 ]; -then - echo "usage: `basename $0` msgid" - exit 1 -fi - -msgid="$*" - -url=$(rpview -- $msgid | awk '/URL:/ {print $2}' | tr -d '\r') -for i in $url -do - echo $i - $DOWNLOADER "$i" -done -