|

the software that grows
with you
| |
|
V32PopStatus()
|
| Checks for number of messages and their
size of a given POP3 account. |
|
Syntax
|
| V32PopStatus( <cServer>,
<cAccount>, <cPassword>, [nPort] ) |
|
Arguments
|
| cServer |
Character string representing address of the POP3
server. |
| cAccount |
Character string specifying accound id of the POP3
mail box. |
| cPassword |
Character string as password used to access that
account. |
| nPort |
Numeric port address. Default is 110. |
|
|
Returns
|
| A two element array with nMessages and
nSize elements. |
|
Description
|
| This function retrieves the status of a
POP3 mail account from <cServer> in terms of number of messages and
total size of those messages. |
|
Usage
|
local cServer := 'vouchcac.com'
local cAccount := 'test@vouchcac.com'
local cPassword := 'test'
local nPort := 110
local aStatus, aInfo, aMsgs, aIds
aStatus := V32PopStatus( cServer, cAccount, cPassword, nPort )
if len( aStatus ) > 1
? 'Number of Messages: ', aStatus[ 1 ]
? 'Size of Messages in Bytes: ', aStatus[ 2 ]
if aStatus[ 1 ] > 0
aInfo := V32PopInfo( cServer, cAccount, cPassword, nPort )
if len( aInfo[ 1 ] ) > 1
? 'Message Id: ', aInfo[ 1,1 ]
? 'Message Size: ', aInfo[ 1,2 ]
? 'Message Header: ', aInfo[ 1,3 ]
? 'Message Deleted: ', aInfo[ 1,4 ]
? 'Message From: ', aInfo[ 1,5 ]
? 'Message Date: ', aInfo[ 1,6 ]
aIds := { 1, 2, 3 } // The ids obtained through aInfo
aMsgs := V32PopMsgs( cServer, cAccount, cPassword, nPort, aIds )
endif
endif
endif
|
|
Tips
|
|
|