I have squirrelmail-1.4.2 installed on OpenBSD 3.4.
I used conf.pl to enable the default plugin SquirrelSpell-v0.3.1 that comes
with squirrelmail-1.4.2.
When I clicked on the Check Spell button (in Compose window), a window pop
up with this message:
SquirrelSpell is misconfigured.
I tried to execute 'ispell -a', but it returned:
And inside the window, it displayed "SquirrelSpell v0.3.8"
What's wrong here?
I have ispell installed (OpenBSD pre-compiled package):
# which ispell
/usr/local/bin/ispell
# ispell -v
@(#) International Ispell Version 3.2.06 08/01/01
I thought the problem might be with OpenBSD's Apache chroot to /var/www/
So I copied all ispell files to /var/www with this script:
# cat /tmp/new_ispell.ksh
mkdir -p /var/www/usr/local/bin/
mkdir -p /var/www/usr/local/lib/
mkdir -p /var/www/usr/local/man/man1/
mkdir -p /var/www/usr/local/man/man4/
mkdir -p /var/www/usr/local/lib/ispell/
mkdir -p /var/www/bin
cp -p /usr/local/bin/ispell /var/www/usr/local/bin/ispell
cp -p /usr/local/bin/buildhash /var/www/usr/local/bin/buildhash
cp -p /usr/local/bin/tryaffix /var/www/usr/local/bin/tryaffix
cp -p /usr/local/bin/ijoin /var/www/usr/local/bin/ijoin
cp -p /usr/local/bin/findaffix /var/www/usr/local/bin/findaffix
cp -p /usr/local/bin/munchlist /var/www/usr/local/bin/munchlist
cp -p /usr/local/bin/icombine /var/www/usr/local/bin/icombine
cp -p /usr/local/bin/ispell-config /var/www/usr/local/bin/ispell-config
cp -p /usr/local/lib/ispell/default.aff
/var/www/usr/local/lib/ispell/default.aff
cp -p /usr/local/lib/ispell/default.hash
/var/www/usr/local/lib/ispell/default.hash
cp -p /usr/local/lib/ispell/default.hash-0
/var/www/usr/local/lib/ispell/default.hash-0
cp -p /usr/local/lib/ispell/americanmed+.hash
/var/www/usr/local/lib/ispell/americanmed+.hash
cp -p /usr/local/lib/ispell/american.hash
/var/www/usr/local/lib/ispell/american.hash
cp -p /usr/local/lib/ispell/american.aff
/var/www/usr/local/lib/ispell/american.aff
cp -p /usr/local/lib/ispell/britishxlg.hash
/var/www/usr/local/lib/ispell/britishxlg.hash
cp -p /usr/local/lib/ispell/british.hash
/var/www/usr/local/lib/ispell/british.hash
cp -p /usr/local/lib/ispell/british.aff
/var/www/usr/local/lib/ispell/british.aff
cp -p /usr/local/man/man1/ispell.1 /var/www/usr/local/man/man1/ispell.1
cp -p /usr/local/man/man1/buildhash.1
/var/www/usr/local/man/man1/buildhash.1
cp -p /usr/local/man/man1/munchlist.1
/var/www/usr/local/man/man1/munchlist.1
cp -p /usr/local/man/man1/findaffix.1
/var/www/usr/local/man/man1/findaffix.1
cp -p /usr/local/man/man1/tryaffix.1 /var/www/usr/local/man/man1/tryaffix.1
cp -p /usr/local/man/man4/ispell.4 /var/www/usr/local/man/man4/ispell.4
cp -p /usr/local/man/man4/english.4 /var/www/usr/local/man/man4/english.4
The error message complaining about SquirrelSpell is misconfigured still
displays.
Here is my SquirrelSpell config file:
# cat /var/www/htdocs/webmail/plugins/squirrelspell/sqspell_config.php
<?php
/**
* sqspell_config.php -- SquirrelSpell Configuration file.
*
* Copyright (c) 1999-2003 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
*
*
* $Id: sqspell_config.php,v 1.14 2003/03/11 15:57:21 kink Exp $
*/
require_once(SM_PATH . 'functions/prefs.php');
/* Just for poor wretched souls with E_ALL. :) */
global $data_dir;
sqgetGlobalVar('username', $username, SQ_SESSION);
/**
* Example:
*
* $SQSPELL_APP = array( 'English' => 'ispell -a',
* 'Spanish' => 'ispell -d spanish -a' );
*/
$SQSPELL_APP = array('English' => 'ispell -a',
'Spanish' => 'ispell -d spanish -a');
$SQSPELL_APP_DEFAULT = 'English';
$SQSPELL_WORDS_FILE =
getHashedFile($username, $data_dir, "$username.words");
$SQSPELL_EREG = 'ereg';
?>
I modified the file by specified the full path of ispell like
/usr/local/bin/ispell
and /var/www/usr/local/bin/ispell but that didn't help at all.
Is that because of ispell is compile with dynamic linked so the plugin fail?
Is there any log file in SquirrelMail that I can check?
Can anyone help?
TIA,
Zoong Pham
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users