Commit | Line | Data |
---|---|---|
9e8e5516 C |
1 | -- P2.py - MHS P2 definitions |
2 | ||
3 | -- $Header: /f/osi/pepy/RCS/P2.py,v 7.1 91/02/22 09:34:44 mrose Interim $ | |
4 | -- | |
5 | -- | |
6 | -- $Log: P2.py,v $ | |
7 | -- Revision 7.1 91/02/22 09:34:44 mrose | |
8 | -- Interim 6.8 | |
9 | -- | |
10 | -- Revision 7.0 89/11/23 22:11:32 mrose | |
11 | -- Release 6.0 | |
12 | -- | |
13 | ||
14 | -- | |
15 | -- NOTICE | |
16 | -- | |
17 | -- Acquisition, use, and distribution of this module and related | |
18 | -- materials are subject to the restrictions of a license agreement. | |
19 | -- Consult the Preface in the User's Manual for the full terms of | |
20 | -- this agreement. | |
21 | -- | |
22 | -- | |
23 | ||
24 | ||
25 | P2 DEFINITIONS ::= | |
26 | ||
27 | %{ | |
28 | #ifndef lint | |
29 | static char *rcsid = "$Header: /f/osi/pepy/RCS/P2.py,v 7.1 91/02/22 09:34:44 mrose Interim $"; | |
30 | #endif | |
31 | %} | |
32 | ||
33 | BEGIN | |
34 | ||
35 | PRINTER print | |
36 | ||
37 | -- P2 makes use of types defined in the following modules: | |
38 | -- P1: X.411, Section 3.4 | |
39 | -- P3: X.411, Section 4.3 | |
40 | -- SFD: this Recommendation, Section 5 | |
41 | -- T73: T.73, Section 5 | |
42 | ||
43 | UAPDU ::= | |
44 | CHOICE { | |
45 | [0] | |
46 | IMPLICIT IM-UAPDU, | |
47 | ||
48 | [1] | |
49 | IMPLICIT SR-UAPDU | |
50 | } | |
51 | ||
52 | ||
53 | -- IP-message UAPDU | |
54 | ||
55 | IM-UAPDU ::= | |
56 | SEQUENCE { | |
57 | heading | |
58 | Heading, | |
59 | ||
60 | body | |
61 | Body | |
62 | } | |
63 | ||
64 | ||
65 | -- heading | |
66 | ||
67 | Heading ::= | |
68 | SET { | |
69 | messageid | |
70 | IPMessageId, | |
71 | ||
72 | originator[0] | |
73 | IMPLICIT ORDescriptor | |
74 | OPTIONAL, | |
75 | ||
76 | authorizingUsers[1] | |
77 | IMPLICIT SEQUENCE OF ORDescriptor | |
78 | OPTIONAL, | |
79 | -- only if not the originator | |
80 | ||
81 | primaryRecipients[2] | |
82 | IMPLICIT SEQUENCE OF Recipient | |
83 | OPTIONAL, | |
84 | ||
85 | copyRecipients[3] | |
86 | IMPLICIT SEQUENCE OF Recipient | |
87 | OPTIONAL, | |
88 | ||
89 | blindCopyRecipients[4] | |
90 | IMPLICIT SEQUENCE OF Recipient | |
91 | OPTIONAL, | |
92 | ||
93 | inReplyTo[5] | |
94 | IMPLICIT IPMessageId | |
95 | OPTIONAL, | |
96 | -- omitted if not in reply to a previous message | |
97 | ||
98 | obsoletes[6] | |
99 | IMPLICIT SEQUENCE OF IPMessageId | |
100 | OPTIONAL, | |
101 | ||
102 | crossReferences[7] | |
103 | IMPLICIT SEQUENCE OF IPMessageId | |
104 | OPTIONAL, | |
105 | ||
106 | subject[8] | |
107 | CHOICE { | |
108 | T61String | |
109 | } | |
110 | OPTIONAL, | |
111 | ||
112 | expiryDate[9] | |
113 | IMPLICIT P1.Time | |
114 | OPTIONAL, | |
115 | -- if omitted, expiry date is never | |
116 | ||
117 | replyBy[10] | |
118 | IMPLICIT P1.Time | |
119 | OPTIONAL, | |
120 | ||
121 | replyToUsers[11] | |
122 | IMPLICIT SEQUENCE OF ORDescriptor | |
123 | OPTIONAL, | |
124 | -- each O/R descriptor must contain an O/R name | |
125 | ||
126 | importance[12] | |
127 | IMPLICIT INTEGER { | |
128 | low(0), | |
129 | ||
130 | normal(1), | |
131 | ||
132 | high(2) | |
133 | } DEFAULT normal, | |
134 | ||
135 | sensitivity[13] | |
136 | IMPLICIT INTEGER { | |
137 | personal(1), | |
138 | ||
139 | private(2), | |
140 | ||
141 | companyConfidential(3) | |
142 | } OPTIONAL, | |
143 | ||
144 | autoforwarded[14] | |
145 | IMPLICIT BOOLEAN | |
146 | DEFAULT FALSE | |
147 | -- indicates that the forwarded message body | |
148 | -- part(s) were autoforwarded | |
149 | } | |
150 | ||
151 | IPMessageId ::= | |
152 | [APPLICATION 11] IMPLICIT SET { | |
153 | ORName OPTIONAL, | |
154 | ||
155 | PrintableString | |
156 | } | |
157 | ||
158 | ORName ::= | |
159 | P1.ORName | |
160 | ||
161 | ORDescriptor ::= | |
162 | SET { -- at least one of the first two members must be present | |
163 | ORName OPTIONAL, | |
164 | ||
165 | freeformName[0] | |
166 | IMPLICIT T61String | |
167 | OPTIONAL, | |
168 | ||
169 | telephoneNumber[1] | |
170 | IMPLICIT PrintableString | |
171 | OPTIONAL | |
172 | } | |
173 | ||
174 | Recipient ::= | |
175 | SET { | |
176 | [0] | |
177 | IMPLICIT ORDescriptor, | |
178 | ||
179 | reportRequest[1] | |
180 | IMPLICIT BITSTRING { | |
181 | receiptNotification(0), | |
182 | nonreceiptNotification(1), | |
183 | returnIPMessage(2) | |
184 | } | |
185 | DEFAULT {}, | |
186 | -- if requested, the O/R descriptor must contain an O/R name | |
187 | ||
188 | replyRequest[2] | |
189 | IMPLICIT BOOLEAN | |
190 | DEFAULT FALSE | |
191 | -- if true, the O/R descriptor must contain an O/R name | |
192 | } | |
193 | ||
194 | ||
195 | -- body | |
196 | ||
197 | Body ::= | |
198 | SEQUENCE OF BodyPart | |
199 | ||
200 | BodyPart ::= | |
201 | CHOICE { | |
202 | [0] | |
203 | IMPLICIT IA5Text, | |
204 | ||
205 | [1] | |
206 | IMPLICIT TLX, | |
207 | ||
208 | [2] | |
209 | IMPLICIT Voice, | |
210 | ||
211 | [3] | |
212 | IMPLICIT G3Fax, | |
213 | ||
214 | [4] | |
215 | IMPLICIT TIF0, | |
216 | ||
217 | [5] | |
218 | IMPLICIT TTX, | |
219 | ||
220 | [6] | |
221 | IMPLICIT Videotex, | |
222 | ||
223 | [7] | |
224 | NationallyDefined, | |
225 | ||
226 | [8] | |
227 | IMPLICIT Encrypted, | |
228 | ||
229 | [9] | |
230 | IMPLICIT ForwardedIPMessage, | |
231 | ||
232 | [10] | |
233 | IMPLICIT SFD, | |
234 | ||
235 | [11] | |
236 | IMPLICIT TIF1 | |
237 | } | |
238 | ||
239 | ||
240 | -- body part types | |
241 | ||
242 | IA5Text ::= | |
243 | SEQUENCE { | |
244 | SET { | |
245 | repertoire[0] | |
246 | IMPLICIT INTEGER { | |
247 | ia5(5), | |
248 | ||
249 | ita2(2) | |
250 | } DEFAULT ia5 | |
251 | -- additional members of this Set are a | |
252 | -- possible future extension | |
253 | }, | |
254 | ||
255 | IA5String | |
256 | } | |
257 | ||
258 | TLX ::= | |
259 | ANY -- for further study | |
260 | ||
261 | Voice ::= | |
262 | SEQUENCE { | |
263 | SET, -- members are for further study | |
264 | BITSTRING | |
265 | } | |
266 | ||
267 | G3Fax ::= | |
268 | SEQUENCE { | |
269 | SET { | |
270 | numberOfPages[0] | |
271 | IMPLICIT INTEGER OPTIONAL, | |
272 | ||
273 | [1] | |
274 | IMPLICIT P1.G3NonBasicParams OPTIONAL | |
275 | }, | |
276 | ||
277 | SEQUENCE OF BITSTRING | |
278 | } | |
279 | ||
280 | TIF0 ::= | |
281 | T73Document | |
282 | ||
283 | T73Document ::= | |
284 | SEQUENCE OF T73.ProtocolElement | |
285 | ||
286 | TTX ::= | |
287 | SEQUENCE { | |
288 | SET { | |
289 | numberOfPages[0] | |
290 | IMPLICIT INTEGER OPTIONAL, | |
291 | ||
292 | telexCompatible[1] | |
293 | IMPLICIT BOOLEAN DEFAULT FALSE, | |
294 | ||
295 | [2] | |
296 | IMPLICIT P1.TeletexNonBasicParams OPTIONAL | |
297 | }, | |
298 | ||
299 | SEQUENCE OF T61String | |
300 | } | |
301 | ||
302 | Videotex ::= | |
303 | SEQUENCE { | |
304 | SET, -- members are for further study | |
305 | VideotexString | |
306 | } | |
307 | ||
308 | NationallyDefined ::= | |
309 | ANY | |
310 | ||
311 | Encrypted ::= | |
312 | SEQUENCE { | |
313 | SET, -- members are for further study | |
314 | BITSTRING | |
315 | } | |
316 | ||
317 | ForwardedIPMessage ::= | |
318 | SEQUENCE { | |
319 | SET { | |
320 | delivery[0] | |
321 | IMPLICIT P1.Time | |
322 | OPTIONAL, | |
323 | ||
324 | [1] | |
325 | IMPLICIT DeliveryInformation | |
326 | OPTIONAL | |
327 | }, | |
328 | ||
329 | IM-UAPDU | |
330 | } | |
331 | ||
332 | DeliveryInformation ::= | |
333 | P3.DeliverEnvelope | |
334 | ||
335 | SFD ::= | |
336 | SFD.Document | |
337 | ||
338 | TIF1 ::= | |
339 | T73Document | |
340 | ||
341 | ||
342 | -- IPM-status-report UAPDU | |
343 | ||
344 | SR-UAPDU ::= | |
345 | SET { | |
346 | [0] | |
347 | CHOICE { | |
348 | nonReceipt[0] | |
349 | IMPLICIT NonReceiptInformation, | |
350 | ||
351 | receipt[1] | |
352 | IMPLICIT ReceiptInformation | |
353 | }, | |
354 | ||
355 | reported | |
356 | IPMessageId, | |
357 | ||
358 | actualRecipient[1] | |
359 | IMPLICIT ORDescriptor | |
360 | OPTIONAL, | |
361 | ||
362 | intendedRecipient[2] | |
363 | IMPLICIT ORDescriptor | |
364 | OPTIONAL, | |
365 | ||
366 | converted | |
367 | P1.EncodedInformationTypes | |
368 | OPTIONAL | |
369 | } | |
370 | ||
371 | NonReceiptInformation ::= | |
372 | SET { | |
373 | reason[0] | |
374 | IMPLICIT INTEGER { | |
375 | uaeInitiatedDiscard(0), | |
376 | ||
377 | autoForwarded(1) | |
378 | }, | |
379 | ||
380 | nonReceiptQualifer[1] | |
381 | IMPLICIT INTEGER { | |
382 | expired(0), | |
383 | ||
384 | obsoleted(1), | |
385 | ||
386 | subscriptionTerminated(2) | |
387 | } OPTIONAL, | |
388 | ||
389 | comments[2] | |
390 | IMPLICIT PrintableString | |
391 | OPTIONAL, | |
392 | -- on auto-forward | |
393 | ||
394 | returned[3] | |
395 | IMPLICIT IM-UAPDU | |
396 | OPTIONAL | |
397 | } | |
398 | ||
399 | ReceiptInformation ::= | |
400 | SET { | |
401 | receipt[0] | |
402 | IMPLICIT P1.Time, | |
403 | ||
404 | typeOfReceipt[1] | |
405 | IMPLICIT INTEGER { | |
406 | explicit(0), | |
407 | ||
408 | automatic(1) | |
409 | } DEFAULT explicit, | |
410 | ||
411 | [2] | |
412 | IMPLICIT P1.SupplementaryInformation OPTIONAL | |
413 | } | |
414 | ||
415 | END |