If you are using SquirrelMail on Linux RedHat v7.3 system, sometimes you can
get an error similar to:
Warning: Invalid range end in /usr/share/squirrelmail/functions/i18n.php on line
This problem can be reproduced only on RedHat 7.3 or RedHat Advanced Server 2.0.
It happens only if a UTF-8 enabled glibc locale is used. This means that the
ca_ES, cs_CZ, da_DK, en_CA, es_ES, es_US, et_EE, fi_FI, hr_HR, is_IS, lt_LT,
lv_LV, no_NO, pl_PL and sl_SI locales are all affected. Emails that produce
this kind of warning will do so because they use an encoding other than the
one that is set in the user's locale.
The problem is in a broken glibc, Apache or PHP patch or patches used by
RedHat. The system doesn't like regexp ranges between \237-\240 (octal
numbers; decimal 159-160). Recent SquirrelMail versions try to avoid this
This is intentional. Those folders may be special in content, but not in
name - they could be named anything, which is why SquirrelMail cannot
pretend to know what they will be named. In some cases, users could already
have folders with the desired translated name, which would cause confusion.
You can take some steps to provide translated special folder names for your
users, but be careful about imposing translated folder names as the
administrator rather than letting users manage their folders themselves.
The administrator can set what folders to use (for all users - by default) for Trash, Drafts and Sent (you might want to ensure you have a script on the mail server that creates pre-translated folders for this purpose first) by using the SquirrelMail configuration script (config/conf.pl, which is usually aliased to configure in the main SquirrelMail directory) and choosing "3. Folder Defaults" and then entering the utf7-imap encoded folder names for "3. Trash Folder", "4. Sent Folder" and "5. Drafts Folder". You can also do the same by directly editing config/config.php and changing the values for $trash_folder, $sent_folder and $draft_folder.
Users can go to Options->Folder Preferences and select what folders to use for Trash, Drafts and Sent (they can create their own pre-translated folders for this purpose on the Folders page first). These settings will override the administrative settings described in the item above.
As of SquirrelMail 1.5.2, users can go to Options->Folder Preferences and enable "Translate Special Folders", and SquirrelMail will try to automatically translate folders named "Trash", "Sent" and "Drafts", but, as mentioned above, this can result in unexpected or confusing results if the user has already created similarly-named folders.
The administrator can choose to set default values for (or force the values of) the prior two user settings by using one of the methods explained
in the Administrator's Manual