1 /* Copyright (c) 1992, 1998 John E. Davis
2  * This file is part of JED editor library source.
3  *
4  * You may distribute this file under the terms the GNU General Public
5  * License.  See the file COPYING for more information.
6  */
7 typedef struct Mail_Type
8 {
9    unsigned short buflen;
10    unsigned short code;
11    long addr;
12    long ret, junk;
13 } Mail_Type;
14 
15 
16 
17 /* Created by SDL V3.1-7     */
18 /* Source:  8-AUG-1988 10:36:21  */
19 #ifndef $MAILDEF_H
20 #define $MAILDEF_H
21 
22 /*** MODULE $MAILDEF ***/
23 /*                                                                            */
24 /* Definitions needed for callable mail.                                      */
25 /*                                                                            */
26 /*                                                                            */
27 /* NOTE: New item codes must be appended to the end of                        */
28 /*       each category so users will not have to relink.                      */
29 /*       We allow 1024 entries in eatch category.                             */
30 /*                                                                            */
31 /*                                                                            */
32 /* Send input codes                                                           */
33 /*                                                                            */
34 #define MAIL$_SEND_SPARE_0 1
35 #define MAIL$_SEND_FOREIGN 2    /* Send foreign format message                */
36 #define MAIL$_SEND_CC_LINE 3    /* CC text specification                      */
37 #define MAIL$_SEND_DEFAULT_NAME 4       /* Default file name for send         */
38 #define MAIL$_SEND_DEFAULT_TRANSPORT 5  /* Default transport used for addressees      */
39 #define MAIL$_SEND_ERROR_ENTRY 6        /* Entry point for send error routine */
40 #define MAIL$_SEND_FILENAME 7   /* Specification of file name to send         */
41 #define MAIL$_SEND_FROM_LINE 8  /* From text specification                    */
42 #define MAIL$_SEND_NO_DEFAULT_TRANSPORT 9       /* Don't use any default transport on send    */
43 #define MAIL$_SEND_PERS_NAME 10 /* Personal name text for message             */
44 #define MAIL$_SEND_RECORD 11    /* Record to be sent                          */
45 #define MAIL$_SEND_RESULTSPEC 12        /* Resultant filespec bodypart        */
46 #define MAIL$_SEND_SERVER 13    /* Operate in server mode (signal success)    */
47 #define MAIL$_SEND_SUBJECT 14   /* Subject text specification                 */
48 #define MAIL$_SEND_SUCCESS_ENTRY 15     /* Entry point for send success routine       */
49 #define MAIL$_SEND_TO_LINE 16   /* To line text specification                 */
50 #define MAIL$_SEND_UFLAGS 17    /* User flags (for header) to send            */
51 #define MAIL$_SEND_USER_DATA 18 /* User specified context for action routines */
52 #define MAIL$_SEND_USERNAME 19  /* Username to add to the "To" list           */
53 #define MAIL$_SEND_USERNAME_TYPE 20     /* Username type - TO or CC           */
54 #define MAIL$_SEND_FID 21       /* FID of file to send                        */
55 #define MAIL$_SEND_NO_PERS_NAME 22      /* Send message without personal name */
56 #define MAIL$_SEND_IN_SPARE3 23
57 #define MAIL$_SEND_IN_SPARE4 24
58 #define MAIL$_SEND_IN_SPARE5 25
59 /*                                                                            */
60 /* Send output codes                                                          */
61 /*                                                                            */
62 #define MAIL$_SEND_COPY_REPLY 26        /* Copy self reply set in profile     */
63 #define MAIL$_SEND_COPY_SEND 27 /* Copy self send  set in profile             */
64 #define MAIL$_SEND_USER 28      /* Username of caller                         */
65 #define MAIL$_SEND_COPY_FORWARD 29      /* Copy self forward set in profile   */
66 #define MAIL$_SEND_OUT_SPARE2 30
67 #define MAIL$_SEND_OUT_SPARE3 31
68 #define MAIL$_SEND_OUT_SPARE4 32
69 #define MAIL$_SEND_OUT_SPARE5 33
70 #define MAIL$K_SEND_MIN_ITEM 1
71 #define MAIL$K_SEND_MAX_ITEM 33
72 #define MAIL$K_SEND_ITEMS 33
73 /*                                                                            */
74 /* file input codes                                                           */
75 /*                                                                            */
76 #define MAIL$_MAILFILE_SPARE_0 1025
77 #define MAIL$_MAILFILE_DEFAULT_NAME 1026        /* Default filespec to open   */
78 #define MAIL$_MAILFILE_FOLDER_ROUTINE 1027      /* Entry point of routine to process foldernames      */
79 #define MAIL$_MAILFILE_FULL_CLOSE 1028  /* Do a PURGE, CONVERT/RECLAIM if necessary on close  */
80 #define MAIL$_MAILFILE_NAME 1029        /* File spec to open                  */
81 #define MAIL$_MAILFILE_RECLAIM 1030     /* Do RECLAIM on PURGE command        */
82 #define MAIL$_MAILFILE_USER_DATA 1031   /* User specified context for action routines */
83 #define MAIL$_MAILFILE_WASTEBASKET_NAME 1032    /* New wastebasket name for file      */
84 #define MAIL$_MAILFILE_IN_SPARE1 1033
85 #define MAIL$_MAILFILE_IN_SPARE2 1034
86 #define MAIL$_MAILFILE_IN_SPARE3 1035
87 #define MAIL$_MAILFILE_IN_SPARE4 1036
88 #define MAIL$_MAILFILE_IN_SPARE5 1037
89 #define MAIL$_MAILFILE_IN_SPARE6 1038
90 #define MAIL$_MAILFILE_IN_SPARE7 1039
91 #define MAIL$_MAILFILE_IN_SPARE8 1040
92 #define MAIL$_MAILFILE_IN_SPARE9 1041
93 #define MAIL$_MAILFILE_IN_SPARE10 1042
94 #define MAIL$_MAILFILE_IN_SPARE11 1043
95 #define MAIL$_MAILFILE_IN_SPARE12 1044
96 #define MAIL$_MAILFILE_IN_SPARE13 1045
97 #define MAIL$_MAILFILE_IN_SPARE14 1046
98 #define MAIL$_MAILFILE_IN_SPARE15 1047
99 #define MAIL$_MAILFILE_IN_SPARE16 1048
100 #define MAIL$_MAILFILE_IN_SPARE17 1049
101 #define MAIL$_MAILFILE_IN_SPARE18 1050
102 #define MAIL$_MAILFILE_IN_SPARE19 1051
103 #define MAIL$_MAILFILE_IN_SPARE20 1052
104 /*                                                                            */
105 /* file output codes                                                          */
106 /*                                                                            */
107 #define MAIL$_MAILFILE_DATA_RECLAIM 1053        /* Number of data buckets reclaimed   */
108 #define MAIL$_MAILFILE_DATA_SCAN 1054   /* Number of data buckets scanned     */
109 #define MAIL$_MAILFILE_DELETED_BYTES 1055       /* Number of free bytes in mail file  */
110 #define MAIL$_MAILFILE_INDEX_RECLAIM 1056       /* Number of index buckets reclaimed  */
111 #define MAIL$_MAILFILE_MAIL_DIRECTORY 1057      /* Mail sub-directory specification   */
112 #define MAIL$_MAILFILE_MESSAGES_DELETED 1058    /* Number of messages deleted */
113 #define MAIL$_MAILFILE_RESULTSPEC 1059  /* Resultant file spec                */
114 #define MAIL$_MAILFILE_TOTAL_RECLAIM 1060       /* Total buckets reclaimed    */
115 #define MAIL$_MAILFILE_WASTEBASKET 1061 /* Wastebasket name                   */
116 #define MAIL$_MAILFILE_INDEXED 1062     /* ISAM file                          */
117 #define MAIL$_MAILFILE_OUT_SPARE2 1063
118 #define MAIL$_MAILFILE_OUT_SPARE3 1064
119 #define MAIL$_MAILFILE_OUT_SPARE4 1065
120 #define MAIL$_MAILFILE_OUT_SPARE5 1066
121 #define MAIL$_MAILFILE_OUT_SPARE6 1067
122 #define MAIL$_MAILFILE_OUT_SPARE7 1068
123 #define MAIL$_MAILFILE_OUT_SPARE8 1069
124 #define MAIL$_MAILFILE_OUT_SPARE9 1070
125 #define MAIL$_MAILFILE_OUT_SPARE10 1071
126 #define MAIL$_MAILFILE_OUT_SPARE11 1072
127 #define MAIL$_MAILFILE_OUT_SPARE12 1073
128 #define MAIL$_MAILFILE_OUT_SPARE13 1074
129 #define MAIL$_MAILFILE_OUT_SPARE14 1075
130 #define MAIL$_MAILFILE_OUT_SPARE15 1076
131 #define MAIL$_MAILFILE_OUT_SPARE16 1077
132 #define MAIL$_MAILFILE_OUT_SPARE17 1078
133 #define MAIL$_MAILFILE_OUT_SPARE18 1079
134 #define MAIL$_MAILFILE_OUT_SPARE19 1080
135 #define MAIL$_MAILFILE_OUT_SPARE20 1081
136 #define MAIL$K_MAILFILE_MIN_ITEM 1025
137 #define MAIL$K_MAILFILE_MAX_ITEM 1081
138 #define MAIL$K_MAILFILE_ITEMS 57
139 /*                                                                            */
140 /* message input codes                                                        */
141 /*                                                                            */
142 #define MAIL$_MESSAGE_SPARE_0 2048
143 #define MAIL$_MESSAGE_BACK 2049 /* Get previous message                       */
144 #define MAIL$_MESSAGE_BEFORE 2050       /* Select messages BEFORE date        */
145 #define MAIL$_MESSAGE_CC_SUBSTRING 2051 /* Select messages containing CC substring    */
146 #define MAIL$_MESSAGE_CONTINUE 2052     /* Read next record                   */
147 #define MAIL$_MESSAGE_FILE_ACTION 2053  /* File create action routine         */
148 #define MAIL$_MESSAGE_FOLDER_ACTION 2054        /* Folder create action routine       */
149 #define MAIL$_MESSAGE_DEFAULT_NAME 2055 /* Default file name                  */
150 #define MAIL$_MESSAGE_DELETE 2056       /* Delete message                     */
151 #define MAIL$_MESSAGE_ERASE 2057        /* Erase message                      */
152 #define MAIL$_MESSAGE_FILE_CTX 2058     /* File level context                 */
153 #define MAIL$_MESSAGE_FILENAME 2059     /* File name specification            */
154 #define MAIL$_MESSAGE_FLAGS 2060        /* Header flags specification         */
155 #define MAIL$_MESSAGE_FOLDER 2061       /* Folder name specification          */
156 #define MAIL$_MESSAGE_FROM_SUBSTRING 2062       /* Select messages containing FROM substring  */
157 #define MAIL$_MESSAGE_ID 2063   /* ID of message                              */
158 #define MAIL$_MESSAGE_NEXT 2064 /* Retrive NEXT message                       */
159 #define MAIL$_MESSAGE_SINCE 2065        /* Select messages SINCE date         */
160 #define MAIL$_MESSAGE_SUBJ_SUBSTRING 2066       /* Select messages containing SUBJ substring  */
161 #define MAIL$_MESSAGE_TO_SUBSTRING 2067 /* Select messages containing TO substring    */
162 #define MAIL$_MESSAGE_UFLAGS 2068       /* User flags specification           */
163 #define MAIL$_MESSAGE_AUTO_NEWMAIL 2069 /* Move newmail to MAIL auto          */
164 #define MAIL$_MESSAGE_USER_DATA 2070    /* User context for action routines   */
165 #define MAIL$_MESSAGE_FLAGS_MBZ 2071    /* Select messages with these flags set at zero       */
166 #define MAIL$_MESSAGE_MIN_CLASS 2072    /* Min access class for message       */
167 #define MAIL$_MESSAGE_MAX_CLASS 2073    /* Max access class for message       */
168 #define MAIL$_MESSAGE_IN_SPARE1 2074
169 #define MAIL$_MESSAGE_IN_SPARE2 2075
170 #define MAIL$_MESSAGE_IN_SPARE3 2076
171 #define MAIL$_MESSAGE_IN_SPARE4 2077
172 #define MAIL$_MESSAGE_IN_SPARE5 2078
173 #define MAIL$_MESSAGE_IN_SPARE6 2079
174 #define MAIL$_MESSAGE_IN_SPARE7 2080
175 #define MAIL$_MESSAGE_IN_SPARE8 2081
176 #define MAIL$_MESSAGE_IN_SPARE9 2082
177 #define MAIL$_MESSAGE_IN_SPARE10 2083
178 #define MAIL$_MESSAGE_IN_SPARE11 2084
179 #define MAIL$_MESSAGE_IN_SPARE12 2085
180 #define MAIL$_MESSAGE_IN_SPARE13 2086
181 #define MAIL$_MESSAGE_IN_SPARE14 2087
182 #define MAIL$_MESSAGE_IN_SPARE15 2088
183 #define MAIL$_MESSAGE_IN_SPARE16 2089
184 #define MAIL$_MESSAGE_IN_SPARE17 2090
185 #define MAIL$_MESSAGE_IN_SPARE18 2091
186 #define MAIL$_MESSAGE_IN_SPARE19 2092
187 #define MAIL$_MESSAGE_IN_SPARE20 2093
188 /*                                                                            */
189 /* message output codes                                                       */
190 /*                                                                            */
191 #define MAIL$_MESSAGE_CC 2094   /* CC text of message                         */
192 #define MAIL$_MESSAGE_CURRENT_ID 2095   /* ID of current message              */
193 #define MAIL$_MESSAGE_DATE 2096 /* Date of current message                    */
194 #define MAIL$_MESSAGE_EXTID 2097        /* Filespec of external message       */
195 #define MAIL$_MESSAGE_FILE_CREATED 2098 /* Mailfile created...                */
196 #define MAIL$_MESSAGE_FOLDER_CREATED 2099       /* Folder created...          */
197 #define MAIL$_MESSAGE_FROM 2100 /* From text of message                       */
198 #define MAIL$_MESSAGE_RECORD 2101       /* Record from message                */
199 #define MAIL$_MESSAGE_RECORD_TYPE 2102  /* Type of record, header or text     */
200 #define MAIL$_MESSAGE_REPLY_PATH 2103   /* Reply path of sender               */
201 #define MAIL$_MESSAGE_RESULTSPEC 2104   /* Resultant file spec                */
202 #define MAIL$_MESSAGE_RETURN_FLAGS 2105 /* Message header system flags        */
203 #define MAIL$_MESSAGE_RETURN_UFLAGS 2106        /* Message header user flags  */
204 #define MAIL$_MESSAGE_SELECTED 2107     /* Number of messages selected        */
205 #define MAIL$_MESSAGE_SENDER 2108       /* Sender name                        */
206 #define MAIL$_MESSAGE_SIZE 2109 /* Size of the current message                */
207 #define MAIL$_MESSAGE_SUBJECT 2110      /* Subject text of the message        */
208 #define MAIL$_MESSAGE_TO 2111   /* To text of the message                     */
209 #define MAIL$_MESSAGE_BUFFER 2112       /* Buffer address                     */
210 #define MAIL$_MESSAGE_RETURN_CLASS 2113 /* Class of current message           */
211 #define MAIL$_MESSAGE_BINARY_DATE 2114  /* Binary date/time quadword          */
212 #define MAIL$_MESSAGE_SPARE4 2115
213 #define MAIL$_MESSAGE_SPARE5 2116
214 #define MAIL$_MESSAGE_SPARE6 2117
215 #define MAIL$_MESSAGE_SPARE7 2118
216 #define MAIL$_MESSAGE_SPARE8 2119
217 #define MAIL$_MESSAGE_SPARE9 2120
218 #define MAIL$_MESSAGE_SPARE10 2121
219 #define MAIL$_MESSAGE_SPARE11 2122
220 #define MAIL$_MESSAGE_SPARE12 2123
221 #define MAIL$_MESSAGE_SPARE13 2124
222 #define MAIL$_MESSAGE_SPARE14 2125
223 #define MAIL$_MESSAGE_SPARE15 2126
224 #define MAIL$_MESSAGE_SPARE16 2127
225 #define MAIL$_MESSAGE_SPARE17 2128
226 #define MAIL$_MESSAGE_SPARE18 2129
227 #define MAIL$_MESSAGE_SPARE19 2130
228 /*                                                                            */
229 /* Constants returned                                                         */
230 /*                                                                            */
231 #define MAIL$_MESSAGE_NULL 2131 /* Null bodypart                              */
232 #define MAIL$_MESSAGE_HEADER 2132       /* Header record returned             */
233 #define MAIL$_MESSAGE_TEXT 2133 /* Text record returned                       */
234 #define MAIL$_MESSAGE_SPARE20 2134
235 #define MAIL$K_MESSAGE_MIN_ITEM 2048
236 #define MAIL$K_MESSAGE_MAX_ITEM 2134
237 #define MAIL$K_MESSAGE_ITEMS 87
238 /*                                                                            */
239 /* user input codes                                                           */
240 /*                                                                            */
241 #define MAIL$_USER_SPARE_0 3072
242 #define MAIL$_USER_FIRST 3073   /* Retrive first user record                  */
243 #define MAIL$_USER_NEXT 3074    /* Retrive next user record                   */
244 #define MAIL$_USER_USERNAME 3075        /* Retrive record for username        */
245 #define MAIL$_USER_SET_AUTO_PURGE 3076  /* Set auto-purge                     */
246 #define MAIL$_USER_SET_NO_AUTO_PURGE 3077       /* Clear auto-purge           */
247 #define MAIL$_USER_SET_SUB_DIRECTORY 3078       /* Set sub-dir field          */
248 #define MAIL$_USER_SET_NO_SUB_DIRECTORY 3079    /* Clear sub-dir field        */
249 #define MAIL$_USER_SET_FORWARDING 3080  /* Set forwarding address             */
250 #define MAIL$_USER_SET_NO_FORWARDING 3081       /* Clear forwarding address   */
251 #define MAIL$_USER_SET_PERSONAL_NAME 3082       /* Set personal name          */
252 #define MAIL$_USER_SET_NO_PERSONAL_NAME 3083    /* Clear personal name        */
253 #define MAIL$_USER_SET_COPY_SEND 3084   /* Set copy-send                      */
254 #define MAIL$_USER_SET_NO_COPY_SEND 3085        /* Clear copy send            */
255 #define MAIL$_USER_SET_COPY_REPLY 3086  /* Set copy reply                     */
256 #define MAIL$_USER_SET_NO_COPY_REPLY 3087       /* Clear copy reply           */
257 #define MAIL$_USER_SET_NEW_MESSAGES 3088        /* Set new message count      */
258 #define MAIL$_USER_CREATE_IF 3089       /* Create record if does not exist    */
259 #define MAIL$_USER_SET_MAILPLUS 3090    /* Set M+                             */
260 #define MAIL$_USER_SET_NO_MAILPLUS 3091 /* Clear M+                           */
261 #define MAIL$_USER_SET_TRANSPORT 3092   /* Set transport field                */
262 #define MAIL$_USER_SET_NO_TRANSPORT 3093        /* Clear transport field      */
263 #define MAIL$_USER_SET_EDITOR 3094      /* Set editor field                   */
264 #define MAIL$_USER_SET_NO_EDITOR 3095   /* Clear editor field                 */
265 #define MAIL$_USER_SET_QUEUE 3096       /* Set queue field                    */
266 #define MAIL$_USER_SET_NO_QUEUE 3097    /* Clear queue field                  */
267 #define MAIL$_USER_SET_USER1 3098       /* Set user1 field                    */
268 #define MAIL$_USER_SET_NO_USER1 3099    /* Clear user1 field                  */
269 #define MAIL$_USER_SET_USER2 3100       /* Set user2 field                    */
270 #define MAIL$_USER_SET_NO_USER2 3101    /* Clear user2 field                  */
271 #define MAIL$_USER_SET_USER3 3102       /* Set user3 field                    */
272 #define MAIL$_USER_SET_NO_USER3 3103    /* Clear user3 field                  */
273 #define MAIL$_USER_SET_FORM 3104        /* Set form field                     */
274 #define MAIL$_USER_SET_NO_FORM 3105     /* Clear form field                   */
275 #define MAIL$_USER_SET_COPY_FORWARD 3106        /* Set copy self forward      */
276 #define MAIL$_USER_SET_NO_COPY_FORWARD 3107     /* Clear copy self forward    */
277 #define MAIL$_USER_SET_CC_PROMPT 3108   /* Set CC prompting                   */
278 #define MAIL$_USER_SET_NO_CC_PROMPT 3109        /* Clear CC prompting         */
279 #define MAIL$_USER_SET_SPARE3 3110
280 #define MAIL$_USER_SET_NO_SPARE3 3111
281 #define MAIL$_USER_IN_SPARE1 3112
282 #define MAIL$_USER_IN_SPARE2 3113
283 #define MAIL$_USER_IN_SPARE3 3114
284 #define MAIL$_USER_IN_SPARE4 3115
285 #define MAIL$_USER_IN_SPARE5 3116
286 #define MAIL$_USER_IN_SPARE6 3117
287 #define MAIL$_USER_IN_SPARE7 3118
288 #define MAIL$_USER_IN_SPARE8 3119
289 #define MAIL$_USER_IN_SPARE9 3120
290 #define MAIL$_USER_IN_SPARE10 3121
291 #define MAIL$_USER_IN_SPARE11 3122
292 #define MAIL$_USER_IN_SPARE12 3123
293 #define MAIL$_USER_IN_SPARE13 3124
294 #define MAIL$_USER_IN_SPARE14 3125
295 #define MAIL$_USER_IN_SPARE15 3126
296 #define MAIL$_USER_IN_SPARE16 3127
297 #define MAIL$_USER_IN_SPARE17 3128
298 #define MAIL$_USER_IN_SPARE18 3129
299 #define MAIL$_USER_IN_SPARE19 3130
300 #define MAIL$_USER_IN_SPARE20 3131
301 /*                                                                            */
302 /* Output item parameters                                                     */
303 /*                                                                            */
304 #define MAIL$_USER_MAILPLUS 3132        /* M+ field                           */
305 #define MAIL$_USER_TRANSPORT 3133       /* Transport field                    */
306 #define MAIL$_USER_EDITOR 3134  /* Editor field                               */
307 #define MAIL$_USER_QUEUE 3135   /* Queue field                                */
308 #define MAIL$_USER_USER1 3136   /* User1 field                                */
309 #define MAIL$_USER_USER2 3137   /* User2 field                                */
310 #define MAIL$_USER_USER3 3138   /* User3 field                                */
311 #define MAIL$_USER_FORM 3139    /* Form field                                 */
312 #define MAIL$_USER_COPY_FORWARD 3140    /* Copy forward flag                  */
313 #define MAIL$_USER_SPARE3 3141
314 #define MAIL$_USER_RETURN_USERNAME 3142 /* Username of current record         */
315 #define MAIL$_USER_AUTO_PURGE 3143      /* Auto purge flag                    */
316 #define MAIL$_USER_SUB_DIRECTORY 3144   /* Sub-dir spec                       */
317 #define MAIL$_USER_FULL_DIRECTORY 3145  /* Full directory spec                */
318 #define MAIL$_USER_NEW_MESSAGES 3146    /* New message count                  */
319 #define MAIL$_USER_FORWARDING 3147      /* Forwarding field                   */
320 #define MAIL$_USER_PERSONAL_NAME 3148   /* Personal name field                */
321 #define MAIL$_USER_COPY_SEND 3149       /* Copy send flag                     */
322 #define MAIL$_USER_COPY_REPLY 3150      /* Copy reply flag                    */
323 #define MAIL$_USER_CAPTIVE 3151 /* User is captive                            */
324 #define MAIL$_USER_CC_PROMPT 3152       /* CC prompting flag                  */
325 #define MAIL$_USER_OUT_SPARE2 3153
326 #define MAIL$_USER_OUT_SPARE3 3154
327 #define MAIL$_USER_OUT_SPARE4 3155
328 #define MAIL$_USER_OUT_SPARE5 3156
329 #define MAIL$_USER_OUT_SPARE6 3157
330 #define MAIL$_USER_OUT_SPARE7 3158
331 #define MAIL$_USER_OUT_SPARE8 3159
332 #define MAIL$_USER_OUT_SPARE9 3160
333 #define MAIL$_USER_OUT_SPARE10 3161
334 #define MAIL$_USER_OUT_SPARE11 3162
335 #define MAIL$_USER_OUT_SPARE12 3163
336 #define MAIL$_USER_OUT_SPARE13 3164
337 #define MAIL$_USER_OUT_SPARE14 3165
338 #define MAIL$_USER_OUT_SPARE15 3166
339 #define MAIL$_USER_OUT_SPARE16 3167
340 #define MAIL$_USER_OUT_SPARE17 3168
341 #define MAIL$_USER_OUT_SPARE18 3169
342 #define MAIL$_USER_OUT_SPARE19 3170
343 #define MAIL$_USER_OUT_SPARE20 3171
344 #define MAIL$K_USER_MIN_ITEM 3072
345 #define MAIL$K_USER_MAX_ITEM 3171
346 #define MAIL$K_USER_ITEMS 100
347 /*                                                                            */
348 /* Special items                                                              */
349 /*                                                                            */
350 #define MAIL$_NOOP 4097 /* Do nothing - used for testing                      */
351 #define MAIL$_NOSIGNAL 4098     /* Don't signal errors                        */
352 #define MAIL$_NOPROBE 4099      /* Don't probe the item list buffers          */
353 #define MAIL$_TLD_INPUT 4100    /* This item is a tld to be used as input     */
354 #define MAIL$_TLD_OUTPUT 4101   /* This item describes a buffer to fill       */
355 /*                                                                            */
356 /* Username types for mail$send_add_address                                   */
357 /*                                                                            */
358 #define MAIL$_TO 1      /* Address part of the TO line                        */
359 #define MAIL$_CC 2      /* Address part of the CC line                        */
360 #define MAIL$_SPARE1 3
361 #define MAIL$_SPARE2 4
362 /*                                                                            */
363 /* Define the flag values for mail system flags                               */
364 /*                                                                            */
365 #define MAIL$M_NEWMSG 0x00000001
366 #define MAIL$M_REPLIED 0x00000002
367 #define MAIL$M_DEL 0x00000004
368 #define MAIL$M_EXTMSG 0x00000008
369 #define MAIL$M_EXTFNF 0x00000010
370 #define MAIL$M_SYSMSG 0x00000020
371 #define MAIL$M_EXTNSTD 0x00000040
372 #define MAIL$M_MARKED 0x00000080
373 #define MAIL$M_RECMODE 0x00000100
374 struct flagsdef {
375     union {
376         unsigned short int mail$w_flags;        /*Flags word                  */
377         struct {
378             unsigned mail$v_newmsg : 1; /*This is a new message               */
379             unsigned mail$v_replied : 1;        /*This message has been replied to    */
380             unsigned mail$v_del : 1;    /*This message is deleted             */
381             unsigned mail$v_extmsg : 1; /*Message text in external file       */
382             unsigned mail$v_extfnf : 1; /*External message file not found     */
383             unsigned mail$v_sysmsg : 1; /*Message text in system file         */
384             unsigned mail$v_extnstd : 1;        /*External file is not var-seq file   */
385             unsigned mail$v_marked : 1; /*This message has been marked        */
386             unsigned mail$v_recmode : 1;        /*This message should be read in record mode  */
387             unsigned mail$v_fill_2 : 7;
388             } mail$r_fill_1;
389         } mail$r_fill_0;
390 } ;
391 #endif
392 
393 
394 
395 
396