Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Mar : Get message from MSN Messenger server with INDY

www.cryer.info
Managed Newsgroup Archive

Get message from MSN Messenger server with INDY

Subject:Get message from MSN Messenger server with INDY
Posted by:"David" (focus..@yeah.net)
Date:Fri, 30 Mar 2007 11:21:20

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 example@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:

www.cryer.info
Managed Newsgroup Archive