#ifndef __MAILDEF_LOADED
#define __MAILDEF_LOADED 1

#ifdef __DECC
#pragma nostandard
#pragma member_alignment __save
#pragma nomember_alignment

#ifdef __cplusplus
    extern "C" {
#define __unknown_params ...
#else
#define __unknown_params
#endif
#endif

#if !defined(__VAXC) && !defined(VAXC)
#define __struct struct
#define __union union
#else
#define __struct variant_struct
#define __union variant_union
#endif

/*
 *				MAILDEF.H
 *
 * Definitions created by VAXC_DEFS at 30-APR-1993 10:56:49.62
 */
#define MAIL$_SEND_SPARE_0 1
#define MAIL$_SEND_FOREIGN 2
#define MAIL$_SEND_CC_LINE 3
#define MAIL$_SEND_DEFAULT_NAME 4
#define MAIL$_SEND_DEFAULT_TRANSPORT 5
#define MAIL$_SEND_ERROR_ENTRY 6
#define MAIL$_SEND_FILENAME 7
#define MAIL$_SEND_FROM_LINE 8
#define MAIL$_SEND_NO_DEFAULT_TRANSPORT 9
#define MAIL$_SEND_PERS_NAME 10
#define MAIL$_SEND_RECORD 11
#define MAIL$_SEND_RESULTSPEC 12
#define MAIL$_SEND_SERVER 13
#define MAIL$_SEND_SUBJECT 14
#define MAIL$_SEND_SUCCESS_ENTRY 15
#define MAIL$_SEND_TO_LINE 16
#define MAIL$_SEND_UFLAGS 17
#define MAIL$_SEND_USER_DATA 18
#define MAIL$_SEND_USERNAME 19
#define MAIL$_SEND_USERNAME_TYPE 20
#define MAIL$_SEND_FID 21
#define MAIL$_SEND_NO_PERS_NAME 22
#define MAIL$_SEND_IN_SPARE3 23
#define MAIL$_SEND_IN_SPARE4 24
#define MAIL$_SEND_IN_SPARE5 25
#define MAIL$_SEND_COPY_REPLY 26
#define MAIL$_SEND_COPY_SEND 27
#define MAIL$_SEND_USER 28
#define MAIL$_SEND_COPY_FORWARD 29
#define MAIL$_SEND_OUT_SPARE2 30
#define MAIL$_SEND_OUT_SPARE3 31
#define MAIL$_SEND_OUT_SPARE4 32
#define MAIL$_SEND_OUT_SPARE5 33
#define MAIL$K_SEND_MIN_ITEM 1
#define MAIL$K_SEND_MAX_ITEM 33
#define MAIL$K_SEND_ITEMS 33
#define MAIL$_MAILFILE_SPARE_0 1025
#define MAIL$_MAILFILE_DEFAULT_NAME 1026
#define MAIL$_MAILFILE_FOLDER_ROUTINE 1027
#define MAIL$_MAILFILE_FULL_CLOSE 1028
#define MAIL$_MAILFILE_NAME 1029
#define MAIL$_MAILFILE_RECLAIM 1030
#define MAIL$_MAILFILE_USER_DATA 1031
#define MAIL$_MAILFILE_WASTEBASKET_NAME 1032
#define MAIL$_MAILFILE_IN_SPARE1 1033
#define MAIL$_MAILFILE_IN_SPARE2 1034
#define MAIL$_MAILFILE_IN_SPARE3 1035
#define MAIL$_MAILFILE_IN_SPARE4 1036
#define MAIL$_MAILFILE_IN_SPARE5 1037
#define MAIL$_MAILFILE_IN_SPARE6 1038
#define MAIL$_MAILFILE_IN_SPARE7 1039
#define MAIL$_MAILFILE_IN_SPARE8 1040
#define MAIL$_MAILFILE_IN_SPARE9 1041
#define MAIL$_MAILFILE_IN_SPARE10 1042
#define MAIL$_MAILFILE_IN_SPARE11 1043
#define MAIL$_MAILFILE_IN_SPARE12 1044
#define MAIL$_MAILFILE_IN_SPARE13 1045
#define MAIL$_MAILFILE_IN_SPARE14 1046
#define MAIL$_MAILFILE_IN_SPARE15 1047
#define MAIL$_MAILFILE_IN_SPARE16 1048
#define MAIL$_MAILFILE_IN_SPARE17 1049
#define MAIL$_MAILFILE_IN_SPARE18 1050
#define MAIL$_MAILFILE_IN_SPARE19 1051
#define MAIL$_MAILFILE_IN_SPARE20 1052
#define MAIL$_MAILFILE_DATA_RECLAIM 1053
#define MAIL$_MAILFILE_DATA_SCAN 1054
#define MAIL$_MAILFILE_DELETED_BYTES 1055
#define MAIL$_MAILFILE_INDEX_RECLAIM 1056
#define MAIL$_MAILFILE_MAIL_DIRECTORY 1057
#define MAIL$_MAILFILE_MESSAGES_DELETED 1058
#define MAIL$_MAILFILE_RESULTSPEC 1059
#define MAIL$_MAILFILE_TOTAL_RECLAIM 1060
#define MAIL$_MAILFILE_WASTEBASKET 1061
#define MAIL$_MAILFILE_INDEXED 1062
#define MAIL$_MAILFILE_OUT_SPARE2 1063
#define MAIL$_MAILFILE_OUT_SPARE3 1064
#define MAIL$_MAILFILE_OUT_SPARE4 1065
#define MAIL$_MAILFILE_OUT_SPARE5 1066
#define MAIL$_MAILFILE_OUT_SPARE6 1067
#define MAIL$_MAILFILE_OUT_SPARE7 1068
#define MAIL$_MAILFILE_OUT_SPARE8 1069
#define MAIL$_MAILFILE_OUT_SPARE9 1070
#define MAIL$_MAILFILE_OUT_SPARE10 1071
#define MAIL$_MAILFILE_OUT_SPARE11 1072
#define MAIL$_MAILFILE_OUT_SPARE12 1073
#define MAIL$_MAILFILE_OUT_SPARE13 1074
#define MAIL$_MAILFILE_OUT_SPARE14 1075
#define MAIL$_MAILFILE_OUT_SPARE15 1076
#define MAIL$_MAILFILE_OUT_SPARE16 1077
#define MAIL$_MAILFILE_OUT_SPARE17 1078
#define MAIL$_MAILFILE_OUT_SPARE18 1079
#define MAIL$_MAILFILE_OUT_SPARE19 1080
#define MAIL$_MAILFILE_OUT_SPARE20 1081
#define MAIL$K_MAILFILE_MIN_ITEM 1025
#define MAIL$K_MAILFILE_MAX_ITEM 1081
#define MAIL$K_MAILFILE_ITEMS 57
#define MAIL$_MESSAGE_SPARE_0 2048
#define MAIL$_MESSAGE_BACK 2049
#define MAIL$_MESSAGE_BEFORE 2050
#define MAIL$_MESSAGE_CC_SUBSTRING 2051
#define MAIL$_MESSAGE_CONTINUE 2052
#define MAIL$_MESSAGE_FILE_ACTION 2053
#define MAIL$_MESSAGE_FOLDER_ACTION 2054
#define MAIL$_MESSAGE_DEFAULT_NAME 2055
#define MAIL$_MESSAGE_DELETE 2056
#define MAIL$_MESSAGE_ERASE 2057
#define MAIL$_MESSAGE_FILE_CTX 2058
#define MAIL$_MESSAGE_FILENAME 2059
#define MAIL$_MESSAGE_FLAGS 2060
#define MAIL$_MESSAGE_FOLDER 2061
#define MAIL$_MESSAGE_FROM_SUBSTRING 2062
#define MAIL$_MESSAGE_ID 2063
#define MAIL$_MESSAGE_NEXT 2064
#define MAIL$_MESSAGE_SINCE 2065
#define MAIL$_MESSAGE_SUBJ_SUBSTRING 2066
#define MAIL$_MESSAGE_TO_SUBSTRING 2067
#define MAIL$_MESSAGE_UFLAGS 2068
#define MAIL$_MESSAGE_AUTO_NEWMAIL 2069
#define MAIL$_MESSAGE_USER_DATA 2070
#define MAIL$_MESSAGE_FLAGS_MBZ 2071
#define MAIL$_MESSAGE_MIN_CLASS 2072
#define MAIL$_MESSAGE_MAX_CLASS 2073
#define MAIL$_MESSAGE_IN_SPARE1 2074
#define MAIL$_MESSAGE_IN_SPARE2 2075
#define MAIL$_MESSAGE_IN_SPARE3 2076
#define MAIL$_MESSAGE_IN_SPARE4 2077
#define MAIL$_MESSAGE_IN_SPARE5 2078
#define MAIL$_MESSAGE_IN_SPARE6 2079
#define MAIL$_MESSAGE_IN_SPARE7 2080
#define MAIL$_MESSAGE_IN_SPARE8 2081
#define MAIL$_MESSAGE_IN_SPARE9 2082
#define MAIL$_MESSAGE_IN_SPARE10 2083
#define MAIL$_MESSAGE_IN_SPARE11 2084
#define MAIL$_MESSAGE_IN_SPARE12 2085
#define MAIL$_MESSAGE_IN_SPARE13 2086
#define MAIL$_MESSAGE_IN_SPARE14 2087
#define MAIL$_MESSAGE_IN_SPARE15 2088
#define MAIL$_MESSAGE_IN_SPARE16 2089
#define MAIL$_MESSAGE_IN_SPARE17 2090
#define MAIL$_MESSAGE_IN_SPARE18 2091
#define MAIL$_MESSAGE_IN_SPARE19 2092
#define MAIL$_MESSAGE_IN_SPARE20 2093
#define MAIL$_MESSAGE_CC 2094
#define MAIL$_MESSAGE_CURRENT_ID 2095
#define MAIL$_MESSAGE_DATE 2096
#define MAIL$_MESSAGE_EXTID 2097
#define MAIL$_MESSAGE_FILE_CREATED 2098
#define MAIL$_MESSAGE_FOLDER_CREATED 2099
#define MAIL$_MESSAGE_FROM 2100
#define MAIL$_MESSAGE_RECORD 2101
#define MAIL$_MESSAGE_RECORD_TYPE 2102
#define MAIL$_MESSAGE_REPLY_PATH 2103
#define MAIL$_MESSAGE_RESULTSPEC 2104
#define MAIL$_MESSAGE_RETURN_FLAGS 2105
#define MAIL$_MESSAGE_RETURN_UFLAGS 2106
#define MAIL$_MESSAGE_SELECTED 2107
#define MAIL$_MESSAGE_SENDER 2108
#define MAIL$_MESSAGE_SIZE 2109
#define MAIL$_MESSAGE_SUBJECT 2110
#define MAIL$_MESSAGE_TO 2111
#define MAIL$_MESSAGE_BUFFER 2112
#define MAIL$_MESSAGE_RETURN_CLASS 2113
#define MAIL$_MESSAGE_BINARY_DATE 2114
#define MAIL$_MESSAGE_SPARE4 2115
#define MAIL$_MESSAGE_SPARE5 2116
#define MAIL$_MESSAGE_SPARE6 2117
#define MAIL$_MESSAGE_SPARE7 2118
#define MAIL$_MESSAGE_SPARE8 2119
#define MAIL$_MESSAGE_SPARE9 2120
#define MAIL$_MESSAGE_SPARE10 2121
#define MAIL$_MESSAGE_SPARE11 2122
#define MAIL$_MESSAGE_SPARE12 2123
#define MAIL$_MESSAGE_SPARE13 2124
#define MAIL$_MESSAGE_SPARE14 2125
#define MAIL$_MESSAGE_SPARE15 2126
#define MAIL$_MESSAGE_SPARE16 2127
#define MAIL$_MESSAGE_SPARE17 2128
#define MAIL$_MESSAGE_SPARE18 2129
#define MAIL$_MESSAGE_SPARE19 2130
#define MAIL$_MESSAGE_NULL 2131
#define MAIL$_MESSAGE_HEADER 2132
#define MAIL$_MESSAGE_TEXT 2133
#define MAIL$_MESSAGE_SPARE20 2134
#define MAIL$K_MESSAGE_MIN_ITEM 2048
#define MAIL$K_MESSAGE_MAX_ITEM 2134
#define MAIL$K_MESSAGE_ITEMS 87
#define MAIL$_USER_SPARE_0 3072
#define MAIL$_USER_FIRST 3073
#define MAIL$_USER_NEXT 3074
#define MAIL$_USER_USERNAME 3075
#define MAIL$_USER_SET_AUTO_PURGE 3076
#define MAIL$_USER_SET_NO_AUTO_PURGE 3077
#define MAIL$_USER_SET_SUB_DIRECTORY 3078
#define MAIL$_USER_SET_NO_SUB_DIRECTORY 3079
#define MAIL$_USER_SET_FORWARDING 3080
#define MAIL$_USER_SET_NO_FORWARDING 3081
#define MAIL$_USER_SET_PERSONAL_NAME 3082
#define MAIL$_USER_SET_NO_PERSONAL_NAME 3083
#define MAIL$_USER_SET_COPY_SEND 3084
#define MAIL$_USER_SET_NO_COPY_SEND 3085
#define MAIL$_USER_SET_COPY_REPLY 3086
#define MAIL$_USER_SET_NO_COPY_REPLY 3087
#define MAIL$_USER_SET_NEW_MESSAGES 3088
#define MAIL$_USER_CREATE_IF 3089
#define MAIL$_USER_SET_MAILPLUS 3090
#define MAIL$_USER_SET_NO_MAILPLUS 3091
#define MAIL$_USER_SET_TRANSPORT 3092
#define MAIL$_USER_SET_NO_TRANSPORT 3093
#define MAIL$_USER_SET_EDITOR 3094
#define MAIL$_USER_SET_NO_EDITOR 3095
#define MAIL$_USER_SET_QUEUE 3096
#define MAIL$_USER_SET_NO_QUEUE 3097
#define MAIL$_USER_SET_USER1 3098
#define MAIL$_USER_SET_NO_USER1 3099
#define MAIL$_USER_SET_USER2 3100
#define MAIL$_USER_SET_NO_USER2 3101
#define MAIL$_USER_SET_USER3 3102
#define MAIL$_USER_SET_NO_USER3 3103
#define MAIL$_USER_SET_FORM 3104
#define MAIL$_USER_SET_NO_FORM 3105
#define MAIL$_USER_SET_COPY_FORWARD 3106
#define MAIL$_USER_SET_NO_COPY_FORWARD 3107
#define MAIL$_USER_SET_CC_PROMPT 3108
#define MAIL$_USER_SET_NO_CC_PROMPT 3109
#define MAIL$_USER_SET_SPARE3 3110
#define MAIL$_USER_SET_NO_SPARE3 3111
#define MAIL$_USER_IN_SPARE1 3112
#define MAIL$_USER_IN_SPARE2 3113
#define MAIL$_USER_IN_SPARE3 3114
#define MAIL$_USER_IN_SPARE4 3115
#define MAIL$_USER_IN_SPARE5 3116
#define MAIL$_USER_IN_SPARE6 3117
#define MAIL$_USER_IN_SPARE7 3118
#define MAIL$_USER_IN_SPARE8 3119
#define MAIL$_USER_IN_SPARE9 3120
#define MAIL$_USER_IN_SPARE10 3121
#define MAIL$_USER_IN_SPARE11 3122
#define MAIL$_USER_IN_SPARE12 3123
#define MAIL$_USER_IN_SPARE13 3124
#define MAIL$_USER_IN_SPARE14 3125
#define MAIL$_USER_IN_SPARE15 3126
#define MAIL$_USER_IN_SPARE16 3127
#define MAIL$_USER_IN_SPARE17 3128
#define MAIL$_USER_IN_SPARE18 3129
#define MAIL$_USER_IN_SPARE19 3130
#define MAIL$_USER_IN_SPARE20 3131
#define MAIL$_USER_MAILPLUS 3132
#define MAIL$_USER_TRANSPORT 3133
#define MAIL$_USER_EDITOR 3134
#define MAIL$_USER_QUEUE 3135
#define MAIL$_USER_USER1 3136
#define MAIL$_USER_USER2 3137
#define MAIL$_USER_USER3 3138
#define MAIL$_USER_FORM 3139
#define MAIL$_USER_COPY_FORWARD 3140
#define MAIL$_USER_SPARE3 3141
#define MAIL$_USER_RETURN_USERNAME 3142
#define MAIL$_USER_AUTO_PURGE 3143
#define MAIL$_USER_SUB_DIRECTORY 3144
#define MAIL$_USER_FULL_DIRECTORY 3145
#define MAIL$_USER_NEW_MESSAGES 3146
#define MAIL$_USER_FORWARDING 3147
#define MAIL$_USER_PERSONAL_NAME 3148
#define MAIL$_USER_COPY_SEND 3149
#define MAIL$_USER_COPY_REPLY 3150
#define MAIL$_USER_CAPTIVE 3151
#define MAIL$_USER_CC_PROMPT 3152
#define MAIL$_USER_OUT_SPARE2 3153
#define MAIL$_USER_OUT_SPARE3 3154
#define MAIL$_USER_OUT_SPARE4 3155
#define MAIL$_USER_OUT_SPARE5 3156
#define MAIL$_USER_OUT_SPARE6 3157
#define MAIL$_USER_OUT_SPARE7 3158
#define MAIL$_USER_OUT_SPARE8 3159
#define MAIL$_USER_OUT_SPARE9 3160
#define MAIL$_USER_OUT_SPARE10 3161
#define MAIL$_USER_OUT_SPARE11 3162
#define MAIL$_USER_OUT_SPARE12 3163
#define MAIL$_USER_OUT_SPARE13 3164
#define MAIL$_USER_OUT_SPARE14 3165
#define MAIL$_USER_OUT_SPARE15 3166
#define MAIL$_USER_OUT_SPARE16 3167
#define MAIL$_USER_OUT_SPARE17 3168
#define MAIL$_USER_OUT_SPARE18 3169
#define MAIL$_USER_OUT_SPARE19 3170
#define MAIL$_USER_OUT_SPARE20 3171
#define MAIL$K_USER_MIN_ITEM 3072
#define MAIL$K_USER_MAX_ITEM 3171
#define MAIL$K_USER_ITEMS 100
#define MAIL$_NOOP 4097
#define MAIL$_NOSIGNAL 4098
#define MAIL$_NOPROBE 4099
#define MAIL$_TLD_INPUT 4100
#define MAIL$_TLD_OUTPUT 4101
#define MAIL$_TO 1
#define MAIL$_CC 2
#define MAIL$_SPARE1 3
#define MAIL$_SPARE2 4
#define MAIL$M_NEWMSG 1
#define MAIL$M_REPLIED 2
#define MAIL$M_DEL 4
#define MAIL$M_EXTMSG 8
#define MAIL$M_EXTFNF 16
#define MAIL$M_SYSMSG 32
#define MAIL$M_EXTNSTD 64
#define MAIL$M_MARKED 128
#define MAIL$M_RECMODE 256
/*
 * End of VAXC_DEFS definitions
 */

struct flagsdef {
  __union {
    unsigned short int mail$w_flags;	/* Flags word */
    __struct {
      unsigned mail$v_newmsg  : 1;	/* This is a new message */
      unsigned mail$v_replied : 1;	/* This message has been replied to */
      unsigned mail$v_del     : 1;	/* This message is deleted */
      unsigned mail$v_extmsg  : 1;	/* Message text in external file */
      unsigned mail$v_extfnf  : 1;	/* External message file not found */
      unsigned mail$v_sysmsg  : 1;	/* Message text in system file */
      unsigned mail$v_extnstd : 1;	/* External file is not var-seq file */
      unsigned mail$v_marked  : 1;	/* This message has been marked */
      unsigned mail$v_recmode : 1;	/* This message should be read in record mode */
      unsigned mail$v_fill_2 : 7;
    } mail$r_fill_1;
  } mail$r_fill_0;
} ;
 
#if !defined(__VAXC) && !defined(VAXC)
#define mail$w_flags mail$r_fill_0.mail$w_flags
#define mail$v_newmsg mail$r_fill_0.mail$r_fill_1.mail$v_newmsg
#define mail$v_replied mail$r_fill_0.mail$r_fill_1.mail$v_replied
#define mail$v_dwmail mail$r_fill_0.mail$r_fill_1.mail$v_dwmail
#define mail$v_extmsg mail$r_fill_0.mail$r_fill_1.mail$v_extmsg
#define mail$v_extfnf mail$r_fill_0.mail$r_fill_1.mail$v_extfnf
#define mail$v_notrans mail$r_fill_0.mail$r_fill_1.mail$v_notrans
#define mail$v_extnstd mail$r_fill_0.mail$r_fill_1.mail$v_extnstd
#define mail$v_marked mail$r_fill_0.mail$r_fill_1.mail$v_marked
#define mail$v_recmode mail$r_fill_0.mail$r_fill_1.mail$v_recmode
#endif          /* #if !defined(__VAXC) && !defined(VAXC) */

#ifdef __DECC
#ifdef __cplusplus
    }
#endif
#pragma standard
#pragma member_alignment __restore
#endif

#endif /* __MAILDEF_LOADED */
