![]() |
| Home |
|
|
Function xn_pop_mailsizeFunction xn_pop_mailsize retrieves the size of one or more messages on the POP3 server.
int xn_pop_mailsize(pop_context * context,
long * mail_sizes,
int first_msg,
int num_msgs);
ParameterscontextPointer to the context of the current session. *context must have been initialized by xn_pop_client. mail_sizesPointer to an array of long values to receive the returned data. first_msg1-based index of the first message to query. num_msgsNumber of long values available in the array pointed to by mail_sizes. return valueReturns 0 if successful, otherwise SOCKET_ERROR. If an error occurred, call xn_getlasterror and xn_geterror_string to return the error value. Section Error Codes further describes each error. Possible values for this function are:
If the function succeeds, mailsizes[0] will contain the size of the message with index first_msg; mailsizes[1] will contain the size of the message with index first_msg+1, etc. Any unused entries in mail_sizes[] are set to -1.
|