cURL / Mailing Lists / curl-library / Single Mail


Re: [Bulk] Re: [Bulk] RE: SMTP, data corruption and dot stuffing

From: Rich Gray <>
Date: Wed, 19 Oct 2011 11:47:43 -0400 wrote:
> Le 19/10/2011 16:27, a écrit :
>> I've been able to step into debugger to analyze Curl_smtp_escape_eob
>> (smtp.c) but I've been unable to spot a dot insertion in the buffer.
>> Will continue to look into it.
> The dot is inserted via the dump function for CURLOPT_DEBUGFUNCTION
> fprintf(stream, "%c",
> (ptr[i+c]>=0x20) && (ptr[i+c]<0x80)?ptr[i+c]:'.');
> Maybe the problem is not related to dot stuffing after all
> I still don't understand why the dump puts where the message is getting
> corrupted.

Looks like the dot is not inserted, but instead substituted for a
non-printable character. (Shouldn't that <0x80 be <0x7F ? DEL is generally
non-printable as well.

List admin:
Received on 2011-10-19