Bug#229979: marked as done (Mail::Message::Construct::Reply: automatic prelude construction is broken)

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


Your message dated Thu, 29 Dec 2005 23:21:20 +0200
with message-id <20051229212120.GA482511 at sirppi.helsinki.fi>
and subject line Bug#229979: Mail::Message::Construct::Reply: automatic prelude construction is broken
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; 27 Jan 2004 19:36:55 +0000
>From asuffield at suffields.me.uk Tue Jan 27 11:36:55 2004
Return-path: <asuffield at suffields.me.uk>
Received: from spc1-sout4-4-0-cust241.cosh.broadband.ntl.com (cyclone.suffields.me.uk) [81.103.170.241] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AlZ15-0006Dy-00; Tue, 27 Jan 2004 11:36:55 -0800
Received: from asuffield by cyclone.suffields.me.uk with local (Exim 3.36 #1 (Debian))
	id 1AlZ12-0006FH-00
	for <submit at bugs.debian.org>; Tue, 27 Jan 2004 19:36:52 +0000
Date: Tue, 27 Jan 2004 19:36:52 +0000
From: Andrew Suffield <asuffield at debian.org>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: Mail::Message::Construct::Reply: automatic prelude construction is broken
Message-ID: <20040127193652.GA23942 at suffields.me.uk>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="ReaqsoxgOBHFXBhH"
Content-Disposition: inline
X-Reportbug-Version: 2.39
User-Agent: Mutt/1.5.5.1+cvs20040105i
Sender: Andrew Suffield <asuffield at suffields.me.uk>
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_01_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=HAS_PACKAGE autolearn=no 
	version=2.60-bugs.debian.org_2004_01_25
X-Spam-Level: 


--ReaqsoxgOBHFXBhH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

Mail::Message::Construct::Reply::reply passes $to to replyPrelude,
under the assumption that the person you are sending the reply to is
the person who send the original mail (which is kinda wrong).

This breaks because $to might be an array reference (if it was
constructed from a Reply-To field, for example), and replyPrelude
can't do anything with that (and in fact throws an exception).

The workaround is to call replyPrelude by hand with a suitable value
(like $msg->sender) and pass it in.

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux cyclone 2.6.1 #8 Sat Jan 10 13:41:38 GMT 2004 i686
Locale: LANG=3DC, LC_CTYPE=3DC

Versions of packages libmail-box-perl depends on:
ii  libdigest-hmac-perl           1.01-1     create standard message integr=
ity=20
ii  libio-stringy-perl            2.108-1.1  Perl5 modules for IO from scal=
ars=20
ii  libmailtools-perl             1.59-1     Manipulate email in perl progr=
ams
ii  libmime-types-perl            1.005-1    Perl extension for determining=
 MIM
ii  libscalar-list-utils-perl     1:1.13-1   A selection of general-utility=
 lis
ii  libtimedate-perl              1.1600-2   Time and date functions for Pe=
rl
ii  liburi-perl                   1.23-1     Manipulates and accesses URI s=
trin
ii  perl                          5.8.2-2    Larry Wall's Practical Extract=
ion=20
ii  perl-modules [libscalar-list- 5.8.2-2    Core Perl modules.

-- no debconf information


--=20
  .''`.  ** Debian GNU/Linux ** | Andrew Suffield
 : :' :  http://www.debian.org/ |
 `. `'                          |
   `-             -><-          |

--ReaqsoxgOBHFXBhH
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAFr3UlpK98RSteX8RAilmAJ9KouZJ/aSCyOwE6SJsB3kJ/URsDACggm9Z
cn7l6QZhXyX/zdhlbrX0qP0=
=j/p+
-----END PGP SIGNATURE-----

--ReaqsoxgOBHFXBhH--

---------------------------------------
Received: (at 229979-done) by bugs.debian.org; 29 Dec 2005 21:21:22 +0000
>From ntyni at cc.helsinki.fi Thu Dec 29 13:21:22 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 1Es5D8-0005vt-2F
	for 229979-done at bugs.debian.org; Thu, 29 Dec 2005 13:21:22 -0800
Received: from sirppi.helsinki.fi (localhost [127.0.0.1])
	by sirppi.helsinki.fi (8.13.2/8.13.2) with ESMTP id jBTLLK8W008401
	for <229979-done at bugs.debian.org>; Thu, 29 Dec 2005 23:21:20 +0200 (EET)
Received: (from ntyni at localhost)
	by sirppi.helsinki.fi (8.13.2/8.13.2/Submit) id jBTLLKjG514458
	for 229979-done at bugs.debian.org; Thu, 29 Dec 2005 23:21:20 +0200 (EET)
Date: Thu, 29 Dec 2005 23:21:20 +0200
From: Niko Tyni <ntyni at iki.fi>
To: 229979-done at bugs.debian.org
Subject: Re: Bug#229979: Mail::Message::Construct::Reply: automatic prelude construction is broken
Message-ID: <20051229212120.GA482511 at sirppi.helsinki.fi>
References: <20040127193652.GA23942 at suffields.me.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20040127193652.GA23942 at suffields.me.uk>
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.055-1

On Tue, Jan 27, 2004 at 07:36:52PM +0000, Andrew Suffield wrote:
> Package: libmail-box-perl
> Version: 2.052-1
> Severity: normal
> 
> Mail::Message::Construct::Reply::reply passes $to to replyPrelude,
> under the assumption that the person you are sending the reply to is
> the person who send the original mail (which is kinda wrong).
> 
> This breaks because $to might be an array reference (if it was
> constructed from a Reply-To field, for example), and replyPrelude
> can't do anything with that (and in fact throws an exception).

Hi,

this was fixed in upstream version 2.055:

--- Mail-Box-2.054/lib/Mail/Message/Construct/Reply.pm	2004-02-06 22:53:09.000000000 +0200
+++ libmail-box-perl-2.055/lib/Mail/Message/Construct/Reply.pm	2004-05-16 16:43:17.000000000 +0300
@@ -3,7 +3,7 @@
 
 package Mail::Message;
 use vars '$VERSION';
-$VERSION = '2.054';
+$VERSION = '2.055';
 
 use Mail::Message::Body::Multipart;
 use Mail::Address;
@@ -223,6 +223,8 @@
 sub replyPrelude($)
 {   my ($self, $who) = @_;
  
+    $who = $who->[0] if ref $who eq 'ARRAY';
+
     my $user
      = !defined $who                     ? undef
      : !ref $who                         ? (Mail::Address->parse($who))[0]


I'm closing this bug.

Cheers,
-- 
Niko Tyni	ntyni at iki.fi



More information about the pkg-perl-maintainers mailing list