4D Internet Commands v14

MSG_MessageSize

Home

 
4D Internet Commands v14
MSG_MessageSize

MSG_MessageSize 


 

MSG_MessageSize ( fileName ; headerSize ; bodySize ; msgSize ) -> Function result 
Parameter Type   Description
fileName  Text in Filename (path defaults to message folder)
headerSize  Longint in Header size (subtracts linefeeds if Prefs ON)
bodySize  Longint in Body size (subtracts linefeeds if Prefs ON)
msgSize  Longint in Entire message or file size (ignores Prefs)
Function result  Integer in Error Code

Given the fileName of a message document retrieved to disk by the POP3_Download command, the MSG_MessageSize command returns information about the sizes of the various portions of the message.

fileName is the name of the file or the full path of the file of which to return message information. If only a filename is given, the path will default to the folder set by POP3_SetPrefs or MSG_SetPrefs (see Compatibility note). If no folder has been specified by POP3_SetPrefs, the path will default to the folder containing the structure of the database (with 4D single-user) or to the 4D Client folder (with 4D Server).

headerSize is the long integer variable returned containing the size of the header.
bodySize is the long integer variable returned containing the size of the body.
These two parameters take the stripLineFeed parameter set by POP3_SetPrefs or MSG_SetPrefs into account.

Compatibility note (version 6.8.1): If the MSG_SetPrefs command is not used, the POP3_SetPrefs msgFolder and stripLineFeed parameters will be taken into account if the POP3_SetPrefs command has been used previously; if MSG_SetPrefs is used, the POP3_SetPrefs msgFolder and stripLineFeed parameters are ignored.

msgSize is the long integer variable returned containing the size of the message.

 
PROPERTIES 

Product: 4D Internet Commands
Theme: IC Downloaded Mail
Number: 88954

 
HISTORY 

Modified: 4D Internet Commands 6.8.1

 
SEE ALSO 

IMAP_Download
MSG_SetPrefs
POP3_DownLoad
POP3_SetPrefs

 
ARTICLE USAGE

4D Internet Commands ( 4D Internet Commands v11.4)
4D Internet Commands ( 4D v13.2)
4D Internet Commands ( 4D Internet Commands v12.1)
4D Internet Commands ( 4D Internet Commands v14 R2)
4D Internet Commands ( 4D Internet Commands v14)
4D Internet Commands ( 4D Internet Commands v14 R3)
4D Internet Commands ( 4D Internet Commands v14 R4)