Difference between revisions of "ON MAIL"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 1: Line 1:
=ON MAIL=
 
 
 
==Class==
 
Input/Output
 
 
 
 
==Purpose==
 
==Purpose==
 
Specify a command to execute when mail messages are trapped.
 
Specify a command to execute when mail messages are trapped.

Revision as of 13:47, 26 October 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 Terminal Developer (OpenVMS only)