ON MAIL

From Recital Documentation Wiki
Jump to: navigation, search

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)