disable CHUNKING extension
This commit is contained in:
parent
cb6f4ee472
commit
75aec761c3
|
@ -300,14 +300,14 @@ void Proxy::run(string &peer_address)
|
||||||
throttled=false;
|
throttled=false;
|
||||||
authenticated=true;
|
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="";
|
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)
|
//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).
|
//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
|
//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.
|
//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";
|
strtemp="250 x-noextension";
|
||||||
if(strtemp.length())
|
if(strtemp.length())
|
||||||
outside.writeLine(strtemp);
|
outside.writeLine(strtemp);
|
||||||
|
|
Loading…
Reference in a new issue