Get message from MSN Messenger server with INDY

Giganews Newsgroups
Subject: Get message from MSN Messenger server with INDY
Posted by:  David (focus…@yeah.net)
Date: Fri, 30 Mar 2007

I'm writing a MSN Messenger client with INDY, but here is a problem, how to
read the MSG command for incoming message?

In MSN Messenger server, it sends MSG data as below:

    MSG examp…@passport.com Mike 133\r\

    MIME-Version: 1.0\r\

    Content-Type: text/plain; charset=UTF-8\r\

    X-MMS-IM-Format: FN=Arial; EF=I; CO=0; CS=0; PF=22\r\

    \r\

    Hello! How are you?

Please notice that there is no "\r\
" or other end-flag at the end of the
last line "Hello! How are you?", how to read it? It can not be read by
ReadLn.

Thanks

David

Replies