|

the software that grows
with you
| |
|
V32PopInfo()
|
| Retrieves the various info from a given
POP3 account. |
|
Syntax
|
| V32PopInfo( <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-dementional array corresponding the
number of messages with the following structure if successful otherwise {
{ 99 } }:
| Message Id |
Numeric message identity returned by the server. This
id has to be mentioned if V32PopDelete() function is applied. |
| Message Size |
Numeric message size in bytes. |
| Message Header |
Character string representing the raw header
information about the message. This header can be important if you
wish to deduct any other info about the message, such as,
'Content-Type', etc., or any message specific part. Note that header
informtion contains all of the other information this function
returns. |
| Message Subject |
Character string representing the subject of the
message. |
| Message Deleted |
Logical to indicate whether message bears deleted
status. |
| Message From |
Character string giving information about who has sent
the message. |
| Message Date |
Date and time information as a character string. |
|
|
Description
|
| This function retrieves the information
about all the messages stored on the specified POP3 mail account from
<cServer> as to id, size, header, subject, deleted status, from and
date. |
|
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
|
| |
|