cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Rich Gray <rgray_at_plustechnologies.com>
Date: Wed, 19 Oct 2011 11:47:43 -0400

operaxxox_at_yahoo.ca wrote:
> Le 19/10/2011 16:27, operaxxox_at_yahoo.ca 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.

Rich
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-10-19