# apache htdoc path auto detection
if  spell_ok    "apache";   then
  LOC="/usr/share/httpd/htdocs/squirrelmail"
elif  spell_ok  "apache-mod_ssl";  then
  LOC="/usr/share/httpsd/htdocs/squirrelmail"
elif  spell_ok  "apache2";  then
  LOC="/usr/share/apache2/htdocs/squirrelmail"
fi


message " "
message "${MESSAGE_COLOR}Look at /usr/doc/squirrelmail/httpd-sample-squirrelmail.conf for apache'setup.${DEFAULT_COLOR}"
message " "

if [ ! -e $LOC/config/config.php ]; then
  message "${MESSAGE_COLOR}$SPELL configuration file not found."
  message "${MESSAGE_COLOR}Remember to run $LOC/config/configure to setup squirrelmail. ${DEFAULT_COLOR}"
fi
