MAIL()

From Recital Documentation Wiki
Revision as of 17:30, 2 December 2009 by Helengeorge (Talk | contribs)

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

Purpose

Function to return the last mail message


Syntax

MAIL([<expN>])


See Also

ON MAIL, SET MAIL


Description

The MAIL() function returns the last mail message received at the current terminal. The optional parameter <expN> is a numeric expression that must equal 1. This option causes the MAIL() function to return the sender name. The SET MAIL command must be ON in order to trap mail messages. When SET MAIL is OFF, mail messages are ignored.


Example

// Trap mail messages
set mail on
on mail do mail_proc with mail(), mail(1)
use demo
browse
on mail


Products

Recital (OpenVMS only)