From blaz.zupan@amis.net  Sat Mar 15 09:33:37 2003
Return-Path: <blaz.zupan@amis.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6B8E637B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 15 Mar 2003 09:33:37 -0800 (PST)
Received: from stingray.amis.net (stingray.amis.net [212.18.32.19])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7A42543FAF
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 15 Mar 2003 09:33:36 -0800 (PST)
	(envelope-from blaz.zupan@amis.net)
Received: from localhost (localhost [127.0.0.1])
	by stingray.amis.net (Postfix) with ESMTP id 4175538659F
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 15 Mar 2003 18:33:35 +0100 (CET)
Received: from stingray.amis.net ([127.0.0.1])
 by localhost (stingray.amis.net [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 89923-02 for <FreeBSD-gnats-submit@freebsd.org>;
 Sat, 15 Mar 2003 18:33:34 +0100 (CET)
Received: from titanic.medinet.si (titanic.medinet.si [212.18.42.5])
	by stingray.amis.net (Postfix) with ESMTP id DB837386599
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 15 Mar 2003 18:33:34 +0100 (CET)
Received: by titanic.medinet.si (Postfix, from userid 1000)
	id C162C55417; Sat, 15 Mar 2003 18:33:34 +0100 (CET)
Message-Id: <20030315173334.C162C55417@titanic.medinet.si>
Date: Sat, 15 Mar 2003 18:33:34 +0100 (CET)
From: Blaz Zupan <blaz.zupan@amis.net>
Reply-To: Blaz Zupan <blaz.zupan@amis.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: MAINTAINER UPDATE: bugfix for amavisd-new non-RFC compliance
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         50028
>Category:       ports
>Synopsis:       MAINTAINER UPDATE: bugfix for amavisd-new non-RFC compliance
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    petef
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 15 09:40:02 PST 2003
>Closed-Date:    Wed Mar 26 21:50:10 CST 2003
>Last-Modified:  Wed Mar 26 21:50:10 CST 2003
>Originator:     Blaz Zupan
>Release:        FreeBSD 4.7-RELEASE-p3 i386
>Organization:
>Environment:
System: FreeBSD titanic.medinet.si 4.7-RELEASE-p3 FreeBSD 4.7-RELEASE-p3 #0: Sun Feb 2 17:58:31 CET 2003 root@bigbrother.amis.net:/db/obj/usr/src/sys/TITANIC i386


	
>Description:

The current amavisd-new port version is 20021227.p2, which contains a
bug which causes the software to produce non-RFC 2822 compliant mails
when you have set a non-US locale.

>How-To-Repeat:

Set a different time locale and notice that amavisd-new produces
non-RFC 2822 compliant mail headers (dates are insterted in local
locale format instead of US locale).

>Fix:

As we are currently in ports freeze, a proper update to the latest
amavisd-new release 20030314 is not appropriate, so a temporary fix is
presented here. Please apply the following patch:

diff -urN amavisd-new.old/Makefile amavisd-new/Makefile
--- amavisd-new.old/Makefile	Fri Feb 21 18:54:44 2003
+++ amavisd-new/Makefile	Sat Mar 15 18:26:23 2003
@@ -8,6 +8,7 @@
 
 PORTNAME=	amavisd-new
 PORTVERSION=	20021227.p2
+PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=	http://www.ijs.si/software/amavisd/
 DISTNAME=	${PORTNAME}-${PORTVERSION:S/.p/-p/}
diff -urN amavisd-new.old/files/amavisd.sh.tmpl amavisd-new/files/amavisd.sh.tmpl
--- amavisd-new.old/files/amavisd.sh.tmpl	Sat Jan  4 12:52:47 2003
+++ amavisd-new/files/amavisd.sh.tmpl	Sat Mar 15 18:23:28 2003
@@ -18,6 +18,9 @@
 		if [ -e $MILTERFLAG ]; then
 			su %%AMAVISUSER%% -c "${PREFIX}/sbin/amavis-milter -D -p $DIR/amavis-milter.sock"
 		fi
+		export LANG="C"
+		export LC_ALL="C"
+		export LC_TIME="C"
 		su %%AMAVISUSER%% -c "${PREFIX}/sbin/amavisd -c ${CONFIGFILE} > /dev/null 2>&1" && echo -n ' amavisd'
 	fi
 	;;
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->petef 
Responsible-Changed-By: petef 
Responsible-Changed-When: Sat Mar 15 13:49:02 CST 2003 
Responsible-Changed-Why:  
I'll handle this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50028 
State-Changed-From-To: open->closed 
State-Changed-By: petef 
State-Changed-When: Wed Mar 26 21:49:54 CST 2003 
State-Changed-Why:  
Committed, thanks.  Sorry this didn't go in before the freeze, portmgr@ 
never responded to me. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50028 
>Unformatted:
