Share this page

# imap_check_ex

Internet Messaging Functions (IMAP)

Requests a checkpoint for a specific IMAP session.

    int imap_check_ex( IMAP *ppimap, char *transaction );

ppimap | A session identifier.
transaction | A transaction name for this step in quotes. To avoid creating a transaction for this step, use a NULL string, "".

The imap_check_ex function requests a checkpoint in the current mailbox, for a specific IMAP session. A checkpoint refers to any implementation-dependent housekeeping applied internally to the mailbox.

This housekeeping is not normally executed as part of each command. For example, a possible checkpoint is resolving the server's in-memory state of the mailbox, with the state on its disk. If a server implementation has no housekeeping considerations, this command is equivalent to imap_noop. Note that performing a check may not be instantaneous.

This function is for use with multiple sessions. For global sessions, use the imap_check function, which leaves out the session identifier.

## Return Values

If this function succeeds, it returns LR_PASS. Otherwise, it returns LR_FAIL.

## Parameterization

Standard parameterization is not available for this function.

## Example

In the following example, the imap_check_ex function performs a simple check operation.

        imap_check_ex(&imap1, "CheckMailbox");

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: