]> git.pld-linux.org Git - packages/thunderbird.git/blob - icedove.sh
- obsoleted
[packages/thunderbird.git] / icedove.sh
1 #!/bin/sh
2 # based on script by (c) vip at linux.pl, wolf at pld-linux.org
3
4 LIBDIR="@LIBDIR@/icedove"
5
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
15 ICEDOVE="$LIBDIR/icedove"
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
This page took 0.026708 seconds and 3 git commands to generate.