3 messages in net.sourceforge.lists.courier-sqwebmailRe: [sqwebmail] SQWEBMAIL_TEMPLATEDIR...
FromSent OnAttachments
Pawel TeczaMay 30, 2006 1:07 am 
Sam VarshavchikMay 30, 2006 3:48 am 
Pawel TeczaMay 31, 2006 12:58 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [sqwebmail] SQWEBMAIL_TEMPLATEDIR and HTTP_ACCEPT_LANGUAGEActions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:May 30, 2006 3:48:14 am
List:net.sourceforge.lists.courier-sqwebmail

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,