Share this page

# Example: imap_store

In the following example, the imap_store function sets flags for specific messages. Message 1 is marked as deleted and seen. Messages 5 through 10 are marked as deleted, and the Seen flag is removed from message 9.

        imap_store("UpdateMessages",
            "Mode=SILENT",
            "Message=1", "Flags=\Deleted \Seen", ENDITEM,
            "Message=5:10", "AddFlags=\Deleted", ENDITEM,
            "Message=9", "RemFlags=\Seen", ENDITEM,
            LAST );

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