PMDF User's Guide
OpenVMS Edition


Previous Next Contents Index


SET & SHOW APPLICATION_COMMAND

Controls the DCL command used to display MIME application type body parts.

restrictions

Requires SYSPRV privilege to set information for users other than yourself; requires SYSPRV or SYSNAM privilege to show information about users other than yourself.

Syntax

SET APPLICATION_COMMAND command

SET NOAPPLICATION_COMMAN

SHOW APPLICATION_COMMAND

Qualifiers Defaults
/ALL /NOALL
/LOG /NOLOG
/UIC="[g,m]" None
/USER=username None

Parameters

command

DCL command to use to display an application.

Description

The SET and SHOW APPLICATION_COMMAND commands control how PMDF MAIL displays MIME messages containing parts labelled as type application (e.g., word processing documents, PostScript files, DDIF files, etc.).

PMDF MAIL has its own procedures for displaying applications. You may override these procedures with the SET APPLICATION_COMMAND. With this command, you specify a DCL command which accepts five parameters: (1) the message content type (always APPLICATION), (2) the message content subtype, (3) the name of the file containing the data to display, (4) a title to show, if possible, when displaying the application, and (5) whether or not to delete the file after displaying it (DELETE or NODELETE). The specified DCL command will then be executed from a subprocess each time an application is to be displayed; the parameters (1) --- (5) will be provided by PMDF MAIL.

To undo a setting made with SET APPLICATION_COMMAND, use SET NOAPPLICATION_COMMAN. The current setting, if any, may be queried with SHOW APPLICATION_COMMAND.


Examples

Suppose that the following command procedure D1:[BOB]APPL.COM has been developed to display applications:


$ set noverify 
$ set noon 
$ ! 
$ ! D1:[BOB]APPL.COM  -- Display a message part of type APPLICATION 
$ ! 
$ ! P1 = content type    (always "APPLICATION") 
$ ! P2 = content subtype (accept DDIF/DIVA/DOTS/DTIF & POSTSCRIPT) 
$ ! P3 = file name       (file containing application data to display) 
$ ! P4 = title           (we ignore this) 
$ ! P5 = DELETE/NODELETE 
$ ! 
$ P2 = F$EDIT (P2, "UPCASE") 
$ if "POSTSCRIPT"  .eqs. P2 then goto PS 
$ if "DDIF"        .eqs. P2 then goto CDA 
$ if "DIVA"        .eqs. P2 then goto CDA 
$ if "DOTS"        .eqs. P2 then goto CDA 
$ if "DTIF"        .eqs. P2 then goto CDA 
$ write sys$output "Unrecognized content type/subtype: ''P1'/''P2'" 
$ goto DONE 
$ ! 
$ PS: 
$   VIEW/INTERFACE=DECWINDOWS 'P3'/FORMAT=PS 
$   goto DONE 
$ CDA: 
$   if P2 .nes. "DTIF" then P2 = "DDIF" 
$   VIEW/INTERFACE=DECWINDOWS 'P3'/FORMAT='P2' 
$   goto DONE 
$ DONE: 
$   if f$edit (P5, "UPCASE") .eqs. "DELETE" then delete/nolog 'P3'; 
$   exit 
To instruct PMDF MAIL to use this procedure to display message parts of type APPLICATION, issue the following command:


EMAIL> SET APPLICATION_COMMAND "@D1:[BOB]APPLICATION.COM"
EMAIL> SHOW APPLICATION_COMMAND
Application viewing command is "@D1:[BOB]APPLICATION.COM". 
EMAIL> 


Previous Next Contents Index