diff options
author | dholland <dholland@pkgsrc.org> | 2014-12-27 00:20:06 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2014-12-27 00:20:06 +0000 |
commit | af995fb51561bafc88a1be982eaca43356ef0a31 (patch) | |
tree | cd8e6d15562efcdc23ddf3626f5374d139624eb5 /mail/exmh | |
parent | 699872074cf04e046927e0f71af6200e198cd9a6 (diff) | |
download | pkgsrc-af995fb51561bafc88a1be982eaca43356ef0a31.tar.gz |
Fix message date printing, from PR 49479; submitted upstream.
From Robert Elz.
PKGREVISION++
Diffstat (limited to 'mail/exmh')
-rw-r--r-- | mail/exmh/Makefile | 4 | ||||
-rw-r--r-- | mail/exmh/distinfo | 3 | ||||
-rw-r--r-- | mail/exmh/patches/patch-lib_mime.tcl | 20 |
3 files changed, 24 insertions, 3 deletions
diff --git a/mail/exmh/Makefile b/mail/exmh/Makefile index 325672a69be..63bcb432b3e 100644 --- a/mail/exmh/Makefile +++ b/mail/exmh/Makefile @@ -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/ diff --git a/mail/exmh/distinfo b/mail/exmh/distinfo index 98e87eb4ba7..6b95cc8fdc8 100644 --- a/mail/exmh/distinfo +++ b/mail/exmh/distinfo @@ -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 diff --git a/mail/exmh/patches/patch-lib_mime.tcl b/mail/exmh/patches/patch-lib_mime.tcl new file mode 100644 index 00000000000..dc1be0335c4 --- /dev/null +++ b/mail/exmh/patches/patch-lib_mime.tcl @@ -0,0 +1,20 @@ +$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 \ |