Example: imap_get_attribute_int

In the following example, the imap_get_attribute_int function retrieves an IMAP session attribute.

// Get the Message identifier of current email message.
    int msgid = imap_get_attribute_int("Message ID");