On Mon, May 15, 2006 at 03:59:33PM -0500, Norbert Tretkowski wrote: > a while ago, I received a bugreport against the Debian package of > nullmailer, saying that qmqp is broken: > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=332482 > > I have no way to test it, could you please take a look at it?
Confirmed. The following patch fixes it. -- Bruce Guenter <[EMAIL PROTECTED]> http://untroubled.org/ OpenPGP key: 699980E8 / D0B7 C8DD 365D A395 29DA 2E2A E96F B2DC 6999 80E8 --- protocols/qmqp.cc (revision 142) +++ protocols/qmqp.cc (working copy) @@ -69,8 +69,8 @@ if(!skip_envelope(msg)) protocol_fail(ERR_MSG_READ, "Error re-reading message"); unsigned long fullsize = strlen(itoa(size)) + 1 + size + 1 + env.length(); - out << itoa(fullsize) << ":" // Start the "outer" netstring - << itoa(size) << ":"; // Start the message netstring + out << itoa(fullsize) << ":"; // Start the "outer" netstring + out << itoa(size) << ":"; // Start the message netstring fdbuf_copy(*msg, out, true); // Send out the message out << "," // End the message netstring << env // The envelope is already encoded
pgpvWbAvX1iWP.pgp
Description: PGP signature