From 75aec761c3325220127c30ccaea0fe6b5c18f632 Mon Sep 17 00:00:00 2001 From: ps Date: Wed, 7 Jan 2009 22:34:42 +0000 Subject: [PATCH] disable CHUNKING extension --- src/Proxy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Proxy.cpp b/src/Proxy.cpp index 851f43a..f32f52f 100644 --- a/src/Proxy.cpp +++ b/src/Proxy.cpp @@ -300,14 +300,14 @@ void Proxy::run(string &peer_address) throttled=false; authenticated=true; } - if("250-pipelining"==Utils::strtolower(strtemp)) //this solves our problems with pipelining-enabled servers + if("250-pipelining"==Utils::strtolower(strtemp)||"250-chunking"==Utils::strtolower(strtemp)) //this solves our problems with pipelining-enabled servers strtemp=""; //this is a special case, we can't just ignore the line if it's the last line (doesn't have the dash after the code) //so we just say we support an imaginary extension (noextension). //caveat: this makes us identificable, so, if you can, configure your smtp server to either don't support pipelining //or to not advertise it as the last capability. - if("250 pipelining"==Utils::strtolower(strtemp)) + if("250 pipelining"==Utils::strtolower(strtemp)||"250 chunking"==Utils::strtolower(strtemp)) strtemp="250 x-noextension"; if(strtemp.length()) outside.writeLine(strtemp);