On Tue, Jun 08, 2004 at 09:54:30AM -0400, Martin Leduc wrote:
> this is my ./configure param.
> 
> ./configure --prefix=/website/sqwebmail
>                --with-cachedir=/var/cache/sqwebmail
>                --enable-imageurl=/webmail
>                --enable-imagedir=/website/sqwebmail/images
>                --enable-cgibindir=/website/sqwebmail/cgi-bin
>                --without-authpam
>                --without-authuserdb
>                --enable-webpass=yes
>                --without-authpwd
>                --without-authshadow
>                --with-authvchkpw
>                --without-authldap
>                --enable-mimetypes=/usr/local/httpd/conf/mime.types
>                --disable-utf7-folder-encoding
>                --enable-unicode
>                --enable-dependency-tracking

OK. I have not been using i18n myself, but it's about time I had a look.
According to the INSTALL page, there is an --enable-unicode or
--enable-unicode=chset,chset,... flag

But looking at sqwebmail/configure.in I'd say you need

    --enable-unicode=yes

otherwise HAVE_SQWEBMAIL_UNICODE is not set. (If you don't set it, then the
toplevel configure sets --enable-unicode=iso0-8859-1,utf-8)

Sam: is this a bug? If so there's a one-line patch attached. But I'd be very
surprised if this hasn't been noticed before.

Aha: it looks like if you have utf7 encoding then unicode="yes" is forced.
But since you specified --disable-utf7-folder-encoding, then this has been
bypassed.

Martin, can you look in sqwebmail/config.h and see if it contains

/* #undef HAVE_SQWEBMAIL_UNICODE */

If so, there is a bug, and applying the attached patch should fix it;
configure again and check that you get

#define HAVE_SQWEBMAIL_UNICODE 1

instead. Then see if your problem is fixed or not. Please report back so
that Sam can apply the patch if it's appropriate.

> I found something interesting.
> 
> If I send Email from Outlook 2000, message display OK.
> 
> If I send Email from Office 2003, message wrong encoding....

If you have these two messages in a Maildir, then perhaps you can analyse
the headers and work out what is different. Or, gzip the two messages, and
post them as attachments to this list for us to look at. (gzipping is
important so that the message is not mangled by the mailer which is
forwarding them).

Regards,

Brian.
--- sqwebmail-4.0.4.orig/sqwebmail/configure.in Sun May 16 03:37:05 2004
+++ sqwebmail-4.0.4/sqwebmail/configure.in      Tue Jun  8 15:09:28 2004
@@ -521,7 +521,7 @@
        unicode=yes
 fi
 
-if test "$unicode" = "yes"
+if test "$unicode" != "no"
 then
        AC_DEFINE_UNQUOTED(HAVE_SQWEBMAIL_UNICODE,1,
        [ Compile a unicode-aware sqwebmail ])
--- sqwebmail-4.0.4.orig/sqwebmail/configure    Sun May 16 03:37:26 2004
+++ sqwebmail-4.0.4/sqwebmail/configure Tue Jun  8 15:16:44 2004
@@ -6762,7 +6762,7 @@
        unicode=yes
 fi
 
-if test "$unicode" = "yes"
+if test "$unicode" != "no"
 then
 
 cat >>confdefs.h <<_ACEOF

Reply via email to