Sat Dec 27 00:20:06 2014 UTC ()
Fix message date printing, from PR 49479; submitted upstream.
>From Robert Elz.
PKGREVISION++


(dholland)
diff -r1.54 -r1.55 pkgsrc/mail/exmh/Makefile
diff -r1.7 -r1.8 pkgsrc/mail/exmh/distinfo
diff -r0 -r1.1 pkgsrc/mail/exmh/patches/patch-lib_mime.tcl

cvs diff -r1.54 -r1.55 pkgsrc/mail/exmh/Makefile (expand / switch to context diff)
--- pkgsrc/mail/exmh/Makefile 2014/01/11 14:42:04 1.54
+++ pkgsrc/mail/exmh/Makefile 2014/12/27 00:20:06 1.55
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.54 2014/01/11 14:42:04 adam Exp $
+# $NetBSD: Makefile,v 1.55 2014/12/27 00:20:06 dholland Exp $
 
 DISTNAME=	exmh-2.7.2
-PKGREVISION=	5
+PKGREVISION=	6
 CATEGORIES=	mail tk
 MASTER_SITES=	ftp://ftp.tcl.tk/pub/tcl/exmh/
 

cvs diff -r1.7 -r1.8 pkgsrc/mail/exmh/distinfo (expand / switch to context diff)
--- pkgsrc/mail/exmh/distinfo 2010/09/01 09:23:18 1.7
+++ pkgsrc/mail/exmh/distinfo 2014/12/27 00:20:06 1.8
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.7 2010/09/01 09:23:18 wiz Exp $
+$NetBSD: distinfo,v 1.8 2014/12/27 00:20:06 dholland Exp $
 
 SHA1 (exmh-2.7.2/exmh-2.7.2.tar.gz) = 0e8e11c29c7e1b9371d5a72b4cb2bf6085f20edf
 RMD160 (exmh-2.7.2/exmh-2.7.2.tar.gz) = fd0d8689304cdb6dcbcd341ec5ba5f8f5b2f9712
 Size (exmh-2.7.2/exmh-2.7.2.tar.gz) = 1081601 bytes
 SHA1 (patch-aw) = 396ef41611de11a9ba48f15711e20f4e44f73da9
+SHA1 (patch-lib_mime.tcl) = 180bef533f94eb07d46874ee06d724c0fa2c0e32
 SHA1 (patch-ta) = 0670c357f0317a4b4f7684425bce8f30d7ef9cd2
 SHA1 (patch-tb) = b5f51dabf9df11420de9b50aaf7dc422eff1f3ad
 SHA1 (patch-tc) = 87ed70fd2957821c2fab06c0dc33da446dffdb6f

File Added: pkgsrc/mail/exmh/patches/patch-lib_mime.tcl
$NetBSD: patch-lib_mime.tcl,v 1.1 2014/12/27 00:20:06 dholland Exp $

Fix message date printing, from PR 49479; submitted upstream.

--- lib/mime.tcl        2013-09-16 11:48:55.000000000 +0700
+++ lib/mime.tcl        2014-12-16 08:59:57.000000000 +0700
@@ -1302,7 +1302,12 @@
     global mime

     catch {
-	set msgtime   [clock scan $time]
+	set msgtime   [regsub -all {\([^)]*\)} $time {}]
+	set msgtime   [string trim $msgtime]
+	if [regexp {.* -0000$} $msgtime] {
+	    return
+	}
+	set msgtime   [clock scan $msgtime -format "%a, %d %b %Y %T %Z"]
 	set localtime [clock format $msgtime -format " %T"]
 	if { [string first $localtime $time] == -1 } {
 	    Preferences_Resource mime(localTimeFormat) localTimeFormat \