wiki:Documentation/ARexxAPI/MAILSTATUS

Version 3 (modified by AmigaPhil, 6 months ago) (diff)

--

Languages:


ARexx API

    MAILSTATUS

    NAME

    MailStatus -- Change the status of the selected messages. (V2.0)

    TEMPLATE

    STATUS/A

    FUNCTION

    Changes the status of the selected messages.

    Only the basic "read", "unread", "on hold" and "ready to send" status can be changed with the command; additional flags like "marked", "important", etc. remain untouched.

    INPUTS

    STATUS/A - may be one of

    H - on hold
    N - new and unread
    O - old and read
    Q - queued for sending
    R - the same as O
    U - old unread
    W - the same as Q

    RETURNS

    RC is set to 5 if no valid STATUS is supplied, or to 10 if it is not supplied at all.

    NOTES

    The command won't mind the type of folder, i.e. it will change the status of a message in the Incoming folder to "Ready to send" if instructed to do so.

    EXAMPLE

    /* Switch all selected messages to "Unread" */

    MAILSTATUS U

    BUGS

    SEE ALSO