Google Groupes n'accepte plus les nouveaux posts ni abonnements Usenet. Les contenus de l'historique resteront visibles.

[AMaViS-user] A misfeature in libnet-1.20 (Net::Cmd, Net::SMTP)

49 vues
Accéder directement au premier message non lu

Mark Martinec

non lue,
8 févr. 2007, 21:04:4708/02/2007
à
The Perl module 'libnet' (implementing Net::SMTP, Net::Cmd)
has recently been upgraded from 1.19 to 1.20
(also known as port net/p5-Net in FreeBSD ports collection).

It unwarrantedly attempts to convert 8-bit characters
to UTF-8 without considering a declared MIME type.

See a bug report in CPAN:
http://rt.cpan.org/Public/Bug/Display.html?id=24835

Please stay away from libnet-1.20 until the problem
is fixed, or apply the following simple patch to one
of its files:


--- Net/Cmd.pm~ Fri Oct 27 13:08:07 2006
+++ Net/Cmd.pm Thu Feb 8 17:32:52 2007
@@ -22,6 +22,4 @@
}

-my $doUTF8 = eval { require utf8 };
-
$VERSION = "2.27";
@ISA = qw(Exporter);
@@ -395,6 +393,4 @@
my $arr = @_ == 1 && ref($_[0]) ? $_[0] : \@_;
my $line = join("" ,@$arr);
-
- utf8::encode($line) if $doUTF8;

return 0 unless defined(fileno($cmd));

Mark

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
AMaViS-user mailing list
AMaVi...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

franck....@gmail.com

non lue,
19 mars 2007, 10:13:1519/03/2007
à
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> AMaViS-user mailing list
> AMaViS-u...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/amavis-user

thank you very much for this patch.

vah...@gmail.com

non lue,
24 mars 2007, 12:38:1824/03/2007
à
On Feb 9, 4:04 am, Mark.Martinec+ama...@ijs.si (Mark Martinec) wrote:
> The Perl module 'libnet' (implementing Net::SMTP, Net::Cmd)
> has recently been upgraded from 1.19 to 1.20
> (also known as port net/p5-Net in FreeBSD ports collection).
>
> It unwarrantedly attempts to convert 8-bit characters
> to UTF-8 without considering a declared MIME type.
>
> See a bug report in CPAN:
> http://rt.cpan.org/Public/Bug/Display.html?id=24835
>
> Please stay away from libnet-1.20 until the problem
> is fixed, or apply the following simplepatchto one

> of its files:
>
> --- Net/Cmd.pm~ Fri Oct 27 13:08:07 2006
> +++ Net/Cmd.pm Thu Feb 8 17:32:52 2007
> @@ -22,6 +22,4 @@
> }
>
> -my $doUTF8 = eval { require utf8 };
> -
> $VERSION = "2.27";
> @ISA = qw(Exporter);
> @@ -395,6 +393,4 @@
> my $arr = @_ == 1 && ref($_[0]) ? $_[0] : \@_;
> my $line = join("" ,@$arr);
> -
> - utf8::encode($line) if $doUTF8;
>
> return 0 unless defined(fileno($cmd));
>
> Mark
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> AMaViS-user mailing list
> AMaViS-u...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/amavis-user

Hi

applying this patch (copy-pasted from the post to a file) with:

cd /usr/lib/perl5/5.8.5
patch -p0 < /root/patchfile

gives me this message:

Hunk #1 FAILED at 22.
1 out of 1 hunk FAILED -- saving rejects to file Net/Cmd.pm.rej
missing header for unified diff at line 11 of patch
(Patch is indented 1 space.)
can't find file to patch at input line 11
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
| @ISA = qw(Exporter);
--------------------------
File to patch:


Am I doing something wrong here? (using CentOS 4.4)

Vahur

vah...@gmail.com

non lue,
24 mars 2007, 12:59:1124/03/2007
à
On Mar 24, 6:38 pm, vah...@gmail.com wrote:
> On Feb 9, 4:04 am, Mark.Martinec+ama...@ijs.si (Mark Martinec) wrote:
>
>
>
>
>
> > The Perl module 'libnet' (implementing Net::SMTP, Net::Cmd)
> > has recently been upgraded from 1.19 to 1.20
> > (also known as port net/p5-Net in FreeBSD ports collection).
>
> > It unwarrantedly attempts to convert 8-bit characters
> > to UTF-8 without considering a declared MIME type.
>
> > See a bug report in CPAN:
> > http://rt.cpan.org/Public/Bug/Display.html?id=24835
>
> > Please stay away fromlibnet-1.20 until the problem
> Vahur- Hide quoted text -
>
> - Show quoted text -

Soleved it by removing the lines manually from the Cmd.pm file. But I
still cannot see why the patch didn't work :(

Vahur

0 nouveau message