Bad Reading from Pop3-Server


#1

Hello,

I’m using the WIP-plugin to connect and reading mls from a POP3 Server.
The connection to the server works without problems.
When I check the mail, do I create a list with wip_list channel.
The event

WIP_CEV_OPEN:
      TRACE(( 4, "evh_pop3ClientList: WIP_CEV_OPEN\n" ));

      // Get total mail and size
  
      // Get the specified options
      ret = wip_getOpts( pPop3ClientCtx->CnxChannel,
                         WIP_COPT_POP3_NB_MAILS, &mails,
                         WIP_COPT_POP3_MAILSIZE, &mailsize,
                         WIP_COPT_END);

      wip_debug("maildrop info: nb mails=%d, totalsize=%d \n",
                 mails, mailsize);

      pPop3ClientCtx->totalMailSize = mailsize;
      pPop3ClientCtx->totalMails    = mails;

      pPop3ClientCtx->plistdataAllocBuffer   = (u8 *)adl_memGet( mails * WIP_POP3_FILEINFO_SIZE );

      if (pPop3ClientCtx->plistdataAllocBuffer != NULL)
      {
        pPop3ClientCtx->plistdataBuffer   = pPop3ClientCtx->plistdataAllocBuffer;
        pPop3ClientCtx->listdataLengthMax = mails * WIP_POP3_FILEINFO_SIZE;

        pPop3ClientCtx->listdataLength    = 0;
      }

      break;

also called.
And thereafter

WIP_CEV_READ:
  int ReadBytes;  
        ReadBytes = wip_read( pPop3ClientCtx->ListChannel, 
                          pPop3ClientCtx->plistdataBuffer, 
                          pPop3ClientCtx->listdataLengthMax );

        TRACE(( 4, "evh_pop3ClientListRead: read %d/%d \n",  
            ReadBytes, pPop3ClientCtx->listdataLength));
break;

.
Unfortunately, ReadBytes is always 0,
But in the debugging output i see the incoming data.
The same occurs when you pick up the mail data.

best regards
Ch Rost