-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·37 lines (32 loc) · 766 Bytes
/
setup.sh
File metadata and controls
executable file
·37 lines (32 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
unset HISTFILE
killall python2
echo $1>/tmp/mail
echo $2>/tmp/pass
echo $3>/tmp/fn
echo "Mail!!!!!!!!!!!!!!!!!!!"
cat /tmp/mail
source mp-virtualenv/bin/activate
sleep 2
rm -r ~/.local/share/Mailpile/
./mp --www=127.0.0.1:33411/Mailpile/
./mp --setup
sleep 1;
cat setup-commands | ./mp
sleep 10
python2.7 setup-account.py
cp last-commands last-commands.tmp
sed -i "s/MAIL/$1/g" last-commands.tmp
#user=$(echo $1 | cut -f1 -d"@")
#sed -i "s/mailpile/$user/g" last-commands.tmp
cat last-commands.tmp | ./mp
echo "!!!!!!!!!!!!!!!!!!! Search mailbox !!!!!!!!!!!!!!!!"
cat bug_workaround | ./mp
./mp --www=127.0.0.1:33411/Mailpile/ --wait >mailpile.log 2>&1 </dev/null &
rm /tmp/pass
rm /tmp/mail
rm /tmp/fn
history -c
echo "finend"
exec >&-
exec 2>&-