aboutsummaryrefslogtreecommitdiff
path: root/network/davmail/davmail.sh
blob: 4a2f245f6f8e389328e294072eab65caca7e0062 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

BASE=/usr/share/davmail

if [ -n "$JAVA_HOME" ]; then
  JAVA_CMD="$JAVA_HOME/bin/java"
else
  JAVA_CMD="$(which java)"
fi

for i in $BASE/lib/*; do
  export CLASSPATH=$CLASSPATH:$i;
done

exec $JAVA_CMD -Xmx512M -Dsun.net.inetaddr.ttl=60 -cp $BASE/davmail.jar:$CLASSPATH davmail.DavGateway $1