WebPopStat Function

Action

Retrieves the mailbox status after a successful login.

Include file

WebAPI.bdh

Syntax

WebPopStat( in  hPop       : number, 
            out nMsgNumber : number, 
            out nMsgSize   : number ): boolean;

Return value

  • true if the response was successfully received and the server confirmed with "+OK"

  • false otherwise

Parameter Description
hPop Handle to a Web connection that was created by WebPopConnect
nMsgNumber Parameter that receives the total number of messages available in the mailbox
nMsgSize Parameter that receives the total size in bytes of available messages in the mailbox

Example

dcltrans 
  transaction TWebPop3 
  const
    USERNAME := "username";
    PASSWORD := "password"; 
  var
    hPop, nMessages, nSize: number; 
  begin
    WebPopConnect(hPop, "standardhost", WEB_PORT_POP3);
    WebPopUser(hPop, USERNAME);
    WebPopPass(hPop, PASSWORD); 
    WebPopStat(hPop, nMessages, nSize);
    WebPopList(hPop, IGNORE);
    WebPopRset(hPop);
    WebPopQuit(hPop);
    WebPopShutdown(hPop);
  end TWebPop3;

Sample scripts

WebMulti01.bdf

SilkEssential sample

eMail.sep