TIdPOP3.RetrieveRaw usage

Giganews Newsgroups
Subject: TIdPOP3.RetrieveRaw usage
Posted by:  Boba (Bo…@somewhere.world)
Date: Wed, 26 Aug 2015

Dear all; does below code make any sense?
{code:cppIndy}
//TIdPOP3 *IdPOP3;
//TIdMessage *IdMsg;
  //...
  if( IdPOP3->Connected() ){
    TIdStream *IdStream = new IdStream;
    if( IdPOP3->RetrieveRaw( 1, IdStream ) ){
      IdStream->Seek( 0, soFromBeginning );
      IdMsg->Clear();
      IdPOP3->ProcessMessage( IdMsg, IdStream, false );
      //present IdMsg to user
    }
    delete IdStream;
  }
{/code}
I'm trying to fugure out how to call ProcessMessage().
TIA.

Replies