ON MAIL

From Recital Documentation Wiki
Revision as of 16:26, 16 March 2009 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

ON MAIL

Class

Input/Output


Purpose

Specify a command to execute when mail messages are trapped.


Syntax

ON MAIL <command>


See Also

!, ALIAS, DO, RUN, SET MAIL, SPAWN, MAIL()


Description

The ON MAIL command causes the specified <command> to execute whenever OpenVMS mail messages are received. The <command> may be any Recital/4GL command. When ON MAIL is specified without a <command>, previously specified commands are cleared. SET MAIL must be ON in order to trap incoming mail messages. When SET MAIL is OFF mail messages are ignored. This command only operates on OpenVMS.


Example

procedure go_mail
save screenrun mailrestore screen
return
 
// Go to mail when a message is received
set mail on
on mail do go_mail
use demo
browse
on mail


Products

Recital Terminal Developer (OpenVMS only)