projects
/
modest
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Copy only "X-as" headers from original emails, not all of them
[modest]
/
src
/
hildon2
/
modest-restore.sh
1
#!/bin/sh
2
FILE="$HOME/.modest-backup.tar.gz"
3
4
if [ ! -f "$FILE" ]
5
then
6
#no backup file. Return success
7
exit 0
8
fi
9
10
if [ ! -s "$FILE" ]
11
then
12
#empty backup file. Return success
13
exit 0
14
fi
15
16
cd $HOME
17
tar xzvf .modest-backup.tar.gz
18
rm -rf .modest-backup.tar.gz
19
exit 0