On Mon, Apr 12, 2010 at 06:02:49PM +0200, Emanuele wrote:

>  I know that NULL is there to indicate end of a string. But why if I do:
> 
> send(SMTPSocket,session->reply,strlen(session->reply));  // session->reply
> is where I wrote the response code that ends with \r\n\0
> 
> it also sends '\0'?

No.

> strlen() shouldn't count \0, but Postfix receives '\0'.

No, it does not. You can convince yourself of this by looking at the
traffic with tcpdump. Bugs in your not yet working SMTP client
are not Postfix issues, please do not add traffic to this list
unless you have a *verified* (provable, reproducible with clear
and correct evidence) issue in Postfix.

-- 
        Viktor.

P.S. Morgan Stanley is looking for a New York City based, Senior Unix
system/email administrator to architect and sustain our perimeter email
environment.  If you are interested, please drop me a note.

Reply via email to