Just updated from Debian Etch>Lenny>Squeeze, and something has gone wrong with squirrelspell plugin for squirrelmail. It never reports a spelling error. Here is my sqspell_config.php
Code:
<?php
/**
* sqspell_config.php -- SquirrelSpell Configuration file.
*
* Copyright (c) 1999-2010 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* @version $Id: sqspell_config.php 13893 2010-01-25 02:47:41Z pdontthink $
* @package plugins
* @subpackage squirrelspell
*/
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( 'american (American English)' => 'ispell -a',
* 'spanish (Spanish)' => 'ispell -d spanish -a' );
* You can replace ispell with aspell keeping the same commandline:
* $SQSPELL_APP = array( 'american (American English)' => 'aspell -a',
* 'spanish (Spanish)' => 'aspell -d spanish -a' );
*/
# Debian: if dictionaries-common >= 2.81.1 is available, detect the
# installed dictionaries automatically, else use the list below.
if ( ! @include('/var/cache/dictionaries-common/sqspell.php') ) {
$SQSPELL_APP = array('american (American English)' => 'ispell -a',
'spanish (Spanish)' => 'ispell -d spanish -a');
}
# Debian: if dictionaries-common >= 2.50 is available, detect the
# default dictionary automatically.
if ( is_readable ( '/etc/dictionaries-common/ispell-default' ) ) {
$SQSPELL_APP_DEFAULT = file_get_contents ( '/etc/dictionaries-common/ispell-default' );
} else {
$SQSPELL_APP_DEFAULT = 'american (American English)';
}
$SQSPELL_WORDS_FILE =
getHashedFile($username, $data_dir, "$username.words");
$SQSPELL_EREG = 'ereg';
/var/log/mail.err gives:
Code:
PHP Notice: Undefined index: American English in /usr/share/squirrelmail/plugins/squirrelspell/modules/check_me.mod on line 81, referer: https://mail.mydomain.com/plugins/squirrelspell/sqspell_interface.php
contents of /var/cache/dictionaries-common/sqspell.php
Code:
<?php
### This file is part of the dictionaries-common package.
### It has been automatically generated.
### DO NOT EDIT!
$SQSPELL_APP = array (
'American English (aspell)' => 'aspell -a -d en_US ',
'American English (ispell)' => 'ispell -a -B -d american',
'British English (aspell)' => 'aspell -a -d en_GB ',
'British English (ispell)' => 'ispell -a -B -d british',
'Canadian English (aspell)' => 'aspell -a -d en_CA ',
'English (aspell)' => 'aspell -a -d en '
);
Has the syntax changed?