Difference between revisions of "ON MAIL"
From Recital Documentation Wiki
Helengeorge (Talk | contribs) |
Helengeorge (Talk | contribs) |
||
Line 31: | Line 31: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital (OpenVMS only) |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] |
Latest revision as of 15:47, 12 November 2009
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 (OpenVMS only)