From:	CRDGW2::CRDGW2::MRGATE::"SMTP::CRVAX.SRI.COM::RELAY-INFO-VAX" 12-JUN-1991 13:53:21.39
To:	ARISIA::EVERHART
CC:	
Subj:	Re: MAIL utility routines and missing defs in maildef.h

From:	RELAY-INFO-VAX@CRVAX.SRI.COM@SMTP@CRDGW2
To:	Everhart@Arisia@MRGATE

Received:  by crdgw1.ge.com (5.57/GE 1.100)
	 id AA27499; Wed, 12 Jun 91 09:35:26 EDT
Received: From UCBVAX.BERKELEY.EDU by CRVAX.SRI.COM with TCP; Wed, 12 JUN 91 04:55:30 PDT
Received: by ucbvax.Berkeley.EDU (5.63/1.42)
	id AA04106; Wed, 12 Jun 91 04:43:44 -0700
Received: from USENET by ucbvax.Berkeley.EDU with netnews
	for info-vax@kl.sri.com (info-vax@kl.sri.com)
	(contact usenet@ucbvax.Berkeley.EDU if you have questions)
Date: 11 Jun 91 10:12:54 GMT
From: csus.edu!wuarchive!zaphod.mps.ohio-state.edu!samsung!nstar!inland!allebrandi@ucdavis.ucdavis.edu  (Tom Allebrandi)
Organization: Inland Steel Research Labs; East Chicago, IN
Subject: Re: MAIL utility routines and missing defs in maildef.h
Message-Id: <946.2854a227@inland.com>
References: <676317900@romeo.cs.duke.edu>
Sender: info-vax-request@kl.sri.com
To: info-vax@kl.sri.com

In article <676317900@romeo.cs.duke.edu>, dryfoos@duke.cs.duke.edu (James D. Dryfoos) writes:
> I am using VMS 5.3 which contains the maildef.h file.
> However, I notice it does not contain the definitions for the MAIL
> return values such as MAIL$_MSGINFO or MAIL$BADVALUE . . .

MAILDEF.H, aka the C header library module MAILDEF, only contains the
item codes for the parameter lists and a handful of other useful
constants. As observed, it does not contain the status return codes. (At
least not through version 3.2 of the VAX C compiler.)

However, as it turns out, I needed those codes just yesterday and
extracted them from STARLET.MLB. (STARLET.MLB is a MACRO-32 macro
library. I have a utility that extracts constants from a given macro
package and create a header file with #define's.)

$mailmsgdef.h follows...

--- Tom
Tom Allebrandi             | Mail guru   - DECUS UUCP Development Team
Inland Steel Research Labs | Chairperson - VMSnet Working Group, DECUS VAX SIG
East Chicago, IN           | Internet:  allebrandi@inland.com
219 399 6306               | UUCP:      ...!uunet!inland!allebrandi
                           | DECUServe: allebrandi

/*
 * $mailmsgdef.h extracted from
 * SYS$COMMON:[SYSLIB]STARLET.MLB;2 on
 * Mon Jun 10 12:58:43 1991
 *
 */

#define	MAIL$_FACILITY	126
#define	MAIL$_CODERR	8290316
#define	MAIL$_UPGRADE	8290324
#define	MAIL$_UAFGETERR	8290330
#define	MAIL$_UAFOPNERR	8290338
#define	MAIL$_NOSUCHUSR	8290346
#define	MAIL$_NOTREADIN	8290354
#define	MAIL$_LOGLINK	8290362
#define	MAIL$_CREPRIJOB	8290370
#define	MAIL$_SENDERR	8290378
#define	MAIL$_NOMOREMSG	8290386
#define	MAIL$_NOMSGS	8290394
#define	MAIL$_USERSPEC	8290402
#define	MAIL$_SENDABORT	8290410
#define	MAIL$_EDITPROC	8290418
#define	MAIL$_INVCMD	8290426
#define	MAIL$_NOTFOUND	8290434
#define	MAIL$_NETIOERR	8290442
#define	MAIL$_USERDSABL	8290450
#define	MAIL$_FORWLOOP	8290458
#define	MAIL$_NAMTOOBIG	8290466
#define	MAIL$_ILLCHAR	8290474
#define	MAIL$_DATIMUSED	8290482
#define	MAIL$_NOTISAM	8290490
#define	MAIL$_DELMSG	8290498
#define	MAIL$_DELWASTE	8290506
#define	MAIL$_NOFOLDER	8290514
#define	MAIL$_NOTEXIST	8290522
#define	MAIL$_NOTSUBDIR	8290530
#define	MAIL$_ILLSUBDIR	8290538
#define	MAIL$_ILLFOLNAM	8290546
#define	MAIL$_NOMSGPRI	8290554
#define	MAIL$_ALTPRIJOB	8290562
#define	MAIL$_ILLPERNAM	8290570
#define	MAIL$_NOSUCHUSRAT	8290578
#define	MAIL$_SENDERRAT	8290586
#define	MAIL$_CONABORT	8290594
#define	MAIL$_NOTCALEDT	8290602
#define	MAIL$_FILECONFUSED	8290610
#define	MAIL$_CAPTIVE	8290618
#define	MAIL$_IVPROTVAL	8290626
#define	MAIL$_RECTOBIG	8290634
#define	MAIL$_ILLCTXADR	8290642
#define	MAIL$_WRONGCTX	8290650
#define	MAIL$_FAILGETVM	8290658
#define	MAIL$_INVITMCOD	8290666
#define	MAIL$_MISREQITM	8290674
#define	MAIL$_INVITMLEN	8290682
#define	MAIL$_FILEOPEN	8290690
#define	MAIL$_NOFILEOPEN	8290698
#define	MAIL$_CONITMCOD	8290706
#define	MAIL$_NOMORECTX	8290714
#define	MAIL$_WRONGFILE	8290722
#define	MAIL$_ILLTPRT	8290730
#define	MAIL$_INVITMVAL	8290738
#define	MAIL$_ERACTED	8290746
#define	MAIL$_FORMSG	8290754
#define	MAIL$_NOTFORMSG	8290762
#define	MAIL$_ERRACTRNS	8290770
#define	MAIL$_BADVALUE	8290778
#define	MAIL$_CLOSEDEL	8290786
#define	MAIL$_FILNOTDEL	8290794
#define	MAIL$_OPENIN	8290802
#define	MAIL$_OPENOUT	8290810
#define	MAIL$_PARSEFAIL	8290818
#define	MAIL$_READERR	8290826
#define	MAIL$_SEARCHFAIL	8290834
#define	MAIL$_SYSERROR	8290842
#define	MAIL$_NOSYSNAM	8290850
#define	MAIL$_NOSYSPRV	8290858
#define	MAIL$_PROTOCOL	8290866
#define	MAIL$_NOACCPTMSG	8290874
#define	MAIL$_SELECTED	8306307
#define	MAIL$_DELMSGS	8306315
#define	MAIL$_CVTFILE	8306323
#define	MAIL$_DELSPACE	8306331
#define	MAIL$_NEWFOLDER	8306339
#define	MAIL$_RECLPLSWAIT	8306347
#define	MAIL$_REENTER	8306355
#define	MAIL$_MOREMSG	8314304
#define	MAIL$_DIRHD0	8314312
#define	MAIL$_DIRHD10	8314320
#define	MAIL$_DIRHD20	8314328
#define	MAIL$_DIRDEL10	8314336
#define	MAIL$_ISUB10	8314344
#define	MAIL$_ISUB20	8314352
#define	MAIL$_ISUB30	8314360
#define	MAIL$_PRESRET	8314368
#define	MAIL$_YOUHAVENEW	8314376
#define	MAIL$_MAIL10	8314384
#define	MAIL$_MAIL20	8314392
#define	MAIL$_WANTOSEND	8314400
#define	MAIL$_NOTIFY10	8314408
#define	MAIL$_NOTIFY20	8314416
#define	MAIL$_JOBENTERED	8314424
#define	MAIL$_SHOW10	8314432
#define	MAIL$_SHOW20	8314440
#define	MAIL$_SHOW30	8314448
#define	MAIL$_SHOW40	8314456
#define	MAIL$_SHOW50	8314464
#define	MAIL$_SHOW60	8314472
#define	MAIL$_SHOW70	8314480
#define	MAIL$_SHOW80	8314488
#define	MAIL$_SHOW90	8314496
#define	MAIL$_SHOW100	8314504
#define	MAIL$_SHOW110	8314512
#define	MAIL$_EDIT10	8314520
#define	MAIL$_INFO10	8314528
#define	MAIL$_INFO20	8314536
#define	MAIL$_INFO30	8314544
#define	MAIL$_SEND	8314552
#define	MAIL$_REPLY	8314560
#define	MAIL$_SHOW120	8314568
#define	MAIL$_SHOW130	8314576
#define	MAIL$_INFO50	8314584
#define	MAIL$_SHOW140	8314592
#define	MAIL$_SHOW150	8314600
#define	MAIL$_SHOW160	8314608
#define	MAIL$_ISUB50	8314616
#define	MAIL$_MAIL30	8314624
#define	MAIL$_RETCONT	8314632
#define	MAIL$_NEWSEQ	8314640
#define	MAIL$_MAILDIR	8314648
#define	MAIL$_MAILFILE	8314656
#define	MAIL$_MAILFOLDER	8314664
#define	MAIL$_MAIL40	8314672
#define	MAIL$_CRENEWFOLD	8314680
#define	MAIL$_NONEWMAIL	8314688
#define	MAIL$_SHOWKEY10	8314696
#define	MAIL$_SHOWKEY20	8314704
#define	MAIL$_SHOWKEY30	8314712
#define	MAIL$_SHOWKEY40	8314720
#define	MAIL$_SHOWKEY50	8314728
#define	MAIL$_SHOWKEY60	8314736
#define	MAIL$_SHOWKEY70	8314744
#define	MAIL$_NOTIFY30	8314752
#define	MAIL$_NOTIFY40	8314760
#define	MAIL$_NOPARENT	8314768
#define	MAIL$_FILEMPTY	8314776
#define	MAIL$_NONEFOUND	8314784
#define	MAIL$_NOMOREREC	8314792
#define	MAIL$_USERFWD	8314800
#define	MAIL$_PROMPT	8314808
#define	MAIL$_INFO12	8314816
#define	MAIL$_INFO14	8314824
#define	MAIL$_INFO16	8314832
#define	MAIL$_INFO18	8314840
#define	MAIL$_CRENEWFILE	8314848
#define	MAIL$_SHOW15	8314856
#define	MAIL$_SHOW25	8314864
#define	MAIL$_SHOW35	8314872
#define	MAIL$_FORWARD	8314880
#define	MAIL$_SHOW200	8314888
#define	MAIL$_SHOW205	8314896
#define	MAIL$_SHOW210	8314904
#define	MAIL$_SHOW215	8314912
#define	MAIL$_CLOSEIN	8314920
#define	MAIL$_CLOSEOUT	8314928
#define	MAIL$_INVQUAVAL	8314936
#define	MAIL$_WRITEERR	8314944
#define	MAIL$_SHOW220	8314952
#define	MAIL$_SHOW225	8314960
#define	MAIL$_MSGTEXT	8322305
#define	MAIL$_MSGINFO	8322313
#define	MAIL$_MSGSENT	8322321
#define	MAIL$_MSGSENTAT	8322329
#define	MAIL$_YES	8322337
#define	MAIL$_COPIEDR	8322345
#define	MAIL$_CREATED	8322353
#define	MAIL$_RENAMED	8322361
#define	MAIL$_TEXT	8322369
#define	MAIL$_MAILFOLD	8322377
#define	MAIL$_WASTEFOLD	8322385

/***** End of $mailmsgdef.h *****/

