Internet Messaging Functions (IMAP) > Alphabetical List of Functions > imap_set_max_param_len

imap_set_max_param_len

Example: imap_set_max_param_len Internet Messaging Functions (IMAP)

Sets the maximum buffer size to store a parameter value.

int imap_set_max_param_len( char *size );
size The buffer size in bytes.

Use imap_set_max_param_len to set the maximum size of the buffer used to store a message as a parameter. It is invoked before the function which saves the message to a parameter (imap_fetch and imap_search).

For sessions, use imap_set_max_param_len_ex.

Return Values

On success, returns actual buffer size that was set. Otherwise, returns 0.

Parameterization

All arguments of this function of the type char, can be parameterized with standard parameterization.