blob: 3ab91dec823904358696712c61c4ff062a35e2b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
set -e
. $HOME/.shenv
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
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 copy
|