Pawel Tecza writes:
Is it my configuration wrong whether init_default_locale() function
in sqwebmail.c file should be patched like below?
I think you're right on this one.
--- courier-0.53.1/webmail/sqwebmail.c-orig 2006-05-30 09:54:09.000000000 +0200
+++ courier-0.53.1/webmail/sqwebmail.c 2006-05-30 09:54:23.000000000 +0200
@@ -2013,17 +2013,18 @@
static void init_default_locale()
{
-char *cl=http11_best_content_language(HTMLLIBDIR,
+char *templatedir=get_templatedir();
+char *cl=http11_best_content_language(templatedir,
getenv("HTTP_ACCEPT_LANGUAGE"));
sqwebmail_content_language=
- http11_content_language(HTMLLIBDIR, cl);
+ http11_content_language(templatedir, cl);
sqwebmail_content_locale=
- http11_content_locale(HTMLLIBDIR, cl);
+ http11_content_locale(templatedir, cl);
sqwebmail_content_ispelldict=
- http11_content_ispelldict(HTMLLIBDIR, cl);
+ http11_content_ispelldict(templatedir, cl);
sqwebmail_content_charset=
- http11_content_charset(HTMLLIBDIR, cl);
+ http11_content_charset(templatedir, cl);
free(cl);
#if HAVE_LOCALE_H
Could you please help me to fix the problem?
Have a nice day,