2 # based on script by (c) vip at linux.pl, wolf at pld-linux.org
4 LIBDIR="@LIBDIR@/icedove"
6 # copy profile from Thunderbird if its available and if no Icedove
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
15 # compreg.dat and/or chrome.rdf will screw things up if it's from an
16 # older version. http://bugs.gentoo.org/show_bug.cgi?id=63999
17 for f in ~/.icedove/*/{compreg.dat,chrome.rdf,XUL.mfasl}; do
18 if [[ -f ${f} && ${f} -ot "$0" ]]; then
19 echo "Removing ${f} leftover from older Icedove"
24 ICEDOVE="$LIBDIR/icedove"
26 if [ "$1" == "-remote" ]; then
29 PING=`$ICEDOVE -remote 'ping()' 2>&1 >/dev/null`
30 if [ -n "$PING" ]; then
35 $ICEDOVE -remote 'xfeDoCommand (composeMessage)'
38 $ICEDOVE -remote 'xfeDoCommand (openInbox)'