Subject: pkg/34390: [update] mail/p5-Mail-Mbox-MessageParser
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Martin Wilke <miwi@FreeBSD.org>
List: pkgsrc-bugs
Date: 08/30/2006 11:20:05
>Number:         34390
>Category:       pkg
>Synopsis:       [update] mail/p5-Mail-Mbox-MessageParser
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 30 11:20:04 +0000 2006
>Originator:     Martin Wilke
>Release:        NetBSD 4.0_BETA i386
>Organization:
>Environment:


System: NetBSD 4.0_BETA (MIWIBOX) #0: Tue Aug 29 10:29:38 CEST 2006
	miwi@mwilke.ath.cx:/usr/obj/sys/arch/i386/compile/MIWIBOX



>Description:


- Update to 1.4005

Changelog:
- Fixed a bug where emails with a line near the end that start with "From "
	would cause the Grep implementation to go into an infinite loop. (Thanks to
	Volker Kuhlmann <VolkerKuhlmann@gmx.de> for the bug report.)
- Fixed some minor coding style issues.

Version 1.4004: Tue Jul 11 2006
- Fixed a bug where, when emails are incomplete, the Perl parser would cache
	incorrect information, causing the Cache implementation to go into an
	infinite loop when it tried to use the invalid information.
- Improved the behavior for multi-part emails that lack a valid ending
	boundaries. Instead of treating the rest of the mailbox as part of the
	email, the Perl and Grep parsers now find the end of the email using (1) a
	Content-Length header if it is present, or (2) the next valid "^From " line
	after the email's header. (Many thanks to Volker Kuhlmann
	<VolkerKuhlmann@gmx.de>, Eduard Bloch <edi@gmx.de>, and Joey Hess
	<joeyh@debian.org> for their efforts to track down the cause of the bug.
	Special thanks to Volker for suggesting the right behavior. :)
- Simplified the code some

Version 1.4003: Sun May 21 2006
- Fixed a bug where multi-part emails having boundaries containing characters
	like " " and "+" would cause the remainder of the mailbox to be treated as
	part of the email with the boundary. (Thanks to Volker Kuhlmann
	<VolkerKuhlmann@gmx.de> for first reporting the bug, and thanks to Joey Hess
	<joeyh@debian.org> for the bugfix.)
- Fixed a previously unrevealed fault in the mailbox for the separators test.
	(The last message's separator wasn't used correctly.)

Version 1.4002: Thu Feb  9 2006
- Dropped tzip support. The program seems poorly supported and buggy. (I can't
  get it to run right on Mac, for example.)
- An invalid cache is detected and overwritten. This can occur if one changes
  architectures, or if the cache is otherwise corrupted. (Thanks to Volker
  Kuhlmann <VolkerKuhlmann@gmx.de> for the feature suggestion.)
- Fixed a major memory consumption bug in the Perl implementation, where the
  read buffer would grow exponentially. This caused the module to use memory
  proportional to the size of the mailbox, rather than the size of the largest
  email. (Thanks to David Cantrell <david@cantrell.org.uk> for the bug
  report.)

Version 1.4001: Tue Aug 2 2005
- Fixed a bug where emails involving time zones of length more than 3
  characters (e.g. "WETDST") would not be processed correctly.  (Thanks to
  Hans F. Nordhaug <Hans.F.Nordhaug@hiMolde.no> for the bug report.)
- Fixed some undefined value warnings for some test cases.
- Fixed a bug where mailboxes having emails with rfc822 attachments would not
  be parsed correctly

Version 1.4000: Thu Jul 7 2005
- Fixed a long-standing bug in the parsing of mail messages containing mail
  attachments. (Thanks to Brian May <bam@debian.org> for the bug report.)
- Dropped X-From-Line support for two reasons: (1) it seems to have
  disappeared from newer versions of Gnus, and (2) this module is for mbox
  format. (Thanks to Brian May <bam@debian.org> for prompting this.)
- Changed the mail parsing so that a blank line *must* separate mail messages,
  as per mail(5) (http://www.qmail.org/man/man5/mbox.html). Lack of a blank
  line will cause the second email to be considered to be part of the
  preceding email.

Version 1.3001: Mon Jun 6 2005
- Changed the testing code to use a more aggressive technique for clearing any
  existing cache, even if it is not readable.
- Fixed a problem with the grep implementation where locale settings (LC_ALL,
  LC_COLLATE, LANG, LC_CTYPE, LC_MESSAGES) would cause it to fail. (Thanks to
  Joey Hess <joey@kitenet.net> for the bug report.)

Version 1.3000: Mon Mar 14 2005
- Merged the internal caches used by the different mailbox parser
  implementations. This allows sharing of caching information. NOTE: Tighter
  integration of the classes means that you can no longer instantiate any of
  the implementations directly; you must use Mail::Mbox::MessageParser only.
- Fixed goofy version dependency for Benchmark::Timer.
- Fixed improper identification of mailboxes whose first email has a body
  containing a large number of foreign characters. (Thanks to Nigel Horne
  <njh@bandsman.co.uk> for the bug report and sample data.)
- Fixed a spurious warning in a test case. (Thanks to Nigel Horne
  <njh@bandsman.co.uk> for the bug report.)
- Fixed a test code bug that would cause some failed tests to incorrectly
  pass.
- Fixed a bug where emails with attachments would cause the mailbox parser to
  enter an infinite loop. (Thanks once again to Joey Hess <joey@kitenet.net>
  for the excellent bug report.)
- Fixed a bug where the cache would not be saved to disk when the file was
  finished being read.
- Fixed a bug in the test cases where some differences in test output would
  not be detected.
- Fixed a bug in Mbox::Mail::MessageParser::Grep that would cause it to
  improperly identify separate emails in a mailbox if the "From " line looked
  like "From klopp Mon Jan  5 08:50:15 +0100 2004". (Thanks to Frederic Klopp
  <klopp@math.univ-paris13.fr>" for the bug report and sample mailbox.)

Version 1.2130: Tue Dec 21 2004
- Fixed version numbers, which were incompatible with some modules. (Thanks to
  Tassilo von Parseval <tassilo.von.parseval@rwth-aachen.de> for the bug
  report)

Version 1.21.2:
- Fixed a dependency version error for Benchmark::Timer
- Switched to Test::More for better error reporting
- Improved test failure reporting
- Fixed a bug where messages embedded in other messages as RFC 822 attachments
  would be treated as separate emails. (Thanks to Will Fiveash
  <william.fiveash@sun.com> for the bug report.)
- Moved all configuration data to M::M::MP::Config

Version 1.21.1: Thu Sep 16 2004
- Fixed broken dependency specification in Makefile.PL
- Removed Module::Install extension dependency code from Makefile.PL. (Not
  needed with fixed extensions.)


>How-To-Repeat:





>Fix:


--- p5-Mail-Mbox-MessageParser.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/pkgsrc/mail/p5-Mail-Mbox-MessageParser/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- Makefile	4 Mar 2006 21:30:01 -0000	1.8
+++ Makefile	30 Aug 2006 06:57:44 -0000
@@ -1,8 +1,7 @@
 # $NetBSD: Makefile,v 1.8 2006/03/04 21:30:01 jlam Exp $
 
-DISTNAME=	Mail-Mbox-MessageParser-1.20
+DISTNAME=	Mail-Mbox-MessageParser-1.4005
 PKGNAME=	p5-${DISTNAME}
-PKGREVISION=	2
 CATEGORIES=	mail perl5
 MASTER_SITES=	${MASTER_SITE_PERL_CPAN:=Mail/}
 
Index: distinfo
===================================================================
RCS file: /home/pcvs/pkgsrc/mail/p5-Mail-Mbox-MessageParser/distinfo,v
retrieving revision 1.3
diff -u -r1.3 distinfo
--- distinfo	24 Feb 2005 09:59:26 -0000	1.3
+++ distinfo	30 Aug 2006 06:58:13 -0000
@@ -1,5 +1,5 @@
 $NetBSD: distinfo,v 1.3 2005/02/24 09:59:26 agc Exp $
 
-SHA1 (Mail-Mbox-MessageParser-1.20.tar.gz) = 0126c9c2f6297c7a636fb713d555bc7cc7c10992
-RMD160 (Mail-Mbox-MessageParser-1.20.tar.gz) = 95247840839f070e76f12a028e8534946a3e1c6a
-Size (Mail-Mbox-MessageParser-1.20.tar.gz) = 220737 bytes
+SHA1 (Mail-Mbox-MessageParser-1.4005.tar.gz) = 2730c3ca9e45710fe7b242c87c93c4d5125bb5d2
+RMD160 (Mail-Mbox-MessageParser-1.4005.tar.gz) = 8689fc03ee98c0662e02a8388b48886778c01cc7
+Size (Mail-Mbox-MessageParser-1.4005.tar.gz) = 276846 bytes
--- p5-Mail-Mbox-MessageParser.diff ends here ---