wiki:Documentation/ARexxAPI/ISONLINE

Version 2 (modified by AmigaPhil, 15 months ago) (diff)

--

Languages:

ISONLINE

NAME

IsOnline -- Detect if YAM is currently getting or sending email. (V2.0)

TEMPLATE

FUNCTION

Detects if YAM is currently getting or sending email, setting the return code accordingly.

INPUTS

RETURNS

RC is set to 1 if YAM is currently getting or sending email.

NOTES

Due to the fact that YAM is not multithreaded yet, the ARexx host runs into the very same task and thus the command doesn't return until the transference is finished, and then of course it returns 0. Therefore, this command is only useful when using mail preselection (it will return 1 after all the headers are transferred and the application stops to wait for user interaction) until multithreading is implemented.

EXAMPLE

BUGS

SEE ALSO