]>
Commit | Line | Data |
---|---|---|
ceb3e54a | 1 | #!/bin/sh |
2 | # based on script by (c) vip at linux.pl, wolf at pld-linux.org | |
3 | ||
4 | LIBDIR="@LIBDIR@/icedove" | |
5 | ||
e98019c8 | 6 | # copy profile from Thunderbird if its available and if no Icedove |
7 | # profile exists | |
8 | if [ ! -d $HOME/.icedove ]; then | |
9 | if [ -d $HOME/.thunderbird ]; then | |
10 | echo "Copying profile from Thunderbird" | |
11 | cp -rf $HOME/.thunderbird $HOME/.icedove | |
12 | fi | |
13 | fi | |
14 | ||
9dfe955f | 15 | ICEDOVE="$LIBDIR/icedove" |
ceb3e54a | 16 | |
17 | if [ "$1" == "-remote" ]; then | |
18 | $ICEDOVE "$@" | |
19 | else | |
20 | PING=`$ICEDOVE -remote 'ping()' 2>&1 >/dev/null` | |
21 | if [ -n "$PING" ]; then | |
22 | $ICEDOVE "$@" | |
23 | else | |
24 | case "$1" in | |
25 | -compose|-editor) | |
26 | $ICEDOVE -remote 'xfeDoCommand (composeMessage)' | |
27 | ;; | |
28 | *) | |
29 | $ICEDOVE -remote 'xfeDoCommand (openInbox)' | |
30 | ;; | |
31 | esac | |
32 | fi | |
33 | fi |