Your message dated Sun, 16 Feb 2014 16:34:05 +0000
with message-id <[email protected]>
and subject line Bug#733317: fixed in libemail-mime-perl 1.926-1
has caused the Debian Bug report #733317,
regarding libemail-mime-perl: use of uninitialized values in Encode.pm and 
Header.pm
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
733317: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=733317
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libemail-mime-perl
Version: 1.925-1
Severity: normal

I see frequently this:

Use of uninitialized value $header in pattern match (m//) at 
/usr/share/perl5/Email/MIME/Header.pm line 19
Use of uninitialized value $val in pattern match (m//) at 
/usr/share/perl5/Email/MIME/Encode.pm line 31

I can easily reproduce the "Encode.pm line 31".  The warning shows up
on headers similar to this:

To: [email protected], =?Windows-1252?Q?G=F6ran_Haraldsson?= 
<[email protected]>

but not on this:

To: foo <[email protected]>, =?Windows-1252?Q?G=F6ran_Haraldsson?= 
<[email protected]>
    ^^^^^               ^

I can produce a simple example code, if needed.  Still, this patch:

--- Encode.pm.orig      2013-11-08 13:01:07.000000000 +0100
+++ Encode.pm   2013-12-28 13:33:37.083303204 +0100
@@ -28,8 +28,8 @@
 sub maybe_mime_encode_header {
     my ($header, $val, $charset) = @_;

-    return $val unless $val =~ /\P{ASCII}/
-                    || $val =~ /=\?/;
+    return $val unless $val &&
+        ($val =~ /\P{ASCII}/ || $val =~ /=\?/);

     $header =~ s/^Resent-//;

@@ -56,10 +56,10 @@
     @addrs = map {
         my $phrase = $_->phrase;
         $_->phrase(mime_encode($phrase, $charset))
-            if $phrase =~ /\P{ASCII}/;
+            if $phrase && $phrase =~ /\P{ASCII}/;
         my $comment = $_->comment;
         $_->comment(mime_encode($comment, $charset))
-            if $comment =~ /\P{ASCII}/;
+            if $comment && $comment =~ /\P{ASCII}/;
         $_;
     } @addrs;

---

removes some Encode.pm warnings.  I suspect the Header.pm warning has a
similar cause.  What about this patch:

--- Header.pm.orig      2013-11-08 13:01:07.000000000 +0100
+++ Header.pm   2013-12-28 13:51:49.000000000 +0100
@@ -16,7 +16,7 @@
   my @header = $self->SUPER::header(@_);
   local $@;
   foreach my $header (@header) {
-    next unless $header =~ /=\?/;
+    next unless $header && $header =~ /=\?/;
     $header = $self->_header_decode_str($header);
   }
   return wantarray ? (@header) : $header[0];
---

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (99, 'unstable'), (59, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=, LC_CTYPE= (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages libemail-mime-perl depends on:
ii  libemail-address-perl           1.900-1
ii  libemail-messageid-perl         1.402-1
ii  libemail-mime-contenttype-perl  1.017-1
ii  libemail-mime-encodings-perl    1.315-1
ii  libemail-simple-perl            2.201-1
ii  libmime-types-perl              2.04-1
ii  perl                            5.18.1-5

libemail-mime-perl recommends no packages.

libemail-mime-perl suggests no packages.

-- no debconf information


Cheers,

-- 
Cristian

--- End Message ---
--- Begin Message ---
Source: libemail-mime-perl
Source-Version: 1.926-1

We believe that the bug you reported is fixed in the latest version of
libemail-mime-perl, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
gregor herrmann <[email protected]> (supplier of updated libemail-mime-perl 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 16 Feb 2014 17:26:45 +0100
Source: libemail-mime-perl
Binary: libemail-mime-perl
Architecture: source all
Version: 1.926-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Perl Group <[email protected]>
Changed-By: gregor herrmann <[email protected]>
Description: 
 libemail-mime-perl - module for simple MIME message parsing
Closes: 733317
Changes: 
 libemail-mime-perl (1.926-1) unstable; urgency=medium
 .
   * New upstream release.
     Fixes "use of uninitialized values in Encode.pm and Header.pm"
     (Closes: #733317)
   * Update years of packaging copyright.
Checksums-Sha1: 
 352a9a8f74132ff252464b1a1c3c15659dfb81b8 2585 libemail-mime-perl_1.926-1.dsc
 7b813158330f54e3b6eea803d466ee05251f7e57 111817 
libemail-mime-perl_1.926.orig.tar.gz
 ceb693c849e2fb05aee1fb1959edd067c84221b9 3720 
libemail-mime-perl_1.926-1.debian.tar.xz
 3ccf1ca117679cb02d3908f45ff57dbdd862888b 32936 
libemail-mime-perl_1.926-1_all.deb
Checksums-Sha256: 
 d60cf7892174bcc1dd7c71bd6b360f67fbff71b1fbcdd025b41d2af534f2277e 2585 
libemail-mime-perl_1.926-1.dsc
 458b8dd539827a671352f4e9c759322e74e630b8e934fc942dbc06525a7d01a2 111817 
libemail-mime-perl_1.926.orig.tar.gz
 c143a7e1e3e41e94546797af945b219e80a8566973340d88ba80083040711596 3720 
libemail-mime-perl_1.926-1.debian.tar.xz
 7f12adf8e107ae59d76ac747e99fbe9d01eae80867fda8c4f516654a5cf0118e 32936 
libemail-mime-perl_1.926-1_all.deb
Files: 
 b8e9c9f8efb5403ea341e6c5328d0983 2585 perl optional 
libemail-mime-perl_1.926-1.dsc
 fd8b06d1bf7b8599bdcf808f49908451 111817 perl optional 
libemail-mime-perl_1.926.orig.tar.gz
 d04a74b0dd029f0abb34ff1ec73fb48e 3720 perl optional 
libemail-mime-perl_1.926-1.debian.tar.xz
 9aae594f4c0b5553147147b64ec8a30b 32936 perl optional 
libemail-mime-perl_1.926-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQJrBAEBCgBVBQJTAObZThSAAAAAAB0AKGlzc3Vlci1mcHJAZ3BnLmNvbW9kby5w
cml2LmF0RDFFMTMxNkU5M0E3NjBBODEwNEQ4NUZBQkIzQTY4MDE4NjQ5QUEwNgAK
CRC7OmgBhkmqBmjbD/sG3wun8Tc2jlbNh2XbQKjhkzTPQqfqR+ObPgm+Oup9j+sD
vorqqbhiSaZnp6qi9fZTmqQggXo6qDxSjzsifPieh44XXMumHpBy49WXZgALwEzg
UuuC8gCjFs1WDpoghIzGx9ylnxFklyNs3yOP9aihzYLhm+fAIx2H4VRfKvk8g16r
Y6LfxqJpXjuXsjcPqdumMSL10TPiI0/Ir+uz23FfrZvVQvv+waQcJH6TQkN02lOv
pX5khrSpEAqpB/KV8mF8JRnqUkpcfEitukGy70fTFLjGMx+RmY0BfhqGnH2fRxtj
gXxY78is31C3xng4ebNxsbe3rmXm2ba+1/4p07mOTL5pALgZHmXVzwsimi6z7zfe
NNR+qYAC5afEQ1R22w8115uNopVTFPZu94o3FYba23ty2Hm2+STUy+G+JIsWr0QQ
HOFPnV0zE6q5J/Uc7yLyV3By9KVyZYyaLd3XpOb7SRHMIOaqG5Gjbz3JpqaUypOh
bXeVdPaXErLKj+34xdJd9oHc1ghog7Z4SQBzTwKIDDXfqFrlR7P9wksxhfSM4JpL
jzvi6mzEz3RibiBbWsLfQkAzUXSYGYyrvGAesKhSXRpr1hyg2lsZS2kgb+h030p/
m2FznGa0bmLEFihZp4qv6kodNC7WufJSut9fppcf6SJPoPBmg2qgyt0SsXr/Hg==
=UBTK
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to