I installed SquirrelMail (squirrelmail-20190304_0200-SVN.stable) in Debian 9.8
and changed only the necessary options to have it logging into my IMAP server
successfully.
The problem is that utf-8 encoded emails are not being converted into
iso-8859-1 when viewing the email body. The email index presents characters in
the subject line correctly. If I set Firefox's "Text Encoding" option to
"Unicode", the email body is shown correctly.
My configuration includes:
$squirrelmail_default_language = 'en_US';
$default_charset = 'iso-8859-1';
$lossy_encoding = true;
PHP has recode and iconv installed.
src/configtest.php says that everything is OK.
I grep'ed for "recode" and "iconv" in the source code, but only configtest.php
includes these two words.
Do I need a plugin for this?
- configtest.php's output follows -
SquirrelMail configtest
This script will try to check some aspects of your SquirrelMail configuration
and point you to errors whereever it can find them. You need to go run conf.pl
in the config/ directory first before you run this script.
SquirrelMail version: 1.4.23 [SVN]
Config file version: 1.4.0
Config file last modified: 07 March 2019 16:30:13
Checking PHP configuration...
PHP version 7.0.33-0+deb9u2 OK.
Running as squirrelmail-fv(1006) / squirrelmail-fv(1006)
display_errors:
error_reporting: 22527
variables_order OK: GPCS.
PHP extensions OK. Dynamic loading is disabled.
ERROR: You have configured PHP not to allow short tags
(short_open_tag=off). This shouldn't be a problem with SquirrelMail or any
plugin coded coded according to the SquirrelMail Coding Guidelines, but if you
experience problems with PHP code being displayed in some of the pages and
changing setting to "on" solves the problem, please file a bug report against
the failing plugin. The correct contact information is most likely to be found
in the plugin documentation.
Checking paths...
Data dir OK.
Attachment dir OK.
Plugins are not enabled in config.
Themes OK.
Default language OK.
Base URL detected as: http://w.___.com/src (location base set to
http://w.___.com)
Checking outgoing mail service....
SMTP server OK (220 smtp.___.com ESMTP Postfix)
Checking IMAP service....
IMAP server ready (* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR
LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot ready.)
Capabilities: * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID
ENABLE IDLE STARTTLS AUTH=PLAIN
Checking internationalization (i18n) settings...
gettext - Gettext functions are available. On some systems you must have
appropriate system locales compiled.
mbstring - Mbstring functions are available.
recode - Recode functions are available.
iconv - Iconv functions are available.
timezone - Webmail users can change their time zone settings.
Checking database functions...
not using database functionality.
Congratulations, your SquirrelMail setup looks fine to me!
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options):
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users