From 5360e42c5a99bad9fcdfe0a255c05e3e343d90de Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Fri, 22 Nov 2019 16:44:29 -0700 Subject: automate some more of get-sdf-mail --- bin/get-sdf-mail | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/get-sdf-mail') diff --git a/bin/get-sdf-mail b/bin/get-sdf-mail index eff9d5eb..3ab91dec 100755 --- a/bin/get-sdf-mail +++ b/bin/get-sdf-mail @@ -9,8 +9,8 @@ uuid=$(date +%s) ssh spw@tty.sdf.org mv /var/mail/spw /sdf/arpa/ns/s/spw/tmp/mbox.$uuid scp spw@tty.sdf.org:tmp/mbox.$uuid $HOME/tmp/mbox.$uuid mb2md -s $HOME/tmp/mbox.$uuid -d $HOME/.fmail/inbox -echo "I: after confirming the insert succeeded, rm ~/tmp/mbox.$uuid, and on SDF" +ssh sdf rm tmp/mbox.$uuid +echo "I: after confirming the insert succeeded, rm ~/tmp/mbox.$uuid" # TODO ask user to confirm number of messages inserted (mb2md prints -# this number) and then if they answer yes, delete the local and -# remote copies +# this number) and then if they answer yes, delete the local copy -- cgit v1.2.3