> I will repeat my question:
> Why when i change my langage to english email header format is fine, but
> when i chage my language in SquirrelMail to Bulgarian header contain
> cyrillyc symbols. I not change anything in server configuration only in
> SquirrelMail.
because yahoo doesn't pass LC_ALL, LANG and LANGUAGE environment variables
to qmail-scanner script.
When SquirrelMail translations are used, they set these three variables.
Without these variables gettext translation does not work. When you send
email through /usr/sbin/sendmail, system retains those variables and
passes them to qmail-scanner. Qmail scanner uses localized date functions.
v.1.22 reverts LC_ALL to C. it does not change LANG or LANGUAGE variables.
When LC_ALL=C, date should be in English.
If qmail-scanner v.1.22 still produces Bulgarian date, check
----
#Set locale to "C" (English). That way any string checks on forked apps
#will tend to be in English - simplifying/standardizing regex matches
my $orig_locale=$ENV{'LC_ALL'};
$ENV{'LC_ALL'} = 'C';
----
in main qmail-scanner script and add code that reverts LANG and LANGUAGE
or rewrite date functions.
In order to reproduce problem in console, you have to use commands
export LANG=bg_BG
export LC_ALL=bg_BG
export LANGUAGE=bg_BG
export QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"
mail [EMAIL PROTECTED] -s headertest < /dev/null
"export QMAILQUEUE" is not necessary in your setup, because you are not
using qmail-queue patch.
If you can reproduce localized date in qmail-scanner v.1.22, inform about
the problem qmail-scanner developers. Explain how to reproduce it. Provide
fix if you can code in perl.
--
Tomas
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&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