Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Mar 2004 23:13:22 +0600 (YEKST)
From:      Dmitry Sukhodoev <raven@bingo.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        oliver@FreeBSD.org
Subject:   ports/64900: bugs in /usr/ports/mail/sqwebmail 
Message-ID:  <20040329171322.C5B59560B6@bingo.ru>
Resent-Message-ID: <200403291720.i2THKEFF059072@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         64900
>Category:       ports
>Synopsis:       bugs in /usr/ports/mail/sqwebmail
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 29 09:20:14 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Sukhodoev
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
Bingo JSC
>Environment:
System: FreeBSD bingo.ru 4.9-STABLE FreeBSD 4.9-STABLE #0: Fri Dec 12 17:58:39 YEKT 2003 root@bingo.ru:/usr/obj/usr/src/sys/bingo i386
	

>Description:
1) port of sqwebmail does not support multiple charsets, but sqwebmail itself supports it;
2) sqwebmail have a problems with creating rfc2047 message headers "To:", "Cc:" and "Bcc:". its encodings twice while sending the message;
	

>How-To-Repeat:
just install and try to use /usr/ports/mail/sqwebmail with charsets, different from utf-8 and iso-8551-1
	

>Fix:
1) patch of /usr/ports/sqwebmail/Makefile:
=== begin patch ===
--- Makefile.original	Mon Mar 29 20:45:38 2004
+++ Makefile	Mon Mar 29 20:58:54 2004
@@ -54,6 +54,9 @@
 # set WITH_MAXMSGSIZE to max size of messages (including attachments)
 # set WITH_MAXARGSIZE to max size of a text message (excluding attachments)
 # set WITH_MAXFORMARGSIZE to max size of attachments
+#
+# set WITH_CHARSET=chset,chset,... to enable charsets. available charsets:
+# ISO-8859-1,ISO-8859-2,ISO-8859-3,ISO-8859-4,ISO-8859-5,ISO-8859-6,ISO-8859-7,ISO-8859-8,ISO-8859-9,ISO-8859-10,ISO-8859-13,ISO-8859-14,ISO-8859-15,TIS-620,WINDOWS-874,WINDOWS-1250,WINDOWS-1251,WINDOWS-1252,WINDOWS-1253,WINDOWS-1254,WINDOWS-1255,WINDOWS-1256,WINDOWS-1257,WINDOWS-1258,IBM437,CP437,IBM775,CP775,IBM850,CP850,IBM852,CP852,IBM855,CP855,IBM857,CP857,IBM860,CP860,IBM861,CP861,IBM862,CP862,IBM863,CP863,IBM864,CP864,IBM865,CP865,IBM866,CP866,IBM869,CP869,US-ASCII,UTF-8,UTF-7,KOI8-R,BIG5,BIG5-HKSCS,GB2312,EUC-CN,ISO-2022-JP,SHIFT_JIS,EUC-JP,ISO-2022-JP-1,ISO-2022-KR,EUC-KR,CP949,KS_C_5601-1987
 
 CACHEDIR?=	/var/sqwebmail/cache
 CACHEOWNER?=	bin
@@ -182,6 +185,10 @@
 
 .if defined(WITH_MAXFORMARGSIZE)
 CONFIGURE_ARGS+=	--with-maxformargsize=${WITH_MAXFORMARGSIZE}
+.endif
+
+.if defined(WITH_CHARSET)
+CONFIGURE_ARGS+=	--enable-unicode=${WITH_CHARSET}
 .endif
 
 MAN1=		maildirmake.1
=== end patch ===

2) /usr/ports/mail/sqwebmail/files/patch-rfc2047
=== begin /usr/ports/mail/sqwebmail/files/patch-rfc2047 ===
--- sqwebmail/newmsg_create.c.orig	Mon Mar 29 21:07:15 2004
+++ sqwebmail/newmsg_create.c	Mon Mar 29 21:07:41 2004
@@ -628,7 +628,7 @@
 {
 struct lookup_buffers *lookup_buffer_list=0;
 int	rc;
-char	*s=strdup(value);
+char	*s=rfc2047_decode_simple(value);
 
 	if (!s)	enomem();
 	rc=lookup_addressbook_do(header, s, &lookup_buffer_list);
=== end /usr/ports/mail/sqwebmail/files/patch-rfc2047 ===

	


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040329171322.C5B59560B6>