Bug#181851: marked as done (libmail-box-perl: Subtleties)

Debian Bug Tracking System owner at bugs.debian.org
Thu Dec 29 21:18:19 UTC 2005


Your message dated Thu, 29 Dec 2005 23:06:24 +0200
with message-id <20051229210623.GA425257 at sirppi.helsinki.fi>
and subject line Bug#181851: libmail-box-perl: Subtleties
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 21 Feb 2003 02:42:59 +0000
>From ghaverla at materialisations.com Thu Feb 20 20:42:58 2003
Return-path: <ghaverla at materialisations.com>
Received: from ppp164.ecn.ab.ca (newmain.materia) [198.161.206.164] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18m39M-00087n-00; Thu, 20 Feb 2003 20:42:57 -0600
Received: from ghaverla by newmain.materia with local (Exim 3.36 #1 (Debian))
	id 18m39j-0008FG-00; Thu, 20 Feb 2003 19:43:19 -0700
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Gordon Haverland <ghaverla at materialisations.com>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: libmail-box-perl: Subtleties
X-Mailer: reportbug 2.10
Date: Thu, 20 Feb 2003 19:43:19 -0700
Message-Id: <E18m39j-0008FG-00 at newmain.materia>
Delivered-To: submit at bugs.debian.org
X-Spam-Status: No, hits=-0.2 required=4.0
	tests=HAS_PACKAGE,SPAM_PHRASE_00_01
	version=2.44
X-Spam-Level: 

Package: libmail-box-perl
Version: 2.029-1
Severity: wishlist
Tags: upstream



-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux newmain.materia 2.4.18 #1 SMP Tue Aug 6 17:10:01 MDT 2002 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages libmail-box-perl depends on:
ii  libio-stringy-perl            2.108-1    Perl5 modules for IO from scalars 
ii  libmailtools-perl             1.56-1     Manipulate email in perl programs
ii  libmime-types-perl            1.002-1    Perl extension for determining MIM
ii  libobject-realize-later-perl  0.10-1     Delayed creation of objects
ii  libscalar-list-utils-perl     1.0701-1   A selection of general-utility lis
ii  libtimedate-perl              1.1301-1   Time and date functions for Perl
ii  perl                          5.8.0-17   Larry Wall's Practical Extraction 

-- no debconf information

I had always used Mail::Folder and family, decided to try
Mail::Message and family since it appears to be the successor.
I have been to perl.overmeer.net (perl.overmeer.org?) and looked
at their documentation too.  I don't know if what I am seeing
is a bug, or some subtlety in how things work (and I am not
seeing in the documentation).

1) I can see no way to directly call guessTimestamp().  Every
   variation I try in the debugger is unsuccessful.
2) I get messages from a $folder.  If I then try to retrieve
   the Received header (which can be multiple) I find a couple
   of things.  @array=$message->get('Received'); only retrieves
   the last (first?  one anyway) Received header.  It also
   does NOT return the timestamp information at the end (after
   the semicolon).  Calling @array=$message->head->get('Received')
   does return all the Received headers, with the time stamp
   still there.

Want a sample program (probably not a great one) which sorts mbox
messages by date?  (I've been concatenating many mboxen.)

Gord



---------------------------------------
Received: (at 181851-done) by bugs.debian.org; 29 Dec 2005 21:06:27 +0000
>From ntyni at cc.helsinki.fi Thu Dec 29 13:06:27 2005
Return-path: <ntyni at cc.helsinki.fi>
Received: from sirppi.helsinki.fi ([128.214.205.27])
	by spohr.debian.org with esmtp (Exim 4.50)
	id 1Es4yg-00056f-OS
	for 181851-done at bugs.debian.org; Thu, 29 Dec 2005 13:06:27 -0800
Received: from sirppi.helsinki.fi (localhost [127.0.0.1])
	by sirppi.helsinki.fi (8.13.2/8.13.2) with ESMTP id jBTL6ONf488494
	for <181851-done at bugs.debian.org>; Thu, 29 Dec 2005 23:06:24 +0200 (EET)
Received: (from ntyni at localhost)
	by sirppi.helsinki.fi (8.13.2/8.13.2/Submit) id jBTL6ODW026348
	for 181851-done at bugs.debian.org; Thu, 29 Dec 2005 23:06:24 +0200 (EET)
Date: Thu, 29 Dec 2005 23:06:24 +0200
From: Niko Tyni <ntyni at iki.fi>
To: 181851-done at bugs.debian.org
Subject: Re: Bug#181851: libmail-box-perl: Subtleties
Message-ID: <20051229210623.GA425257 at sirppi.helsinki.fi>
References: <E18m39j-0008FG-00 at newmain.materia>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <E18m39j-0008FG-00 at newmain.materia>
User-Agent: Mutt/1.4.2i
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-11.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER,
	HAS_PACKAGE autolearn=ham version=2.60-bugs.debian.org_2005_01_02

Package: libmail-box-perl
Version: 2.052-1

Hi,

this old bug is still open in the Debian database, so I assume
you haven't got a reply. Apologies for the long delay.

On Thu, Feb 20, 2003 at 07:43:19PM -0700, Gordon Haverland wrote:
> Package: libmail-box-perl
> Version: 2.029-1 

> I had always used Mail::Folder and family, decided to try
> Mail::Message and family since it appears to be the successor.
> I have been to perl.overmeer.net (perl.overmeer.org?) and looked
> at their documentation too.  I don't know if what I am seeing
> is a bug, or some subtlety in how things work (and I am not
> seeing in the documentation).
> 
> 1) I can see no way to directly call guessTimestamp().  Every
>    variation I try in the debugger is unsuccessful.

Sorry, I don't see what the problem is. This snippet more or less
straight from the Mail::Box manual page works fine for me:

#!/usr/bin/perl -w
use strict;
use Mail::Box::Manager;
my $mgr    = Mail::Box::Manager->new;
my $folder = $mgr->open(folder => 't.mbox');
print $folder->message(0)->guessTimestamp(), "\n";

> 2) I get messages from a $folder.  If I then try to retrieve
>    the Received header (which can be multiple) I find a couple
>    of things.  @array=$message->get('Received'); only retrieves
>    the last (first?  one anyway) Received header.  It also
>    does NOT return the timestamp information at the end (after
>    the semicolon).  Calling @array=$message->head->get('Received')
>    does return all the Received headers, with the time stamp
>    still there.

The first part of this is documented behaviour, and was so already in
2.029. The Mail::Message::get() documentation states that only the last
instance of multiple appearances is returned and suggests using
Mail::Message::Head::get() (which you're doing) if this isn't enough.

The other part, Mail::Message::get() stripping the attributes after the
semicolon, was documented in upstream version 2.043. The first Debian
version to include it was 2.052-1.

I'm closing this bug. Feel free to reply if you want to reopen it.

Cheers,
-- 
Niko Tyni	ntyni at iki.fi



More information about the pkg-perl-maintainers mailing list