rp

simple email tools
git clone https://git.parazyd.org/rp
Log | Files | Refs | README | LICENSE

commit dca3e73c457f7baa60940da00f41d7d96dd9bdc8
parent 08e4df57459e575f5c6ed06cb9fc86deea54c524
Author: parazyd <parazyd@dyne.org>
Date:   Sun, 23 Dec 2018 15:04:34 -0500

Improve rpsend list formatting.

Diffstat:
Mbin/rpsend | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/bin/rpsend b/bin/rpsend @@ -20,10 +20,12 @@ EOF listoutbox() { headers="Date To Subject" + [ -n "$verbose" ] && echo "* List of emails in queue:" for i in $(find "$profile"/tmp/outbox -type f); do - echo "$i" if [ -n "$verbose" ];then - printf "%s\\n\\n" "$(rpheaders -v $headers < $i)" + printf "\\n%s\n%s\\n" "$i" "$(rpheaders -v $headers < $i)" + else + echo "$i" fi done }