Skip Menu |

This queue is for tickets about the Net-Server-Mail CPAN distribution.

Report information
The Basics
Id: 27154
Status: resolved
Worked: 5 min
Priority: 0/
Queue: Net-Server-Mail

People
Owner: x.guimard [...] free.fr
Requestors: sebastiano.piccoli [...] staff.dada.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.14
Fixed in: 0.16



Subject: Broken PIPE: QUIT command in body data
Date: Wed, 16 May 2007 16:44:53 +0200
To: bug-Net-Server-Mail [...] rt.cpan.org
From: Sebastiano Piccoli <sebastiano.piccoli [...] dada.net>
Hi, Net::Server::Mail version 0.15 doesn't treat correctly QUIT termination command when pipeling is active. When QUIT is sent without waiting server notification, we have found QUIT string concatenated with body data. We solved that issue by replacing: ($data = "$self->{last_chunk}$data") =~ s/(\r?\n)\.\r?\n/$1/s; with: $data = "$self->{last_chunk}$data"; ($data = $`) =~ s/\r?\n\.\r?\n//mg; in sub data_format(). Regards Raffaello Torraco, Sebastiano Piccoli & Valerio Paolini
Subject: Re: [rt.cpan.org #27154] Broken PIPE: QUIT command in body data
Date: Thu, 24 May 2007 10:08:12 +0200
To: bug-Net-Server-Mail [...] rt.cpan.org
From: Raffaello Torraco <raffaello.torraco [...] staff.dada.net>
Hi, The better solution to solve this bug is replacing: ($data = "$self->{last_chunk}$data") =~ s/(\r?\n)\.\r?\n/$1/s; with ($data = "$self->{last_chunk}$data") =~s/(\r?\n)\.\r?\n(QUIT\r?\n)?/$1/s; in sub data_part of Net/Server/Mail/SMTP.pm the previus solution had problem with Quoted-Printable (in bodydata remain the character of 'softlinebreak'). Regards, Raffaello Torraco, Sebastiano Piccoli, Valerio Paolini
RT-Send-CC: raffaello.torraco [...] staff.dada.net,sebastiano.piccoli [...] staff.dada.net
Le Jeu. Mai. 24 04:11:33 2007, raffaello.torraco@staff.dada.net a écrit : Show quoted text
> Hi, > > The better solution to solve this bug is replacing: > > ($data = "$self->{last_chunk}$data") =~ s/(\r?\n)\.\r?\n/$1/s; > > with > > ($data = "$self->{last_chunk}$data") =~s/(\r?\n)\.\r?\n(QUIT\r?\n)?/$1/s; > > in sub data_part of Net/Server/Mail/SMTP.pm > > the previus solution had problem with Quoted-Printable (in bodydata > remain the character of 'softlinebreak'). > > Regards, > Raffaello Torraco, Sebastiano Piccoli, Valerio Paolini
Hi, it's done in version 0.16. Thanks for the patch Regards, Xavier