source: GuiMail/trunk/KIDS/CWMAIL2_3.KID@ 1222

Last change on this file since 1222 was 1139, checked in by George Lilly, 14 years ago

version 2.3 of GuiMail

File size: 103.3 KB
Line 
1KIDS Distribution saved on Jul 22, 2005@07:26:11
2VERSION 2.3
3**KIDS**:CWMAIL*2.3*0^
4
5**INSTALL NAME**
6CWMAIL*2.3*0
7"BLD",6280,0)
8CWMAIL*2.3*0^CW GUIMail^0^3050722^n
9"BLD",6280,4,0)
10^9.64PA^^0
11"BLD",6280,"ABPKG")
12n
13"BLD",6280,"INIT")
14EN^CWMAINI
15"BLD",6280,"KRN",0)
16^9.67PA^8989.52^19
17"BLD",6280,"KRN",.4,0)
18.4
19"BLD",6280,"KRN",.401,0)
20.401
21"BLD",6280,"KRN",.402,0)
22.402
23"BLD",6280,"KRN",.403,0)
24.403
25"BLD",6280,"KRN",.5,0)
26.5
27"BLD",6280,"KRN",.84,0)
28.84
29"BLD",6280,"KRN",3.6,0)
303.6
31"BLD",6280,"KRN",3.8,0)
323.8
33"BLD",6280,"KRN",9.2,0)
349.2
35"BLD",6280,"KRN",9.8,0)
369.8
37"BLD",6280,"KRN",9.8,"NM",0)
38^9.68A^16^16
39"BLD",6280,"KRN",9.8,"NM",1,0)
40CWMACPPI^^0^B4934611
41"BLD",6280,"KRN",9.8,"NM",2,0)
42CWMAIL^^0^B19315599
43"BLD",6280,"KRN",9.8,"NM",3,0)
44CWMAIL0^^0^B20950040
45"BLD",6280,"KRN",9.8,"NM",4,0)
46CWMAIL1^^0^B14471507
47"BLD",6280,"KRN",9.8,"NM",5,0)
48CWMAIL2^^0^B22772090
49"BLD",6280,"KRN",9.8,"NM",6,0)
50CWMAIL3^^0^B5057438
51"BLD",6280,"KRN",9.8,"NM",7,0)
52CWMAIL4^^0^B1346202
53"BLD",6280,"KRN",9.8,"NM",8,0)
54CWMAILA^^0^B23710063
55"BLD",6280,"KRN",9.8,"NM",9,0)
56CWMAILB^^0^B22359091
57"BLD",6280,"KRN",9.8,"NM",10,0)
58CWMAILC^^0^B12646738
59"BLD",6280,"KRN",9.8,"NM",11,0)
60CWMAILD^^0^B22909291
61"BLD",6280,"KRN",9.8,"NM",12,0)
62CWMAILE^^0^B13183521
63"BLD",6280,"KRN",9.8,"NM",13,0)
64CWMAILF^^0^B6688838
65"BLD",6280,"KRN",9.8,"NM",14,0)
66CWMAINI^^0^B9313045
67"BLD",6280,"KRN",9.8,"NM",15,0)
68CWMAPP^^0^B806108
69"BLD",6280,"KRN",9.8,"NM",16,0)
70CWMAPP01^^0^B2776736
71"BLD",6280,"KRN",9.8,"NM","B","CWMACPPI",1)
72
73"BLD",6280,"KRN",9.8,"NM","B","CWMAIL",2)
74
75"BLD",6280,"KRN",9.8,"NM","B","CWMAIL0",3)
76
77"BLD",6280,"KRN",9.8,"NM","B","CWMAIL1",4)
78
79"BLD",6280,"KRN",9.8,"NM","B","CWMAIL2",5)
80
81"BLD",6280,"KRN",9.8,"NM","B","CWMAIL3",6)
82
83"BLD",6280,"KRN",9.8,"NM","B","CWMAIL4",7)
84
85"BLD",6280,"KRN",9.8,"NM","B","CWMAILA",8)
86
87"BLD",6280,"KRN",9.8,"NM","B","CWMAILB",9)
88
89"BLD",6280,"KRN",9.8,"NM","B","CWMAILC",10)
90
91"BLD",6280,"KRN",9.8,"NM","B","CWMAILD",11)
92
93"BLD",6280,"KRN",9.8,"NM","B","CWMAILE",12)
94
95"BLD",6280,"KRN",9.8,"NM","B","CWMAILF",13)
96
97"BLD",6280,"KRN",9.8,"NM","B","CWMAINI",14)
98
99"BLD",6280,"KRN",9.8,"NM","B","CWMAPP",15)
100
101"BLD",6280,"KRN",9.8,"NM","B","CWMAPP01",16)
102
103"BLD",6280,"KRN",19,0)
10419
105"BLD",6280,"KRN",19,"NM",0)
106^9.68A^1^1
107"BLD",6280,"KRN",19,"NM",1,0)
108CW MAIL^^0
109"BLD",6280,"KRN",19,"NM","B","CW MAIL",1)
110
111"BLD",6280,"KRN",19.1,0)
11219.1
113"BLD",6280,"KRN",101,0)
114101
115"BLD",6280,"KRN",409.61,0)
116409.61
117"BLD",6280,"KRN",771,0)
118771
119"BLD",6280,"KRN",870,0)
120870
121"BLD",6280,"KRN",8989.51,0)
1228989.51
123"BLD",6280,"KRN",8989.51,"NM",0)
124^9.68A^19^19
125"BLD",6280,"KRN",8989.51,"NM",1,0)
126CWMA ALLOW ATTACHMENTS^^0
127"BLD",6280,"KRN",8989.51,"NM",2,0)
128CWMA GENERAL CMA STYLE^^0
129"BLD",6280,"KRN",8989.51,"NM",3,0)
130CWMA GENERAL MD COL^^0
131"BLD",6280,"KRN",8989.51,"NM",4,0)
132CWMA GENERAL MD COUNT^^0
133"BLD",6280,"KRN",8989.51,"NM",5,0)
134CWMA GENERAL MPD TAB^^0
135"BLD",6280,"KRN",8989.51,"NM",6,0)
136CWMA GENERAL NMP FREQ^^0
137"BLD",6280,"KRN",8989.51,"NM",7,0)
138CWMA GENERAL PRINTMODE^^0
139"BLD",6280,"KRN",8989.51,"NM",8,0)
140CWMA GENERAL VISTA PRT^^0
141"BLD",6280,"KRN",8989.51,"NM",9,0)
142CWMA SOUND ENABLED^^0
143"BLD",6280,"KRN",8989.51,"NM",10,0)
144CWMA SOUND MESSAGE CLOSE^^0
145"BLD",6280,"KRN",8989.51,"NM",11,0)
146CWMA SOUND MESSAGE OPEN^^0
147"BLD",6280,"KRN",8989.51,"NM",12,0)
148CWMA SOUND NEW MAIL^^0
149"BLD",6280,"KRN",8989.51,"NM",13,0)
150CWMA SOUND PRIORITY MAIL^^0
151"BLD",6280,"KRN",8989.51,"NM",14,0)
152CWMA STARTUP MAIL BOX NAME^^0
153"BLD",6280,"KRN",8989.51,"NM",15,0)
154CWMA STARTUP NEW MAIL^^0
155"BLD",6280,"KRN",8989.51,"NM",16,0)
156CWMA STARTUP OPEN MAIL BOX^^0
157"BLD",6280,"KRN",8989.51,"NM",17,0)
158CWMA GUIMAIL TIMEOUT VALUE^^0
159"BLD",6280,"KRN",8989.51,"NM",18,0)
160CWMA DISABLE GUIMAIL TIMEOUT^^0
161"BLD",6280,"KRN",8989.51,"NM",19,0)
162CWMA ALLOW ATTACHMENTS OPEN^^0
163"BLD",6280,"KRN",8989.51,"NM","B","CWMA ALLOW ATTACHMENTS",1)
164
165"BLD",6280,"KRN",8989.51,"NM","B","CWMA ALLOW ATTACHMENTS OPEN",19)
166
167"BLD",6280,"KRN",8989.51,"NM","B","CWMA DISABLE GUIMAIL TIMEOUT",18)
168
169"BLD",6280,"KRN",8989.51,"NM","B","CWMA GENERAL CMA STYLE",2)
170
171"BLD",6280,"KRN",8989.51,"NM","B","CWMA GENERAL MD COL",3)
172
173"BLD",6280,"KRN",8989.51,"NM","B","CWMA GENERAL MD COUNT",4)
174
175"BLD",6280,"KRN",8989.51,"NM","B","CWMA GENERAL MPD TAB",5)
176
177"BLD",6280,"KRN",8989.51,"NM","B","CWMA GENERAL NMP FREQ",6)
178
179"BLD",6280,"KRN",8989.51,"NM","B","CWMA GENERAL PRINTMODE",7)
180
181"BLD",6280,"KRN",8989.51,"NM","B","CWMA GENERAL VISTA PRT",8)
182
183"BLD",6280,"KRN",8989.51,"NM","B","CWMA GUIMAIL TIMEOUT VALUE",17)
184
185"BLD",6280,"KRN",8989.51,"NM","B","CWMA SOUND ENABLED",9)
186
187"BLD",6280,"KRN",8989.51,"NM","B","CWMA SOUND MESSAGE CLOSE",10)
188
189"BLD",6280,"KRN",8989.51,"NM","B","CWMA SOUND MESSAGE OPEN",11)
190
191"BLD",6280,"KRN",8989.51,"NM","B","CWMA SOUND NEW MAIL",12)
192
193"BLD",6280,"KRN",8989.51,"NM","B","CWMA SOUND PRIORITY MAIL",13)
194
195"BLD",6280,"KRN",8989.51,"NM","B","CWMA STARTUP MAIL BOX NAME",14)
196
197"BLD",6280,"KRN",8989.51,"NM","B","CWMA STARTUP NEW MAIL",15)
198
199"BLD",6280,"KRN",8989.51,"NM","B","CWMA STARTUP OPEN MAIL BOX",16)
200
201"BLD",6280,"KRN",8989.52,0)
2028989.52
203"BLD",6280,"KRN",8989.52,"NM",0)
204^9.68A^2^2
205"BLD",6280,"KRN",8989.52,"NM",1,0)
206CWMA PACKAGE PARAMETERS^^0
207"BLD",6280,"KRN",8989.52,"NM",2,0)
208CWMA USER PARAMETERS^^0
209"BLD",6280,"KRN",8989.52,"NM","B","CWMA PACKAGE PARAMETERS",1)
210
211"BLD",6280,"KRN",8989.52,"NM","B","CWMA USER PARAMETERS",2)
212
213"BLD",6280,"KRN",8994,0)
2148994
215"BLD",6280,"KRN",8994,"NM",0)
216^9.68A^1^1
217"BLD",6280,"KRN",8994,"NM",1,0)
218CW MAIL API^^0
219"BLD",6280,"KRN",8994,"NM","B","CW MAIL API",1)
220
221"BLD",6280,"KRN","B",.4,.4)
222
223"BLD",6280,"KRN","B",.401,.401)
224
225"BLD",6280,"KRN","B",.402,.402)
226
227"BLD",6280,"KRN","B",.403,.403)
228
229"BLD",6280,"KRN","B",.5,.5)
230
231"BLD",6280,"KRN","B",.84,.84)
232
233"BLD",6280,"KRN","B",3.6,3.6)
234
235"BLD",6280,"KRN","B",3.8,3.8)
236
237"BLD",6280,"KRN","B",9.2,9.2)
238
239"BLD",6280,"KRN","B",9.8,9.8)
240
241"BLD",6280,"KRN","B",19,19)
242
243"BLD",6280,"KRN","B",19.1,19.1)
244
245"BLD",6280,"KRN","B",101,101)
246
247"BLD",6280,"KRN","B",409.61,409.61)
248
249"BLD",6280,"KRN","B",771,771)
250
251"BLD",6280,"KRN","B",870,870)
252
253"BLD",6280,"KRN","B",8989.51,8989.51)
254
255"BLD",6280,"KRN","B",8989.52,8989.52)
256
257"BLD",6280,"KRN","B",8994,8994)
258
259"BLD",6280,"PRE")
260CWMAINI
261"BLD",6280,"QUES",0)
262^9.62^^
263"BLD",6280,"REQB",0)
264^9.611^^
265"INIT")
266EN^CWMAINI
267"KRN",19,13463,-1)
2680^1
269"KRN",19,13463,0)
270CW MAIL^CW MAIL^^B^^^^^^^^
271"KRN",19,13463,1,0)
272^19.06^1^1^3020820^^
273"KRN",19,13463,1,1,0)
274This menu option is used to validate the Broker Context of a user.
275"KRN",19,13463,99)
27657216,70477
277"KRN",19,13463,99.1)
27859038,29134
279"KRN",19,13463,"RPC",0)
280^19.05P^103^103
281"KRN",19,13463,"RPC",11,0)
282DDR LISTER
283"KRN",19,13463,"RPC",12,0)
284DDR FILER
285"KRN",19,13463,"RPC",13,0)
286DDR GETS ENTRY DATA
287"KRN",19,13463,"RPC",14,0)
288DDR VALIDATOR
289"KRN",19,13463,"RPC",15,0)
290XWB GET VARIABLE VALUE
291"KRN",19,13463,"RPC",52,0)
292CW MAIL API
293"KRN",19,13463,"RPC",92,0)
294DDR FINDER
295"KRN",19,13463,"RPC",100,0)
296DDR DELETE ENTRY
297"KRN",19,13463,"RPC",101,0)
298DDR FIND1
299"KRN",19,13463,"RPC",102,0)
300DDR GET DD HELP
301"KRN",19,13463,"RPC",103,0)
302DDR LOCK/UNLOCK NODE
303"KRN",19,13463,"U")
304CW MAIL
305"KRN",8989.5,21924,0)
306515;DIC(9.4,^CWMA STARTUP NEW MAIL^1
307"KRN",8989.5,21924,1)
3081
309"KRN",8989.5,21925,0)
310515;DIC(9.4,^CWMA GENERAL MD COL^1
311"KRN",8989.5,21925,1)
3120,5
313"KRN",8989.5,21926,0)
314515;DIC(9.4,^CWMA GENERAL MD COL^2
315"KRN",8989.5,21926,1)
3161,25
317"KRN",8989.5,21927,0)
318515;DIC(9.4,^CWMA GENERAL MD COL^3
319"KRN",8989.5,21927,1)
3202,60
321"KRN",8989.5,21928,0)
322515;DIC(9.4,^CWMA GENERAL MD COL^4
323"KRN",8989.5,21928,1)
3243,250
325"KRN",8989.5,21929,0)
326515;DIC(9.4,^CWMA GENERAL MD COL^5
327"KRN",8989.5,21929,1)
3284,200
329"KRN",8989.5,21930,0)
330515;DIC(9.4,^CWMA GENERAL MD COL^6
331"KRN",8989.5,21930,1)
3325,47
333"KRN",8989.5,21931,0)
334515;DIC(9.4,^CWMA SOUND ENABLED^1
335"KRN",8989.5,21931,1)
3360
337"KRN",8989.5,21932,0)
338515;DIC(9.4,^CWMA GENERAL MD COL^7
339"KRN",8989.5,21932,1)
3406,38
341"KRN",8989.5,21933,0)
342515;DIC(9.4,^CWMA GENERAL CMA STYLE^1
343"KRN",8989.5,21933,1)
3440
345"KRN",8989.5,21934,0)
346515;DIC(9.4,^CWMA GENERAL MPD TAB^1
347"KRN",8989.5,21934,1)
3480
349"KRN",8989.5,21935,0)
350515;DIC(9.4,^CWMA GENERAL NMP FREQ^1
351"KRN",8989.5,21935,1)
3525
353"KRN",8989.5,21936,0)
354515;DIC(9.4,^CWMA GENERAL MD COUNT^1
355"KRN",8989.5,21936,1)
3568
357"KRN",8989.5,21937,0)
358515;DIC(9.4,^CWMA GENERAL PRINTMODE^1
359"KRN",8989.5,21937,1)
3600
361"KRN",8989.5,27914,0)
362515;DIC(9.4,^CWMA ALLOW ATTACHMENTS^1
363"KRN",8989.5,27914,1)
3641
365"KRN",8989.5,269310,0)
366515;DIC(9.4,^CWMA DISABLE GUIMAIL TIMEOUT^1
367"KRN",8989.5,269310,1)
3681
369"KRN",8989.51,34,-1)
3700^11
371"KRN",8989.51,34,0)
372CWMA SOUND MESSAGE OPEN^GUIMAIL MESSAGE OPEN SOUND^0^^Open Message Sound File Location
373"KRN",8989.51,34,1)
374F^^Enter the full path to the wav sound file
375"KRN",8989.51,34,20,0)
376^^4^4^2990423.100233
377"KRN",8989.51,34,20,1,0)
378This parameter holds the full resolved path to the wav file that will be
379"KRN",8989.51,34,20,2,0)
380played on the client system when a message is opened.
381"KRN",8989.51,34,20,3,0)
382
383"KRN",8989.51,34,20,4,0)
384Client attribute: [Sound]Message Open
385"KRN",8989.51,34,30,0)
386^8989.513I^2^2
387"KRN",8989.51,34,30,1,0)
3881^200
389"KRN",8989.51,34,30,2,0)
3909^9.4
391"KRN",8989.51,35,-1)
3920^10
393"KRN",8989.51,35,0)
394CWMA SOUND MESSAGE CLOSE^GUIMAIL MESSAGE CLOSE SOUND^0^^Close Message Sound File Location
395"KRN",8989.51,35,1)
396F^^Enter the full path to the wav sound file
397"KRN",8989.51,35,20,0)
398^^4^4^2990423.100321
399"KRN",8989.51,35,20,1,0)
400This parameter holds the full resolved path to the wav file that will be
401"KRN",8989.51,35,20,2,0)
402played on the client system when a message is closed.
403"KRN",8989.51,35,20,3,0)
404
405"KRN",8989.51,35,20,4,0)
406Client attribute: [Sound]Message Close
407"KRN",8989.51,35,30,0)
408^8989.513I^2^2
409"KRN",8989.51,35,30,1,0)
4101^200
411"KRN",8989.51,35,30,2,0)
4129^9.4
413"KRN",8989.51,36,-1)
4140^12
415"KRN",8989.51,36,0)
416CWMA SOUND NEW MAIL^GUIMAIL NEW MAIL SOUND^0^^New Mail Sound File Location
417"KRN",8989.51,36,1)
418F^^Enter the full path to the wav sound file
419"KRN",8989.51,36,20,0)
420^^4^4^2990423^
421"KRN",8989.51,36,20,1,0)
422This parameter holds the full resolved path to the wav file that will be
423"KRN",8989.51,36,20,2,0)
424played on the client system when new mail is received.
425"KRN",8989.51,36,20,3,0)
426
427"KRN",8989.51,36,20,4,0)
428Client attribute: [Sound]New Mail
429"KRN",8989.51,36,30,0)
430^8989.513I^2^2
431"KRN",8989.51,36,30,1,0)
4321^200
433"KRN",8989.51,36,30,2,0)
4349^9.4
435"KRN",8989.51,37,-1)
4360^15
437"KRN",8989.51,37,0)
438CWMA STARTUP NEW MAIL^GUIMAIL STARTUP RETRIEVE NEW MAIL^0^^Retrieve New Mail at Startup
439"KRN",8989.51,37,1)
440S^0:False;1:True^Enter 'True' or 'False'
441"KRN",8989.51,37,20,0)
442^^4^4^2981228^
443"KRN",8989.51,37,20,1,0)
444This parameter holds a boolean value of 'True' or 'False' and is used by
445"KRN",8989.51,37,20,2,0)
446the client system to determine if New Mail will be displayed on Startup.
447"KRN",8989.51,37,20,3,0)
448
449"KRN",8989.51,37,20,4,0)
450Client attribute: [StartUp]StartUpNewMail=
451"KRN",8989.51,37,30,0)
452^8989.513I^2^2
453"KRN",8989.51,37,30,1,0)
4541^200
455"KRN",8989.51,37,30,2,0)
4569^9.4
457"KRN",8989.51,38,-1)
4580^16
459"KRN",8989.51,38,0)
460CWMA STARTUP OPEN MAIL BOX^GUIMAIL OPEN MAIL BOX^0^^Open a Mail Box at Startup
461"KRN",8989.51,38,1)
462S^0:False;1:True^Enter 'True' or 'False'
463"KRN",8989.51,38,20,0)
464^^4^4^2990423.100148
465"KRN",8989.51,38,20,1,0)
466This parameter holds the setting for mail box opening at start-up of the
467"KRN",8989.51,38,20,2,0)
468client application.
469"KRN",8989.51,38,20,3,0)
470
471"KRN",8989.51,38,20,4,0)
472Client attribute: [StartUp]StartUpOpenMailBoxName
473"KRN",8989.51,38,30,0)
474^8989.513I^2^2
475"KRN",8989.51,38,30,1,0)
4761^200
477"KRN",8989.51,38,30,2,0)
4789^9.4
479"KRN",8989.51,39,-1)
4800^14
481"KRN",8989.51,39,0)
482CWMA STARTUP MAIL BOX NAME^GUIMAIL OPEN MAIL BOX NAME^0^^Mail Box Name to Open
483"KRN",8989.51,39,1)
484F^^Enter mail box name to open Name is case sensitive
485"KRN",8989.51,39,20,0)
486^^5^5^2990423^
487"KRN",8989.51,39,20,1,0)
488This parameters holds the name of the Mail Box that will be opened at
489"KRN",8989.51,39,20,2,0)
490client application startup if the CWMA STARTUP OPEN MAIL BOX parameter is
491"KRN",8989.51,39,20,3,0)
492set to 1. This value is case sensitive.
493"KRN",8989.51,39,20,4,0)
494
495"KRN",8989.51,39,20,5,0)
496Client attribute: [StartUp]StartUpOpenMailBoxName
497"KRN",8989.51,39,30,0)
498^8989.513I^2^2
499"KRN",8989.51,39,30,1,0)
5001^200
501"KRN",8989.51,39,30,2,0)
5029^9.4
503"KRN",8989.51,40,-1)
5040^2
505"KRN",8989.51,40,0)
506CWMA GENERAL CMA STYLE^GUIMAIL CMA STYLE DEFAULT^0^^Msg Attrib Style
507"KRN",8989.51,40,1)
508S^0:Use Menu;1:Show Checkboxes^Enter the display style on Create Message Form
509"KRN",8989.51,40,20,0)
510^8989.512^4^4^3050511^
511"KRN",8989.51,40,20,1,0)
512This parameter holds the style that the Create Message Form will use to
513"KRN",8989.51,40,20,2,0)
514display Message Attributes.
515"KRN",8989.51,40,20,3,0)
516
517"KRN",8989.51,40,20,4,0)
518Client attribute: [General]CreateMessageAttributes
519"KRN",8989.51,40,30,0)
520^8989.513I^2^2
521"KRN",8989.51,40,30,1,0)
5221^200
523"KRN",8989.51,40,30,2,0)
5249^9.4
525"KRN",8989.51,41,-1)
5260^5
527"KRN",8989.51,41,0)
528CWMA GENERAL MPD TAB^GUIMAIL MSG PROPERTIES DEFAULT TAB^0^^MSG Properties Default Tab
529"KRN",8989.51,41,1)
530S^0:Recipients;1:Message Info;2:Addressed To^Enter the default tab
531"KRN",8989.51,41,20,0)
532^^4^4^2981228.145529
533"KRN",8989.51,41,20,1,0)
534This parameter holds the default Message Properties Tab that will display
535"KRN",8989.51,41,20,2,0)
536when viewing the message attributes.
537"KRN",8989.51,41,20,3,0)
538
539"KRN",8989.51,41,20,4,0)
540Client attribute: [General]MessagePropertiesDefaultTab
541"KRN",8989.51,41,30,0)
542^8989.513I^2^2
543"KRN",8989.51,41,30,1,0)
5441^200
545"KRN",8989.51,41,30,2,0)
5469^9.4
547"KRN",8989.51,49,-1)
5480^6
549"KRN",8989.51,49,0)
550CWMA GENERAL NMP FREQ^GUIMAIL NEW MAIL POLLING FREQUENCY^0^^New Mail Polling Freq.
551"KRN",8989.51,49,1)
552N^1:360:0^Enter number of minutes for polling frequency
553"KRN",8989.51,49,20,0)
554^^4^4^2981228.145551
555"KRN",8989.51,49,20,1,0)
556This parameter holds the number of minutes that the application will poll
557"KRN",8989.51,49,20,2,0)
558the VISTA mail server for new mail.
559"KRN",8989.51,49,20,3,0)
560
561"KRN",8989.51,49,20,4,0)
562Client attribute: [General]NewMailPollingFrequency
563"KRN",8989.51,49,30,0)
564^8989.513I^2^2
565"KRN",8989.51,49,30,1,0)
5661^200
567"KRN",8989.51,49,30,2,0)
5689^9.4
569"KRN",8989.51,87,-1)
5700^4
571"KRN",8989.51,87,0)
572CWMA GENERAL MD COUNT^GUIMAIL # OF MSG DISPLAY COUNT^0^^Message Display Count
573"KRN",8989.51,87,1)
574N^1:49^Enter the number of messages to display
575"KRN",8989.51,87,20,0)
576^^4^4^2981228.145151
577"KRN",8989.51,87,20,1,0)
578This parameter holds the number of messages to display in main message
579"KRN",8989.51,87,20,2,0)
580viewer.
581"KRN",8989.51,87,20,3,0)
582
583"KRN",8989.51,87,20,4,0)
584Client attribute: [General]MessageDisplayCount
585"KRN",8989.51,87,30,0)
586^8989.513I^2^2
587"KRN",8989.51,87,30,1,0)
5881^200
589"KRN",8989.51,87,30,2,0)
5909^9.4
591"KRN",8989.51,89,-1)
5920^8
593"KRN",8989.51,89,0)
594CWMA GENERAL VISTA PRT^GUIMAIL DEFAULT VISTA PRINTER^0^^VISTA Printer Name
595"KRN",8989.51,89,1)
596F^^Enter the Vista printer name as defined in the Device File
597"KRN",8989.51,89,20,0)
598^^3^3^2981228.145625
599"KRN",8989.51,89,20,1,0)
600This parameter holds the default Vista printer name.
601"KRN",8989.51,89,20,2,0)
602
603"KRN",8989.51,89,20,3,0)
604Client attribute: [General]DefaultVistaPrinter
605"KRN",8989.51,89,30,0)
606^8989.513I^2^2
607"KRN",8989.51,89,30,1,0)
6081^200
609"KRN",8989.51,89,30,2,0)
6109^9.4
611"KRN",8989.51,90,-1)
6120^13
613"KRN",8989.51,90,0)
614CWMA SOUND PRIORITY MAIL^GUIMAIL PRIORITY MAIL SOUND^0^^Priority Message Sound File Location
615"KRN",8989.51,90,1)
616F^^Enter the full path to the wav sound file
617"KRN",8989.51,90,20,0)
618^8989.512^4^4^3050624^
619"KRN",8989.51,90,20,1,0)
620This parameter holds the full resolved path to the wav file that will be
621"KRN",8989.51,90,20,2,0)
622played on the client system when a message is of type Priority.
623"KRN",8989.51,90,20,3,0)
624
625"KRN",8989.51,90,20,4,0)
626Client attribute: [Sound]Message Priority
627"KRN",8989.51,90,30,0)
628^8989.513I^2^2
629"KRN",8989.51,90,30,1,0)
6301^200
631"KRN",8989.51,90,30,2,0)
6329^9.4
633"KRN",8989.51,92,-1)
6340^7
635"KRN",8989.51,92,0)
636CWMA GENERAL PRINTMODE^GUIMAIL DEFAULT PRINT MODE^0^^Print Mode
637"KRN",8989.51,92,1)
638S^0:Vista;1:Windows^Enter mode of default printing
639"KRN",8989.51,92,20,0)
640^^3^3^2990423^
641"KRN",8989.51,92,20,1,0)
642This parameter holds the default mode of printing for the Print button.
643"KRN",8989.51,92,20,2,0)
644
645"KRN",8989.51,92,20,3,0)
646Client attribute: [General]DefaultPrintMode
647"KRN",8989.51,92,30,0)
648^8989.513I^2^2
649"KRN",8989.51,92,30,1,0)
6501^200
651"KRN",8989.51,92,30,2,0)
6529^9.4
653"KRN",8989.51,95,-1)
6540^3
655"KRN",8989.51,95,0)
656CWMA GENERAL MD COL^GUIMAIL MSG DISPLAY COLUMN SETTINGS^1^Column Display Sequence^Column,Width
657"KRN",8989.51,95,1)
658F^^Example: 3,50 (Column Number (zero based), pixel width)(Pattern: 1.2N1","1.N)
659"KRN",8989.51,95,2)
660K:X'?1.2N1","1.N X
661"KRN",8989.51,95,6)
662N^1:7^Enter the sequence in which the columns will display
663"KRN",8989.51,95,20,0)
664^8989.512^7^7^3050624^^^^
665"KRN",8989.51,95,20,1,0)
666This parameter holds the ordering of the columns and the column/width value
667"KRN",8989.51,95,20,2,0)
668pair. The value of each sequence instance will be in the following format:
669"KRN",8989.51,95,20,3,0)
670
671"KRN",8989.51,95,20,4,0)
672Column Number, a comma, and column width in pixels. The column number is
673"KRN",8989.51,95,20,5,0)
674zero based.
675"KRN",8989.51,95,20,6,0)
676
677"KRN",8989.51,95,20,7,0)
678Client attribute: [General]MessageDisplayColumns
679"KRN",8989.51,95,30,0)
680^8989.513I^2^2
681"KRN",8989.51,95,30,1,0)
6821^200
683"KRN",8989.51,95,30,2,0)
6849^9.4
685"KRN",8989.51,96,-1)
6860^9
687"KRN",8989.51,96,0)
688CWMA SOUND ENABLED^GUIMAIL SOUND ENABLED^0^^Enable Sound
689"KRN",8989.51,96,1)
690S^0:False;1:True^Enter '1' to play sound, '0' to disable sound
691"KRN",8989.51,96,20,0)
692^^3^3^2990423.100335
693"KRN",8989.51,96,20,1,0)
694This parameter holds the value of whether or not sound will be played.
695"KRN",8989.51,96,20,2,0)
696
697"KRN",8989.51,96,20,3,0)
698Client attribute: [Sound]Sound
699"KRN",8989.51,96,30,0)
700^8989.513I^2^2
701"KRN",8989.51,96,30,1,0)
7021^200
703"KRN",8989.51,96,30,2,0)
7049^9.4
705"KRN",8989.51,100,-1)
7060^1
707"KRN",8989.51,100,0)
708CWMA ALLOW ATTACHMENTS^GUIMAIL ALLOW ATTACHMENTS^0^^Allow attachments to be added to message
709"KRN",8989.51,100,1)
710S^0:False;1:True^Enter 'True' or 'False'
711"KRN",8989.51,100,20,0)
712^8989.512^4^4^3050104^^^
713"KRN",8989.51,100,20,1,0)
714This parameter holds a boolean value of 'True' or 'False' and is used by
715"KRN",8989.51,100,20,2,0)
716the client system to determine if a user can add attachments to messages.
717"KRN",8989.51,100,20,3,0)
718
719"KRN",8989.51,100,20,4,0)
720Client attribute: [General]AllowAttachments=
721"KRN",8989.51,100,30,0)
722^8989.513I^2^2
723"KRN",8989.51,100,30,1,0)
7241^200
725"KRN",8989.51,100,30,2,0)
7269^9.4
727"KRN",8989.51,391,-1)
7280^19
729"KRN",8989.51,391,0)
730CWMA ALLOW ATTACHMENTS OPEN^ GUIMAIL ALLOW ATTACHMENT OPEN^0^^Allow attachments to be opened
731"KRN",8989.51,391,1)
732S^0:False;1:True^Enter 'True' or 'False'
733"KRN",8989.51,391,20,0)
734^8989.512^6^6^3050512^^^^
735"KRN",8989.51,391,20,1,0)
736This parameter holds a boolean value of 'True' or 'False' and is used by
737"KRN",8989.51,391,20,2,0)
738the client system to determine if a user can open an attachment within a
739"KRN",8989.51,391,20,3,0)
740message.
741"KRN",8989.51,391,20,4,0)
742
743"KRN",8989.51,391,20,5,0)
744
745"KRN",8989.51,391,20,6,0)
746Client attribute: [General]AllowAttachmentsOpen=
747"KRN",8989.51,391,30,0)
748^8989.513I^2^2
749"KRN",8989.51,391,30,1,0)
7501^200
751"KRN",8989.51,391,30,2,0)
7529^9.4
753"KRN",8989.51,407,-1)
7540^18
755"KRN",8989.51,407,0)
756CWMA DISABLE GUIMAIL TIMEOUT^GUIMAIL DISABLE TIMEOUT^0^^Disable Timeout feature
757"KRN",8989.51,407,1)
758S^1:True;0:False^Enter 'True' to disable the timeout feature for GuiMail
759"KRN",8989.51,407,20,0)
760^8989.512^4^4^3050512^^
761"KRN",8989.51,407,20,1,0)
762This parameter disables GuiMail2.2 timeout feature, if this is set to
763"KRN",8989.51,407,20,2,0)
764True the 'CWMA GUIMAIL TIMEOUT VALUE'is ignored.
765"KRN",8989.51,407,20,3,0)
766
767"KRN",8989.51,407,20,4,0)
768Client attribute: [General]GuiMailDisableTimeout
769"KRN",8989.51,407,30,0)
770^8989.513I^1^1
771"KRN",8989.51,407,30,1,0)
77210^9.4
773"KRN",8989.51,408,-1)
7740^17
775"KRN",8989.51,408,0)
776CWMA GUIMAIL TIMEOUT VALUE^GUIMail Timeout value^0^^Timeout Value
777"KRN",8989.51,408,1)
778N
779"KRN",8989.51,408,3)
780K:X<1 X
781"KRN",8989.51,408,6)
782N^600^Enter a value greater than 0
783"KRN",8989.51,408,20,0)
784^^7^7^3050512^
785"KRN",8989.51,408,20,1,0)
786This parameter allows a site timeout value for GuiMail 2.2
787"KRN",8989.51,408,20,2,0)
788if not set the users 'Timed Read' value is used,
789"KRN",8989.51,408,20,3,0)
790if users timed read value can not be obtained then it default to 300
791"KRN",8989.51,408,20,4,0)
792sec. If the timeout is disabled this value is ignored
793"KRN",8989.51,408,20,5,0)
794
795"KRN",8989.51,408,20,6,0)
796
797"KRN",8989.51,408,20,7,0)
798Client attribute: [General]GuiMailTimeoutValue
799"KRN",8989.51,408,30,0)
800^8989.513I^1^1
801"KRN",8989.51,408,30,1,0)
8029^9.4
803"KRN",8989.52,1,-1)
8040^1
805"KRN",8989.52,1,0)
806CWMA PACKAGE PARAMETERS^GUI Mail Package Parameters^9.4
807"KRN",8989.52,1,10,0)
808^8989.521IA^17^17
809"KRN",8989.52,1,10,1,0)
8101^CWMA STARTUP NEW MAIL
811"KRN",8989.52,1,10,2,0)
8122^CWMA STARTUP OPEN MAIL BOX
813"KRN",8989.52,1,10,3,0)
8143^CWMA STARTUP MAIL BOX NAME
815"KRN",8989.52,1,10,4,0)
8164^CWMA GENERAL CMA STYLE
817"KRN",8989.52,1,10,5,0)
8185^CWMA GENERAL MPD TAB
819"KRN",8989.52,1,10,6,0)
8206^CWMA GENERAL NMP FREQ
821"KRN",8989.52,1,10,7,0)
8227^CWMA GENERAL MD COUNT
823"KRN",8989.52,1,10,8,0)
8248^CWMA GENERAL PRINTMODE
825"KRN",8989.52,1,10,9,0)
8269^CWMA GENERAL VISTA PRT
827"KRN",8989.52,1,10,10,0)
82810^CWMA GENERAL MD COL
829"KRN",8989.52,1,10,11,0)
83020^CWMA SOUND MESSAGE OPEN
831"KRN",8989.52,1,10,12,0)
83221^CWMA SOUND MESSAGE CLOSE
833"KRN",8989.52,1,10,13,0)
83422^CWMA SOUND PRIORITY MAIL
835"KRN",8989.52,1,10,14,0)
83623^CWMA SOUND NEW MAIL
837"KRN",8989.52,1,10,15,0)
83815^CWMA SOUND ENABLED
839"KRN",8989.52,1,10,16,0)
84029^CWMA ALLOW ATTACHMENTS
841"KRN",8989.52,1,10,17,0)
84230^CWMA ALLOW ATTACHMENTS OPEN
843"KRN",8989.52,97,-1)
8440^2
845"KRN",8989.52,97,0)
846CWMA USER PARAMETERS^GUI Mail Package Parameters^200
847"KRN",8989.52,97,10,0)
848^8989.521IA^16^16
849"KRN",8989.52,97,10,1,0)
8501^CWMA STARTUP NEW MAIL
851"KRN",8989.52,97,10,2,0)
8522^CWMA STARTUP OPEN MAIL BOX
853"KRN",8989.52,97,10,3,0)
8543^CWMA STARTUP MAIL BOX NAME
855"KRN",8989.52,97,10,4,0)
8564^CWMA GENERAL CMA STYLE
857"KRN",8989.52,97,10,5,0)
8585^CWMA GENERAL MPD TAB
859"KRN",8989.52,97,10,6,0)
8606^CWMA GENERAL NMP FREQ
861"KRN",8989.52,97,10,7,0)
8627^CWMA GENERAL MD COUNT
863"KRN",8989.52,97,10,8,0)
8648^CWMA GENERAL PRINTMODE
865"KRN",8989.52,97,10,9,0)
8669^CWMA GENERAL VISTA PRT
867"KRN",8989.52,97,10,10,0)
86810^CWMA GENERAL MD COL
869"KRN",8989.52,97,10,11,0)
87020^CWMA SOUND MESSAGE OPEN
871"KRN",8989.52,97,10,12,0)
87221^CWMA SOUND MESSAGE CLOSE
873"KRN",8989.52,97,10,13,0)
87422^CWMA SOUND PRIORITY MAIL
875"KRN",8989.52,97,10,14,0)
87623^CWMA SOUND NEW MAIL
877"KRN",8989.52,97,10,15,0)
87815^CWMA SOUND ENABLED
879"KRN",8989.52,97,10,16,0)
88060^CWMA ALLOW ATTACHMENTS
881"KRN",8994,424,-1)
8820^1
883"KRN",8994,424,0)
884CW MAIL API^ENTRY^CWMAIL^4^P^^^1
885"KRN",8994,424,1,0)
886^8994.01^2^2^2990805^^^^
887"KRN",8994,424,1,1,0)
888The RPC Call is used by the Clinical Workstation GUI Vista Mail
889"KRN",8994,424,1,2,0)
890 application.
891"KRN",8994,424,2,0)
892^8994.02A^2^2
893"KRN",8994,424,2,1,0)
894PARAMETER^1^512
895"KRN",8994,424,2,2,0)
896TEXT ARRAY^2
897"KRN",8994,424,2,"B","PARAMETER",1)
898
899"KRN",8994,424,2,"B","TEXT ARRAY",2)
900
901"MBREQ")
9020
903"ORD",16,8994)
9048994;16;1;;;;;;;RPCDEL^XPDIA1
905"ORD",16,8994,0)
906REMOTE PROCEDURE
907"ORD",18,19)
90819;18;;;OPT^XPDTA;OPTF1^XPDIA;OPTE1^XPDIA;OPTF2^XPDIA;;OPTDEL^XPDIA
909"ORD",18,19,0)
910OPTION
911"ORD",20,8989.51)
9128989.51;20;;;PAR1E1^XPDTA2;PAR1F1^XPDIA3;PAR1E1^XPDIA3;PAR1F2^XPDIA3;;PAR1DEL^XPDIA3(%)
913"ORD",20,8989.51,0)
914PARAMETER DEFINITION
915"ORD",21,8989.52)
9168989.52;21;1;;PAR2E1^XPDTA2;PAR2F1^XPDIA3;PAR2E1^XPDIA3;PAR2F2^XPDIA3;;PAR2DEL^XPDIA3(%)
917"ORD",21,8989.52,0)
918PARAMETER TEMPLATE
919"PKG",515,-1)
9201^1
921"PKG",515,0)
922CW GUIMail^CWMA^CW GUIMail
923"PKG",515,20,0)
924^9.402P^^
925"PKG",515,22,0)
926^9.49I^1^1
927"PKG",515,22,1,0)
9282.3
929"PKG",515,22,1,"PAH",1,0)
9300^3050722
931"PRE")
932CWMAINI
933"QUES","XPF1",0)
934Y
935"QUES","XPF1","??")
936^D REP^XPDH
937"QUES","XPF1","A")
938Shall I write over your |FLAG| File
939"QUES","XPF1","B")
940YES
941"QUES","XPF1","M")
942D XPF1^XPDIQ
943"QUES","XPF2",0)
944Y
945"QUES","XPF2","??")
946^D DTA^XPDH
947"QUES","XPF2","A")
948Want my data |FLAG| yours
949"QUES","XPF2","B")
950YES
951"QUES","XPF2","M")
952D XPF2^XPDIQ
953"QUES","XPI1",0)
954YO
955"QUES","XPI1","??")
956^D INHIBIT^XPDH
957"QUES","XPI1","A")
958Want KIDS to INHIBIT LOGONs during the install
959"QUES","XPI1","B")
960YES
961"QUES","XPI1","M")
962D XPI1^XPDIQ
963"QUES","XPM1",0)
964PO^VA(200,:EM
965"QUES","XPM1","??")
966^D MG^XPDH
967"QUES","XPM1","A")
968Enter the Coordinator for Mail Group '|FLAG|'
969"QUES","XPM1","B")
970
971"QUES","XPM1","M")
972D XPM1^XPDIQ
973"QUES","XPO1",0)
974Y
975"QUES","XPO1","??")
976^D MENU^XPDH
977"QUES","XPO1","A")
978Want KIDS to Rebuild Menu Trees Upon Completion of Install
979"QUES","XPO1","B")
980YES
981"QUES","XPO1","M")
982D XPO1^XPDIQ
983"QUES","XPZ1",0)
984Y
985"QUES","XPZ1","??")
986^D OPT^XPDH
987"QUES","XPZ1","A")
988Want to DISABLE Scheduled Options, Menu Options, and Protocols
989"QUES","XPZ1","B")
990YES
991"QUES","XPZ1","M")
992D XPZ1^XPDIQ
993"QUES","XPZ2",0)
994Y
995"QUES","XPZ2","??")
996^D RTN^XPDH
997"QUES","XPZ2","A")
998Want to MOVE routines to other CPUs
999"QUES","XPZ2","B")
1000NO
1001"QUES","XPZ2","M")
1002D XPZ2^XPDIQ
1003"RTN")
100416
1005"RTN","CWMACPPI")
10060^1^B4934611
1007"RTN","CWMACPPI",1,0)
1008CWMACPPI ;RVAMC/PLS - Convert Personal Preferences to Parameters Utility;21-Jun-2005 06:34;CLC
1009"RTN","CWMACPPI",2,0)
1010 ;;2.3;CWMAIL;;Jul 19, 2005
1011"RTN","CWMACPPI",3,0)
1012 ;Call EN to convert Personal Preferences from File 890
1013"RTN","CWMACPPI",4,0)
1014 ;to the Kernel Toolkit Parameter File.
1015"RTN","CWMACPPI",5,0)
1016EN ;entry point
1017"RTN","CWMACPPI",6,0)
1018 N CWLP,CWCNT,DTOUT,DUOUT,DIR,X,Y
1019"RTN","CWMACPPI",7,0)
1020 ;check for existing CWMAIL1 global containing preferences
1021"RTN","CWMACPPI",8,0)
1022 I '$D(^CWMAIL1) D BMES^XPDUTL("CWMAIL1 Global doesn't exist! Conversion of preferences not needed.") Q
1023"RTN","CWMACPPI",9,0)
1024 S (CWCNT,CWLP)=0 F S CWLP=$O(^CWMAIL1(CWLP)) Q:CWLP<1 D
1025"RTN","CWMACPPI",10,0)
1026 . I $D(^CWMAIL1(CWLP,1,1,0)) S CWCNT=CWCNT+1
1027"RTN","CWMACPPI",11,0)
1028 D BMES^XPDUTL("There are "_CWCNT_" user(s) to convert")
1029"RTN","CWMACPPI",12,0)
1030 D UPDATE^XPDID(0) ;init progress bar
1031"RTN","CWMACPPI",13,0)
1032 D MES^XPDUTL("Beginning conversion of preferences...")
1033"RTN","CWMACPPI",14,0)
1034 D LOOP
1035"RTN","CWMACPPI",15,0)
1036 Q
1037"RTN","CWMACPPI",16,0)
1038LOOP ;loop thru users
1039"RTN","CWMACPPI",17,0)
1040 N CWUSR,CWLP,CWTXT,CWVAL,CWPREF,CWCNTC,XPDIDTOT
1041"RTN","CWMACPPI",18,0)
1042 S CWUSR=0
1043"RTN","CWMACPPI",19,0)
1044 S XPDIDTOT=CWCNT ;set total number
1045"RTN","CWMACPPI",20,0)
1046 F S CWUSR=$O(^CWMAIL1(CWUSR)) Q:CWUSR<1 D
1047"RTN","CWMACPPI",21,0)
1048 . S CWCNTC=+$G(CWCNTC)+1
1049"RTN","CWMACPPI",22,0)
1050 . I CWCNTC#10=0 D UPDATE^XPDID(CWCNTC)
1051"RTN","CWMACPPI",23,0)
1052 . S CWPREF=$O(^CWMAIL1(CWUSR,1,"B","PREFERENCES",0)) ;get node
1053"RTN","CWMACPPI",24,0)
1054 . Q:'CWPREF ;no preferences stored
1055"RTN","CWMACPPI",25,0)
1056 . S CWLP=0 F S CWLP=$O(^CWMAIL1(CWUSR,1,CWPREF,1,CWLP)) Q:CWLP<1 D
1057"RTN","CWMACPPI",26,0)
1058 . . S CWTXT=^CWMAIL1(CWUSR,1,CWPREF,1,CWLP,0) ;get node text
1059"RTN","CWMACPPI",27,0)
1060 . . I CWTXT'?1"[".E1"]" D
1061"RTN","CWMACPPI",28,0)
1062 . . . S CWPRM=$$GETPRM^CWMAILE($P(CWTXT,"=")) ;get parameter
1063"RTN","CWMACPPI",29,0)
1064 . . . I $L(CWPRM) D
1065"RTN","CWMACPPI",30,0)
1066 . . . . S CWVAL=$$STRIP^XLFSTR($P(CWTXT,"=",2)," ") ;get value
1067"RTN","CWMACPPI",31,0)
1068 . . . . I CWPRM="1|CWMA GENERAL MD COL" D
1069"RTN","CWMACPPI",32,0)
1070 . . . . . S CWVAL=CWVAL_$S($E(CWVAL,$L(CWVAL))=";":"6,38",1:";6,38") ;add data for new column
1071"RTN","CWMACPPI",33,0)
1072 . . . . S CWERR=$$SETPARM^CWMAILD(CWUSR,CWPRM,CWVAL) ;set value into parameter
1073"RTN","CWMACPPI",34,0)
1074 D BMES^XPDUTL("Preference conversion is finished.")
1075"RTN","CWMACPPI",35,0)
1076 Q
1077"RTN","CWMAIL")
10780^2^B19315599
1079"RTN","CWMAIL",1,0)
1080CWMAIL ;INDPLS/PLS- DELPHI VISTA MAIL SERVER ;22-Jul-2005 06:59;CLC
1081"RTN","CWMAIL",2,0)
1082 ;;2.3;CWMAIL;;Jul 19, 2005
1083"RTN","CWMAIL",3,0)
1084 Q ;ROUTINE CAN'T BE CALLED DIRECTLY
1085"RTN","CWMAIL",4,0)
1086ENTRY(CWDATA,CWINPUT,CWTEXT) ;CALL WITH CWINPUT=CALL;DUZ;MSG;BASKET;NEW BASKET;NEWMAIL, TEXT=TEXT ARRAY
1087"RTN","CWMAIL",5,0)
1088 N CWCALL,X,DUZ,CWMHDR,CWMST,U,CWSVER
1089"RTN","CWMAIL",6,0)
1090 ;REMOVED XMDUZ FROM BEING NEW STATEMENT
1091"RTN","CWMAIL",7,0)
1092 I $$NEWERR^%ZTER N $ET S $ET=""
1093"RTN","CWMAIL",8,0)
1094 S U="^"
1095"RTN","CWMAIL",9,0)
1096 S $ZT="ERR^CWMAIL"
1097"RTN","CWMAIL",10,0)
1098 K CWDATA
1099"RTN","CWMAIL",11,0)
1100 S CWDATA(1)="0^^AN ERROR HAS OCCURRED"
1101"RTN","CWMAIL",12,0)
1102 S CWCALL="%"_$$UP^XLFSTR($P(CWINPUT,";")) ;HOLDS TAG
1103"RTN","CWMAIL",13,0)
1104 S DUZ=$P(CWINPUT,";",2)
1105"RTN","CWMAIL",14,0)
1106 D DUZ^XUP(DUZ) ;SETUP DUZ ARRAY
1107"RTN","CWMAIL",15,0)
1108 D INIT^XMVVITAE ;UPDATE MAILMAN STATUS
1109"RTN","CWMAIL",16,0)
1110 S CWINPUT=$P(CWINPUT,";",3,999)
1111"RTN","CWMAIL",17,0)
1112 D PURGNAM
1113"RTN","CWMAIL",18,0)
1114 I CWCALL?1"%"1.7A,$T(@CWCALL)'="" D @(CWCALL_"(.CWDATA,CWINPUT,.CWTEXT)")
1115"RTN","CWMAIL",19,0)
1116 Q
1117"RTN","CWMAIL",20,0)
1118ERR D @^%ZOSF("ERRTN")
1119"RTN","CWMAIL",21,0)
1120 D RETGNAM
1121"RTN","CWMAIL",22,0)
1122 Q ;
1123"RTN","CWMAIL",23,0)
1124%READ(CWDATA,CWINPUT,CWTEXT) ;
1125"RTN","CWMAIL",24,0)
1126 D %READ^CWMAILA(.CWDATA,CWINPUT)
1127"RTN","CWMAIL",25,0)
1128 Q
1129"RTN","CWMAIL",26,0)
1130%LIST(CWDATA,CWINPUT,CWTEXT) ;
1131"RTN","CWMAIL",27,0)
1132 ;CWINPUT = MAIL TYPE OR MAILBOX NUMBER;
1133"RTN","CWMAIL",28,0)
1134 D %LIST^CWMAILA(.CWDATA,CWINPUT),RETGNAM
1135"RTN","CWMAIL",29,0)
1136 Q
1137"RTN","CWMAIL",30,0)
1138%DELETE(CWDATA,CWINPUT,CWTEXT) ;
1139"RTN","CWMAIL",31,0)
1140 D %DELETE^CWMAILA(.CWDATA,CWINPUT),RETGNAM
1141"RTN","CWMAIL",32,0)
1142 Q
1143"RTN","CWMAIL",33,0)
1144%SAVE(CWDATA,CWINPUT,CWTEXT) ;
1145"RTN","CWMAIL",34,0)
1146 D %SAVE^CWMAILA(.CWDATA,CWINPUT),RETGNAM
1147"RTN","CWMAIL",35,0)
1148 Q
1149"RTN","CWMAIL",36,0)
1150%MAKNEW(CWDATA,CWINPUT,CWTEXT) ;
1151"RTN","CWMAIL",37,0)
1152 D %MAKNEW^CWMAILA(.CWDATA,CWINPUT),RETGNAM
1153"RTN","CWMAIL",38,0)
1154 Q
1155"RTN","CWMAIL",39,0)
1156%NEWBSK(CWDATA,CWINPUT,CWTEXT) ;CREATE A NEW MAIL BASKET
1157"RTN","CWMAIL",40,0)
1158 D %NEWBSK^CWMAILA(.CWDATA,CWINPUT),RETGNAM
1159"RTN","CWMAIL",41,0)
1160 Q
1161"RTN","CWMAIL",42,0)
1162%RESEQ(CWDATA,CWINPUT,CWTEXT) ;RESEQUENCE A VISTA MAIL BASKET
1163"RTN","CWMAIL",43,0)
1164 D %RESEQ^CWMAILA(.CWDATA,CWINPUT),RETGNAM
1165"RTN","CWMAIL",44,0)
1166 Q
1167"RTN","CWMAIL",45,0)
1168%REPLY(CWDATA,CWINPUT,CWTEXT) ;
1169"RTN","CWMAIL",46,0)
1170 D %REPLY^CWMAILB(.CWDATA,CWINPUT,.CWTEXT),RETGNAM
1171"RTN","CWMAIL",47,0)
1172 Q
1173"RTN","CWMAIL",48,0)
1174%FORWARD(CWDATA,CWINPUT,CWTEXT) ;
1175"RTN","CWMAIL",49,0)
1176 ;M ^TMP("CWMAIL","FORWARD",$H)=CWTEXT
1177"RTN","CWMAIL",50,0)
1178 ;S ^TMP("CWMAIL","CWINPUT",$J)=CWINPUT
1179"RTN","CWMAIL",51,0)
1180 D %FORWARD^CWMAILB(.CWDATA,CWINPUT,.CWTEXT),RETGNAM
1181"RTN","CWMAIL",52,0)
1182 Q
1183"RTN","CWMAIL",53,0)
1184%ANSWER(CWDATA,CWINPUT,CWTEXT) ;
1185"RTN","CWMAIL",54,0)
1186 D %ANSWER^CWMAILB(.CWDATA,CWINPUT,.CWTEXT),RETGNAM
1187"RTN","CWMAIL",55,0)
1188 Q
1189"RTN","CWMAIL",56,0)
1190%TERMIN(CWDATA,CWINPUT,CWTEXT) ;TERMINATE A MESSAGE THREAD
1191"RTN","CWMAIL",57,0)
1192 D %TERMIN^CWMAILB(.CWDATA,CWINPUT),RETGNAM
1193"RTN","CWMAIL",58,0)
1194 Q
1195"RTN","CWMAIL",59,0)
1196%CREATE(CWDATA,CWINPUT,CWTEXT) ;CREATE A NEW MESSAGE
1197"RTN","CWMAIL",60,0)
1198 D %CREATE^CWMAIL2(.CWDATA,CWINPUT,.CWTEXT),RETGNAM
1199"RTN","CWMAIL",61,0)
1200 Q
1201"RTN","CWMAIL",62,0)
1202%LATER(CWDATA,CWINPUT,CWTEXT) ;LATER A MESSAGE
1203"RTN","CWMAIL",63,0)
1204 D %LATER^CWMAILC(.CWDATA,CWINPUT),RETGNAM
1205"RTN","CWMAIL",64,0)
1206 Q
1207"RTN","CWMAIL",65,0)
1208 ;
1209"RTN","CWMAIL",66,0)
1210%MBOX(CWDATA,CWINPUT,CWTEXT) ;RETRIEVE MAILBOXES
1211"RTN","CWMAIL",67,0)
1212 D %MBOX^CWMAILC(.CWDATA,CWINPUT),RETGNAM
1213"RTN","CWMAIL",68,0)
1214 Q
1215"RTN","CWMAIL",69,0)
1216%PMBOX(CWDATA,CWINPUT,CWTEXT) ;PURGE ENTIRE MAIL BOX
1217"RTN","CWMAIL",70,0)
1218 D %PMBOX^CWMAILC(.CWDATA,CWINPUT),RETGNAM
1219"RTN","CWMAIL",71,0)
1220 Q
1221"RTN","CWMAIL",72,0)
1222%RNMBOX(CWDATA,CWINPUT,CWTEXT) ;RENAME EXISTING MAILBOX
1223"RTN","CWMAIL",73,0)
1224 D %RNMBOX^CWMAILC(.CWDATA,CWINPUT),RETGNAM
1225"RTN","CWMAIL",74,0)
1226 Q
1227"RTN","CWMAIL",75,0)
1228%MSGRCP(CWDATA,CWINPUT,CWTEXT) ; RETURNS A LIST OF MESSAGE RECIPIENTS
1229"RTN","CWMAIL",76,0)
1230 D %MSGRCP^CWMAILC(.CWDATA,CWINPUT) ;,RETGNAM
1231"RTN","CWMAIL",77,0)
1232 Q
1233"RTN","CWMAIL",78,0)
1234%NETINFO(CWDATA,CWINPUT,CWTEXT) ; RETURNS NETWORK TRANSMISSION INFO
1235"RTN","CWMAIL",79,0)
1236 D %NETINFO^CWMAILC(.CWDATA,CWINPUT) ;,RETGNAM
1237"RTN","CWMAIL",80,0)
1238 Q
1239"RTN","CWMAIL",81,0)
1240%ADRSTO(CWDATA,CWINPUT,CWTEXT) ;RETURNS ARRAY OF ADDRESSED TO
1241"RTN","CWMAIL",82,0)
1242 D %ADRSTO^CWMAILC(.CWDATA,CWINPUT) ;,RETGNAM
1243"RTN","CWMAIL",83,0)
1244 Q
1245"RTN","CWMAIL",84,0)
1246%GRPINF(CWDATA,CWINPUT,CWTEXT) ;MAIL GROUP INFO
1247"RTN","CWMAIL",85,0)
1248 D %GRPINF^CWMAILC(.CWDATA,CWINPUT),RETGNAM
1249"RTN","CWMAIL",86,0)
1250 Q
1251"RTN","CWMAIL",87,0)
1252%USRINF(CWDATA,CWINPUT,CWTEXT) ; MAIL USER INFO
1253"RTN","CWMAIL",88,0)
1254 ;CWINPUT = MAIL USER IEN
1255"RTN","CWMAIL",89,0)
1256 D %USRINF^CWMAILC(.CWDATA,CWINPUT),RETGNAM
1257"RTN","CWMAIL",90,0)
1258 Q
1259"RTN","CWMAIL",91,0)
1260%PERPREF(CWDATA,CWINPUT,CWTEXT) ;RETRIEVE PERSONAL PREFERENCES
1261"RTN","CWMAIL",92,0)
1262 ;CWINPUT = MAIL USER IEN;SAVE NAME
1263"RTN","CWMAIL",93,0)
1264 D %PERPREF^CWMAILD(.CWDATA,CWINPUT),RETGNAM
1265"RTN","CWMAIL",94,0)
1266 Q
1267"RTN","CWMAIL",95,0)
1268%USRLOG(CWDATA,CWINPUT,CWTEXT) ;LOG USER INTO GUI MAIL LOG
1269"RTN","CWMAIL",96,0)
1270 ;CWINPUT = DUZ
1271"RTN","CWMAIL",97,0)
1272 D %USRLOG^CWMAILD(.CWDATA,DUZ),RETGNAM
1273"RTN","CWMAIL",98,0)
1274 Q
1275"RTN","CWMAIL",99,0)
1276%BMSGD(CWDATA,CWINPUT,CWTEXT) ;BUILD MSG INFO INTO GLOBAL
1277"RTN","CWMAIL",100,0)
1278 ;
1279"RTN","CWMAIL",101,0)
1280 D %BMSGD^CWMAILD(.CWDATA,CWINPUT,.CWTEXT),RETGNAM
1281"RTN","CWMAIL",102,0)
1282 Q
1283"RTN","CWMAIL",103,0)
1284%SUPREF(CWDATA,CWINPUT,CWTEXT) ;SET USER PREFERENCES
1285"RTN","CWMAIL",104,0)
1286 ;
1287"RTN","CWMAIL",105,0)
1288 D %SUPREF^CWMAILD(.CWDATA,CWINPUT,.CWTEXT),RETGNAM
1289"RTN","CWMAIL",106,0)
1290 Q
1291"RTN","CWMAIL",107,0)
1292RETGNAM ;RETURNS A $NAME FOR GLOBAL AFTER MERGING
1293"RTN","CWMAIL",108,0)
1294 M ^TMP($J,"CWMAIL")=CWDATA
1295"RTN","CWMAIL",109,0)
1296 K CWDATA S CWDATA=$NA(^TMP($J,"CWMAIL"))
1297"RTN","CWMAIL",110,0)
1298 Q
1299"RTN","CWMAIL",111,0)
1300PURGNAM ;PURGE GLOBAL ARRAY USED FOR DATA RETURN
1301"RTN","CWMAIL",112,0)
1302 K ^TMP($J,"CWMAIL")
1303"RTN","CWMAIL",113,0)
1304 Q
1305"RTN","CWMAIL",114,0)
1306%CHKMAIL(CWDATA,CWINPUT,CWTEXT) ;CHECK FOR NEW MAIL
1307"RTN","CWMAIL",115,0)
1308 ;CWINPUT = DUZ
1309"RTN","CWMAIL",116,0)
1310 D %CHKMAIL^CWMAILD(.CWDATA,DUZ),RETGNAM
1311"RTN","CWMAIL",117,0)
1312 Q
1313"RTN","CWMAIL",118,0)
1314%PRINT(CWDATA,CWINPUT,CWTEXT) ;PRINT A MESSAGE
1315"RTN","CWMAIL",119,0)
1316 ;
1317"RTN","CWMAIL",120,0)
1318 D %PRTMSG^CWMAILD(.CWDATA,CWINPUT),RETGNAM
1319"RTN","CWMAIL",121,0)
1320 Q
1321"RTN","CWMAIL",122,0)
1322%GETSVER(CWDATA,CWINPUT,CWTEXT) ;GET SERVER VERSION
1323"RTN","CWMAIL",123,0)
1324 ;
1325"RTN","CWMAIL",124,0)
1326 D %GETSVER^CWMAILD(.CWDATA,CWINPUT),RETGNAM
1327"RTN","CWMAIL",125,0)
1328 Q
1329"RTN","CWMAIL",126,0)
1330%MSGSRC(CWDATA,CWINPUT,CWTEXT) ;SEARCH AND RETURN SELECTED MESSAGES
1331"RTN","CWMAIL",127,0)
1332 ;
1333"RTN","CWMAIL",128,0)
1334 D %MSGSRC^CWMAILA(.CWDATA,CWINPUT,.CWTEXT),RETGNAM
1335"RTN","CWMAIL",129,0)
1336 Q
1337"RTN","CWMAIL",130,0)
1338%MSGISRC(CWDATA,CWINPUT,CWTEXT) ;SEARCH FOR A SPECIFIC MESSAGE NUMBER
1339"RTN","CWMAIL",131,0)
1340 ;
1341"RTN","CWMAIL",132,0)
1342 D %MSGISRC^CWMAILF(.CWDATA,CWINPUT),RETGNAM
1343"RTN","CWMAIL",133,0)
1344 Q
1345"RTN","CWMAIL",134,0)
1346 ;
1347"RTN","CWMAIL",135,0)
1348%OPENATT(CWDATA,CWINPUT,CWTEXT) ;ALLOW OPENING OF ATTACHMENTS
1349"RTN","CWMAIL",136,0)
1350 ;
1351"RTN","CWMAIL",137,0)
1352 D %OPENATT^CWMAILD(.CWDATA,CWINPUT),RETGNAM
1353"RTN","CWMAIL",138,0)
1354 Q
1355"RTN","CWMAIL",139,0)
1356%TIMEROF(CWDATA,CWINPUT,CWTEXT) ;TIMER OFF
1357"RTN","CWMAIL",140,0)
1358 ;
1359"RTN","CWMAIL",141,0)
1360 D %TIMEROF^CWMAILD(.CWDATA,CWINPUT),RETGNAM
1361"RTN","CWMAIL",142,0)
1362 Q
1363"RTN","CWMAIL",143,0)
1364%TIMERVA(CWDATA,CWINPUT,CWTEXT) ;SET TIME-OUT VALUE
1365"RTN","CWMAIL",144,0)
1366 ;
1367"RTN","CWMAIL",145,0)
1368 D TIMERVAL^CWMAILD(.CWDATA,CWINPUT),RETGNAM
1369"RTN","CWMAIL",146,0)
1370 Q
1371"RTN","CWMAIL0")
13720^3^B20950040
1373"RTN","CWMAIL0",1,0)
1374CWMAIL0 ;INDPLS/PLS- DELPHI MAIL SERVER, CONT'D ;21-Jun-2005 06:34;CLC
1375"RTN","CWMAIL0",2,0)
1376 ;;2.3;CWMAIL;;Jul 19, 2005
1377"RTN","CWMAIL0",3,0)
1378 Q ;ROUTINE CAN'T BE CALLED DIRECTLY
1379"RTN","CWMAIL0",4,0)
1380 ;
1381"RTN","CWMAIL0",5,0)
1382PROCMS(CWDATA,CWMSGN,CWNMFLG) ;PROCESS MAIL MESSAGE THREAD
1383"RTN","CWMAIL0",6,0)
1384 N CWRE,CWCNT,CWRSP,CWNWMSG,CWDATT,CWLCNT,CWLP,CWCONFRM,CW
1385"RTN","CWMAIL0",7,0)
1386 N CWIM,CWIU,CWINSTR,CWFLAGS,CWIR
1387"RTN","CWMAIL0",8,0)
1388 D INMSG^XMXUTIL2(XMDUZ,$$BSKT^XMXUTIL2(XMDUZ,CWMSGN),CWMSGN,,"F",.CWIM,.CWINSTR,.CWIU) ;SET-UP MESSAGE INFO
1389"RTN","CWMAIL0",9,0)
1390 S CWDATA=$NA(^TMP($J,"CWMAIL"))
1391"RTN","CWMAIL0",10,0)
1392 S CWNWMSG=$G(CWIM("FROM"))["@" ;NETWORK MESSAGE
1393"RTN","CWMAIL0",11,0)
1394 S CWCNT=2,CWLCNT=0
1395"RTN","CWMAIL0",12,0)
1396 S @CWDATA@(CWCNT)="Mail Message From: "_$G(CWIM("FROM NAME"))_" "_"Dated: "_$$FMDTE^CWMAIL4(CWIM("DATE FM"),"5MZ")
1397"RTN","CWMAIL0",13,0)
1398 S CWCNT=$$INCNT(CWCNT),@CWDATA@(CWCNT)="Subject: "_$G(CWIM("SUBJ"))
1399"RTN","CWMAIL0",14,0)
1400 S CWCNT=$$INCNT(CWCNT),@CWDATA@(CWCNT)=""
1401"RTN","CWMAIL0",15,0)
1402 ;I 'CWNMFLG!(CWNMFLG&($G(CWIM("RESP"))<1))!(CWNMFLG&(+$G(CWIM("RESP"))=+$G(CWIM("RESPS"))))
1403"RTN","CWMAIL0",16,0)
1404 I 'CWNMFLG!(CWNMFLG&(+$G(CWIU("RESP"))<1))!(CWNMFLG&(+$G(CWIU("RESP"))=+$G(CWIM("RESPS")))) D READM(.CWDATA,CWMSGN,.CWCNT)
1405"RTN","CWMAIL0",17,0)
1406 S CWCONFRM=""
1407"RTN","CWMAIL0",18,0)
1408 D LASTACC(CWMSGN,$$BSKT^XMXUTIL2(XMDUZ,CWMSGN),0,.CWCONFRM) ;UPDATE LAST ACCESS DATE/TIME
1409"RTN","CWMAIL0",19,0)
1410 ;PROCESS RESPONSES
1411"RTN","CWMAIL0",20,0)
1412 I $G(CWIM("RESPS"))>0 D
1413"RTN","CWMAIL0",21,0)
1414 . S CWLP=$S(+$G(CWIU("RESP"))=+$G(CWIM("RESPS")):1,+$G(CWIU("RESP"))<1:1,CWNMFLG:+$G(CWIU("RESP")),1:1) F CWLP=CWLP:1:CWIM("RESPS") D
1415"RTN","CWMAIL0",22,0)
1416 . . D INRESP^XMXUTIL2(CWMSGN,CWLP,"F",.CWIR) ;gather details on specific response
1417"RTN","CWMAIL0",23,0)
1418 . . S CWCNT=$$INCNT(CWCNT),@CWDATA@(CWCNT)=""
1419"RTN","CWMAIL0",24,0)
1420 . . S CWCNT=$$INCNT(CWCNT),@CWDATA@(CWCNT)="Response: "_CWLP_") "_$G(CWIR("FROM NAME"))_" "_$$FMDTE^CWMAIL4($G(CWIR("DATE FM")),"5MZ")
1421"RTN","CWMAIL0",25,0)
1422 . . S CWCNT=$$INCNT(CWCNT),@CWDATA@(CWCNT)=""
1423"RTN","CWMAIL0",26,0)
1424 . . D READM(.CWDATA,CWIR("XMZ"),.CWCNT)
1425"RTN","CWMAIL0",27,0)
1426 . . D LASTACC(CWMSGN,$$BSKT^XMXUTIL2(XMDUZ,CWMSGN),CWLP) ;UPDATES LAST RESPONSE READ
1427"RTN","CWMAIL0",28,0)
1428 D NONEW^XMXUTIL(XMDUZ,$$BSKT^XMXUTIL2(XMDUZ,CWMSGN),CWMSGN,1) ;UNNEW MESSAGE
1429"RTN","CWMAIL0",29,0)
1430 I +CWCONFRM D ;SEND CONFIRMATION IF NEEDED
1431"RTN","CWMAIL0",30,0)
1432 . S CWCNT=$$INCNT(CWCNT),@CWDATA@(CWCNT)=""
1433"RTN","CWMAIL0",31,0)
1434 . S CWCNT=$$INCNT(CWCNT),@CWDATA@(CWCNT)=">>Confirmation Message Sent to Sender.<<"
1435"RTN","CWMAIL0",32,0)
1436 I $O(@CWDATA@(1)) D
1437"RTN","CWMAIL0",33,0)
1438 . S @CWDATA@(1)="1^^DATA HAS BEEN FOUND"
1439"RTN","CWMAIL0",34,0)
1440 E S @CWDATA@(1)="1^^Message text could not be found."
1441"RTN","CWMAIL0",35,0)
1442 S $P(@CWDATA@(1),U,2)=CWCNT-2
1443"RTN","CWMAIL0",36,0)
1444 Q
1445"RTN","CWMAIL0",37,0)
1446 ;
1447"RTN","CWMAIL0",38,0)
1448LASTACC(XMZ,CWBIEN,CWLRSP,XMCONFRM) ;UPDATE LAST RESPONSE READ DATE
1449"RTN","CWMAIL0",39,0)
1450 ;INPUT XMZ = MESSAGE NUMBER
1451"RTN","CWMAIL0",40,0)
1452 ; CWBIEN = BASKET IEN
1453"RTN","CWMAIL0",41,0)
1454 ; CWLRSP = LAST RESPONSE READ
1455"RTN","CWMAIL0",42,0)
1456 ;
1457"RTN","CWMAIL0",43,0)
1458 N CWIM,CWIU,CWINSTR,CWXINSTR,CWFLAGS
1459"RTN","CWMAIL0",44,0)
1460 D INMSG1^XMXUTIL2(XMDUZ,XMZ,,.CWFLAGS,.CWIM,.CWIU) ;SET-UP FOR CALL
1461"RTN","CWMAIL0",45,0)
1462 D INMSG2^XMXUTIL2(XMDUZ,XMZ,,.CWIM,.CWXINSTR,.CWIU)
1463"RTN","CWMAIL0",46,0)
1464 S CWINSTR("FLAGS")=$S($G(CWXINSTR("FLAGS"))["R":"R",1:"")
1465"RTN","CWMAIL0",47,0)
1466 D LASTACC^XMXUTIL(XMDUZ,CWBIEN,XMZ,CWLRSP,.CWIM,.CWINSTR,.CWIU,.XMCONFRM)
1467"RTN","CWMAIL0",48,0)
1468 Q
1469"RTN","CWMAIL0",49,0)
1470 ;
1471"RTN","CWMAIL0",50,0)
1472READM(CWDATA,CWINPUT,CWCNT) ;OUTPUT MAIL MESSAGE IN ARRAY
1473"RTN","CWMAIL0",51,0)
1474 S $ZT="READMER^CWMAIL"
1475"RTN","CWMAIL0",52,0)
1476 N CWRDATA,XMZ,CWMTYPE,CWTFLG,XMER,XMPOS
1477"RTN","CWMAIL0",53,0)
1478 S XMZ=+$G(CWINPUT),CWTFLG=0,CWMTYPE=$G(CWINSTR("TYPE"))
1479"RTN","CWMAIL0",54,0)
1480 F S CWRDATA=$$READ^XMGAPI1() Q:XMER<0!(CWTFLG) S CWCNT=CWCNT+1,@CWDATA@(CWCNT)=CWRDATA I CWMTYPE="K"!(CWMTYPE="X") S:CWRDATA["$END TXT" CWTFLG=1
1481"RTN","CWMAIL0",55,0)
1482 ;
1483"RTN","CWMAIL0",56,0)
1484READMER Q
1485"RTN","CWMAIL0",57,0)
1486 ;
1487"RTN","CWMAIL0",58,0)
1488INCNT(CWCNT) ;INCREMENT COUNTER
1489"RTN","CWMAIL0",59,0)
1490 Q CWCNT+1
1491"RTN","CWMAIL0",60,0)
1492 ;
1493"RTN","CWMAIL0",61,0)
1494ADDMP(CWXMZ,CWVAL) ;set data into DAT based on subscripted CWVAL
1495"RTN","CWMAIL0",62,0)
1496 ;INPUT - CWXMZ = message ien
1497"RTN","CWMAIL0",63,0)
1498 ; CWVAL = input array (i.e. CWVAL(1)=first piece...CWVAL(n)=last piece
1499"RTN","CWMAIL0",64,0)
1500 ;OUTPUT - data string holding delimited ('^') data
1501"RTN","CWMAIL0",65,0)
1502 S CWXMZ=$G(CWXMZ,0)
1503"RTN","CWMAIL0",66,0)
1504 I +$G(CWXMZ) D
1505"RTN","CWMAIL0",67,0)
1506 . N X,CWCONFRM,CWTYPE,CWCLOSED,CWINFO,CWCONFID,CWSDRDUZ,CWBRDCAS,CWSDRNAM,CWTRECPT,CWTREPLY
1507"RTN","CWMAIL0",68,0)
1508 . N CWIM,CWIU,CWINSTR,CWPMSG,CWLP,CWDAT
1509"RTN","CWMAIL0",69,0)
1510 . D INMSG^XMXUTIL2(XMDUZ,$$BSKT^XMXUTIL2(XMDUZ,CWXMZ),CWXMZ,,"F",.CWIM,.CWINSTR,.CWIU) ;SET-UP MESSAGE INFO
1511"RTN","CWMAIL0",70,0)
1512 . S CWVAL(6)=$$UP^XLFSTR($G(CWINSTR("TYPE"))) ;message type(s)
1513"RTN","CWMAIL0",71,0)
1514 . S:$G(CWINSTR("FLAGS"))["P" CWVAL(6)="P"_CWVAL(6) ;add priority flag as a type
1515"RTN","CWMAIL0",72,0)
1516 . S CWVAL(7)=$G(CWINSTR("FLAGS"))["R" ;confirmation flag
1517"RTN","CWMAIL0",73,0)
1518 . S CWVAL(8)=$G(CWINSTR("FLAGS"))["X" ;closed flag
1519"RTN","CWMAIL0",74,0)
1520 . S CWVAL(9)=$G(CWINSTR("FLAGS"))["I" ;informational flag
1521"RTN","CWMAIL0",75,0)
1522 . S CWVAL(10)=$G(CWINSTR("FLAGS"))["C" ;confidential flag
1523"RTN","CWMAIL0",76,0)
1524 . S CWVAL(11)=$G(CWIM("FROM DUZ")) ;sender ien
1525"RTN","CWMAIL0",77,0)
1526 . S CWVAL(13)=$G(CWIM("FROM NAME")) ;sender full name
1527"RTN","CWMAIL0",78,0)
1528 . S CWVAL(12)=$$BCAST^XMXSEC(CWXMZ) ;broadcast flag
1529"RTN","CWMAIL0",79,0)
1530 . S CWVAL(14)=$G(CWIM("RECIPS")) ;total # of recipients
1531"RTN","CWMAIL0",80,0)
1532 . S CWVAL(15)=$G(CWIM("RESPS")) ;total # of replies
1533"RTN","CWMAIL0",81,0)
1534 . S CWVAL(16)=$G(CWINSTR("FLAGS"))["P" ;priority flag
1535"RTN","CWMAIL0",82,0)
1536 . S CWVAL(17)=+$G(CWIU("RESP")) ;# of last response read
1537"RTN","CWMAIL0",83,0)
1538 . S CWVAL(20)=+$$ANSWER^XMXSEC(XMDUZ,CWXMZ,$$ZNODE^XMXUTIL2(CWXMZ)) ;can user answer message
1539"RTN","CWMAIL0",84,0)
1540 ;set data into node
1541"RTN","CWMAIL0",85,0)
1542 S CWLP="" F S CWLP=$O(CWVAL(CWLP)) Q:CWLP<1 D
1543"RTN","CWMAIL0",86,0)
1544 . S $P(CWDAT,U,CWLP)=CWVAL(CWLP)
1545"RTN","CWMAIL0",87,0)
1546 Q CWDAT
1547"RTN","CWMAIL1")
15480^4^B14471507
1549"RTN","CWMAIL1",1,0)
1550CWMAIL1 ;INDPLS/PLS- GUI MAIL UTILITIES ;21-Jun-2005 06:34;CLC
1551"RTN","CWMAIL1",2,0)
1552 ;;2.3;CWMAIL;;Jul 19, 2005
1553"RTN","CWMAIL1",3,0)
1554 ;MODIFIED FOR XM*7.1*50
1555"RTN","CWMAIL1",4,0)
1556LATER(CWXMZ,CWXMA) ;LATER A MESSAGE
1557"RTN","CWMAIL1",5,0)
1558 S $ZT="LATERE^CWMAIL1"
1559"RTN","CWMAIL1",6,0)
1560 N CWFLG,X,Y,%H,NOW,CWINSTR,CWXMMSG,CWTMDF
1561"RTN","CWMAIL1",7,0)
1562 S CWFLG=0
1563"RTN","CWMAIL1",8,0)
1564 G:'CWXMZ!('$G(CWXMA)) LATERE
1565"RTN","CWMAIL1",9,0)
1566 ;S CWTMDF=$G(^XMB("TIMEDIFF")) ;get time diff for site
1567"RTN","CWMAIL1",10,0)
1568 ;I CWXMA[":" D
1569"RTN","CWMAIL1",11,0)
1570 ;. I '$L(CWTMDF) S CWXMA=$P(CWXMA," ") ;use date and not date/time
1571"RTN","CWMAIL1",12,0)
1572 ;. E S CWXMA=CWXMA_" "_CWTMDF ;append time zone diff
1573"RTN","CWMAIL1",13,0)
1574 S CWXMA=$$CONVERT^XMXUTIL1(CWXMA,$S(CWXMA[":":1,1:0)) ;convert to fileman date/time
1575"RTN","CWMAIL1",14,0)
1576CK S NOW=$$NOW^XLFDT S CWXMA=$S(CWXMA>NOW:CWXMA,1:(NOW+.0010)) ;DEFAULT TO 10 MINUTES IN FUTURE
1577"RTN","CWMAIL1",15,0)
1578 I CWXMA>0 D
1579"RTN","CWMAIL1",16,0)
1580 . S CWINSTR("LATER")=CWXMA
1581"RTN","CWMAIL1",17,0)
1582 . D LATERMSG^XMXAPI(XMDUZ,"",CWXMZ,.CWINSTR,.CWXMMSG)
1583"RTN","CWMAIL1",18,0)
1584 . I CWXMMSG S CWFLG=1
1585"RTN","CWMAIL1",19,0)
1586LATERE ;
1587"RTN","CWMAIL1",20,0)
1588 Q CWFLG
1589"RTN","CWMAIL1",21,0)
1590 ;
1591"RTN","CWMAIL1",22,0)
1592 ;
1593"RTN","CWMAIL1",23,0)
1594NETINFO(CWDAT,XMZ) ;RETRIEVE NETWORK TRANMISSION INFORMATION
1595"RTN","CWMAIL1",24,0)
1596 ;
1597"RTN","CWMAIL1",25,0)
1598 K CWDAT
1599"RTN","CWMAIL1",26,0)
1600 S CWDAT=$NA(^TMP($J,"CWMAIL"))
1601"RTN","CWMAIL1",27,0)
1602 S $ZT="NETINFOE^CWMAIL1"
1603"RTN","CWMAIL1",28,0)
1604 N CWLP,CWCNT
1605"RTN","CWMAIL1",29,0)
1606 S CWLP=0,CWCNT=2
1607"RTN","CWMAIL1",30,0)
1608 D QN^XMXUTIL3(XMZ,,,) ;DEFAULTS TO ALL LINES;START AT 0 AND SET TO ^TMP("XMLIST",$J)
1609"RTN","CWMAIL1",31,0)
1610 F S CWLP=$O(^TMP("XMLIST",$J,CWLP)) Q:CWLP<1 D
1611"RTN","CWMAIL1",32,0)
1612 . S @CWDAT@(CWCNT)=^TMP("XMLIST",$J,CWLP),CWCNT=CWCNT+1
1613"RTN","CWMAIL1",33,0)
1614NETINFOE ;
1615"RTN","CWMAIL1",34,0)
1616 I $O(@CWDAT@(1)) D
1617"RTN","CWMAIL1",35,0)
1618 . S @CWDAT@(1)="1^^DATA HAS BEEN FOUND"
1619"RTN","CWMAIL1",36,0)
1620 E S @CWDAT@(1)="1^^There was no Transmission Information available."
1621"RTN","CWMAIL1",37,0)
1622 S $P(@CWDAT@(1),U,2)=CWCNT-2
1623"RTN","CWMAIL1",38,0)
1624 Q
1625"RTN","CWMAIL1",39,0)
1626 ;
1627"RTN","CWMAIL1",40,0)
1628ADRSTO(CWDAT,XMZ) ;RETRIEVE ADDRESSED TO INFO
1629"RTN","CWMAIL1",41,0)
1630 ;
1631"RTN","CWMAIL1",42,0)
1632 K CWDAT
1633"RTN","CWMAIL1",43,0)
1634 S CWDAT=$NA(^TMP($J,"CWMAIL"))
1635"RTN","CWMAIL1",44,0)
1636 N CWLP,CWCNT
1637"RTN","CWMAIL1",45,0)
1638 S CWLP=0,CWCNT=2
1639"RTN","CWMAIL1",46,0)
1640 D Q^XMXUTIL3(XMZ) ;DEFAULTS TO ALL LINES;START AT 0 AND SET TO ^TMP("XMLIST",$J)
1641"RTN","CWMAIL1",47,0)
1642 F S CWLP=$O(^TMP("XMLIST",$J,CWLP)) Q:CWLP<1 D
1643"RTN","CWMAIL1",48,0)
1644 . S @CWDAT@(CWCNT)=$G(^TMP("XMLIST",$J,CWLP,"TO NAME")),CWCNT=CWCNT+1
1645"RTN","CWMAIL1",49,0)
1646 I $O(@CWDAT@(1)) D
1647"RTN","CWMAIL1",50,0)
1648 . S @CWDAT@(1)="1^^DATA HAS BEEN FOUND"
1649"RTN","CWMAIL1",51,0)
1650 E S @CWDAT@(1)="1^^There was no ADDRESSED TO recipients found."
1651"RTN","CWMAIL1",52,0)
1652 S $P(@CWDAT@(1),U,2)=CWCNT-2
1653"RTN","CWMAIL1",53,0)
1654ADRSTOE Q
1655"RTN","CWMAIL1",54,0)
1656 ;
1657"RTN","CWMAIL1",55,0)
1658RECPT(CWDAT,XMZ) ;BUILD RECIPIENT LIST
1659"RTN","CWMAIL1",56,0)
1660 K CWDAT
1661"RTN","CWMAIL1",57,0)
1662 S CWDAT=$NA(^TMP($J,"CWMAIL"))
1663"RTN","CWMAIL1",58,0)
1664 N CWLP,CWCNT,CWIM,CWIU,CWINSTR
1665"RTN","CWMAIL1",59,0)
1666 N CWRECPT,CWLR,CWLRSPRD,CWFR,CWFWD,CWTERM,CWRMI,CWNTT,CWSNT
1667"RTN","CWMAIL1",60,0)
1668 S CWLP=0,CWCNT=2
1669"RTN","CWMAIL1",61,0)
1670 D QD^XMXUTIL3(XMZ) ;
1671"RTN","CWMAIL1",62,0)
1672 F S CWLP=$O(^TMP("XMLIST",$J,CWLP)) Q:CWLP<1 D
1673"RTN","CWMAIL1",63,0)
1674 . S CWRECPT=$G(^TMP("XMLIST",$J,CWLP,"TO NAME")) ;recipient name
1675"RTN","CWMAIL1",64,0)
1676 . S CWLR=$$FMDTE^CWMAIL4($G(^("LREAD")),"5MZ") ;last read date/time
1677"RTN","CWMAIL1",65,0)
1678 . S CWLRSPRD=$G(^("RESP")) ;last response read
1679"RTN","CWMAIL1",66,0)
1680 . S CWFR=$$FMDTE^CWMAIL4($G(^("FREAD")),"5MZ") ;first read date/time
1681"RTN","CWMAIL1",67,0)
1682 . S CWFWD=$S($D(^("FWD ON")):"*",1:"") ;forwarded message
1683"RTN","CWMAIL1",68,0)
1684 . S CWTERM=$S($D(^("TERM")):"*",1:"") ;terminated message
1685"RTN","CWMAIL1",69,0)
1686 . S CWRMI=$G(^("ID")) ;remote message id
1687"RTN","CWMAIL1",70,0)
1688 . S CWNTT=$G(^("SECS")) ;network trans time
1689"RTN","CWMAIL1",71,0)
1690 . S CWSNT=$$FMDTE^CWMAIL4($G(^("XDATE")),"5MZ") ;network sent date/time
1691"RTN","CWMAIL1",72,0)
1692 . S @CWDAT@(CWCNT)=U_CWRECPT_U_CWLR_U_CWFR_U_CWFWD_U_CWTERM_U_CWRMI_U_CWNTT_U_CWSNT_U_CWLRSPRD_U
1693"RTN","CWMAIL1",73,0)
1694 . S CWCNT=CWCNT+1
1695"RTN","CWMAIL1",74,0)
1696 D INMSG1^XMXUTIL2(XMDUZ,XMZ,,"F",.CWIM,.CWIU) ;retrieve total recipients
1697"RTN","CWMAIL1",75,0)
1698 D INMSG2^XMXUTIL2(XMDUZ,XMZ,,.CWIM,.CWINSTR,.CWIU) ;and responses.
1699"RTN","CWMAIL1",76,0)
1700RECPTE I $O(@CWDAT@(1)) D
1701"RTN","CWMAIL1",77,0)
1702 . S @CWDAT@(1)="1^^DATA HAS BEEN FOUND"_U_+$G(CWIM("RECIPS"))_U_+$G(CWIM("RESPS"))
1703"RTN","CWMAIL1",78,0)
1704 E S @CWDAT@(1)="1^^There were no recipients found."_U_0_U_0
1705"RTN","CWMAIL1",79,0)
1706 S $P(@CWDAT@(1),U,2)=CWCNT-2
1707"RTN","CWMAIL1",80,0)
1708 Q
1709"RTN","CWMAIL2")
17100^5^B22772090
1711"RTN","CWMAIL2",1,0)
1712CWMAIL2 ;INDPLS/PLS- DELPHI VISTA MAIL SERVER, CONT'D ;21-Jun-2005 06:34;CLC
1713"RTN","CWMAIL2",2,0)
1714 ;;2.3;CWMAIL;;Jul 19, 2005
1715"RTN","CWMAIL2",3,0)
1716 ;Input - CWINPUT : 1 - Subject
1717"RTN","CWMAIL2",4,0)
1718 ; : 2 - Flags
1719"RTN","CWMAIL2",5,0)
1720 ; : 3 - Attachment Flag
1721"RTN","CWMAIL2",6,0)
1722 ;
1723"RTN","CWMAIL2",7,0)
1724 Q ;ROUTINE CAN'T BE CALLED DIRECTLY
1725"RTN","CWMAIL2",8,0)
1726%CREATE(CWDATA,CWINPUT,CWTEXT) ;CREATE A NEW MESSAGE
1727"RTN","CWMAIL2",9,0)
1728 N CWSDATA,CWSEDATA,CWLP,CWTXTARY,DA,DIE,DR,Y,XMTEXT,CWMSGABS,CWTMP,CWFILE,CWIEN,CWNAM
1729"RTN","CWMAIL2",10,0)
1730 N XMBODY,XMSUBJ,XMY,XMINSTR,XMZ
1731"RTN","CWMAIL2",11,0)
1732 S CWDATA(1)="0^99- UNDEFINED ERROR"
1733"RTN","CWMAIL2",12,0)
1734 ;INPUT CONTAINS SUBJECT;PARAMETER ARRAY (IE. TESTING API;PCSI
1735"RTN","CWMAIL2",13,0)
1736 ;P=PRIORITY, X=CLOSED, C=CONFIDENTIAL, I=INFORMATIONAL, R=CONFIRMATION
1737"RTN","CWMAIL2",14,0)
1738 ;TEXT ARRAY CONTAINS RECIPIENT LIST AND MESSAGE TEXT LOADED FROM BMSGD call
1739"RTN","CWMAIL2",15,0)
1740 ;BUILD XMY ARRAY
1741"RTN","CWMAIL2",16,0)
1742 S CWTEXT=$NA(^TMP($J,"CWMAILLOAD"))
1743"RTN","CWMAIL2",17,0)
1744 S CWSDATA=$G(@CWTEXT@(-9902),"[START XMY]"),CWSEDATA=$G(@CWTEXT@(-9903),"[END XMY]")
1745"RTN","CWMAIL2",18,0)
1746 S CWLP=-1 D GFNDLP^CWMAILB(.CWLP,CWSDATA)
1747"RTN","CWMAIL2",19,0)
1748 I $G(CWLP)="" S CWDATA(1)="0^1- NO RECIPIENTS LISTED" G CRTEND
1749"RTN","CWMAIL2",20,0)
1750 ;RETRIEVE RECIPIENTS
1751"RTN","CWMAIL2",21,0)
1752 F S CWLP=$O(@CWTEXT@(CWLP)) Q:CWLP="" Q:@CWTEXT@(CWLP)=CWSEDATA D
1753"RTN","CWMAIL2",22,0)
1754 .S CWTMP=$G(@CWTEXT@(CWLP)) Q:CWTMP=""
1755"RTN","CWMAIL2",23,0)
1756 .S CWFILE=+$P(CWTMP,"^"),CWIEN=+$P(CWTMP,"^",2),CWNAM=$P(CWTMP,"^",3)
1757"RTN","CWMAIL2",24,0)
1758 .I CWFILE=200 S XMY(CWIEN)=""
1759"RTN","CWMAIL2",25,0)
1760 .E I CWFILE=3.8 S XMY("G."_CWNAM)=""
1761"RTN","CWMAIL2",26,0)
1762 .E S XMY(CWNAM)=""
1763"RTN","CWMAIL2",27,0)
1764 I '$D(XMY) S CWDATA(1)="0^1- NO RECIPIENTS LISTED" G CRTEND ; NO RECIPIENTS LISTED
1765"RTN","CWMAIL2",28,0)
1766 ;BUILD MESSAGE @TEXT@ ARRAY
1767"RTN","CWMAIL2",29,0)
1768 S CWSDATA=$G(@CWTEXT@(-9900),"[START DATA]"),CWSEDATA=$G(@CWTEXT@(-9901),"[END DATA]")
1769"RTN","CWMAIL2",30,0)
1770 S CWLP=-1 D GFNDLP^CWMAILB(.CWLP,CWSDATA)
1771"RTN","CWMAIL2",31,0)
1772 I $G(CWLP)="" S CWDATA(1)="0^3- NO MESSAGE TEXT" G CRTEND
1773"RTN","CWMAIL2",32,0)
1774 F S CWLP=$O(@CWTEXT@(CWLP)) Q:CWLP="" Q:@CWTEXT@(CWLP)=CWSEDATA D
1775"RTN","CWMAIL2",33,0)
1776 .S ^TMP($J,"CWMAILOUT",CWLP)=$G(@CWTEXT@(CWLP))
1777"RTN","CWMAIL2",34,0)
1778 I '$D(^TMP($J,"CWMAILOUT")) S CWDATA(1)="0^3- NO MESSAGE TEXT" G CRTEND ;NO MESSAGE @CWTEXT@
1779"RTN","CWMAIL2",35,0)
1780 ;I '$L($P($G(CWINPUT),";")) S CWDATA(1)="0^4- MESSAGE SUBJECT NOT GIVEN" G CRTEND
1781"RTN","CWMAIL2",36,0)
1782 ;E
1783"RTN","CWMAIL2",37,0)
1784 S XMSUBJ=$P($G(CWINPUT),";")
1785"RTN","CWMAIL2",38,0)
1786 ;subject can be null or between 3-65 characters. Length is handled on client side.
1787"RTN","CWMAIL2",39,0)
1788 I $L(XMSUBJ),$L(XMSUBJ)<3 S XMSUBJ=XMSUBJ_$E("__",1,3-$L(XMSUBJ))
1789"RTN","CWMAIL2",40,0)
1790 ;PROCESS MESSAGE
1791"RTN","CWMAIL2",41,0)
1792 S XMBODY=$NA(^TMP($J,"CWMAILOUT"))
1793"RTN","CWMAIL2",42,0)
1794 D CNVTAB(XMBODY) ;convert tabs to spaces
1795"RTN","CWMAIL2",43,0)
1796 S XMINSTR("FLAGS")=$P(CWINPUT,";",2) ;GET MESSAGE ATTRIBUTES
1797"RTN","CWMAIL2",44,0)
1798 I '$P($G(CWINPUT),";",3) D
1799"RTN","CWMAIL2",45,0)
1800 . D SENDMSG^XMXAPI(XMDUZ,XMSUBJ,XMBODY,.XMY,.XMINSTR,.XMZ)
1801"RTN","CWMAIL2",46,0)
1802 E D
1803"RTN","CWMAIL2",47,0)
1804 . D CRE8XMZ^XMXAPI(XMSUBJ,.XMZ) ;create message stub
1805"RTN","CWMAIL2",48,0)
1806 . I +$G(XMZ) D
1807"RTN","CWMAIL2",49,0)
1808 . . D TEXT^XMXEDIT(XMZ,XMBODY) ;stuff message text
1809"RTN","CWMAIL2",50,0)
1810 . . D BLDNETI(XMZ,XMSUBJ) ;stuff network header information
1811"RTN","CWMAIL2",51,0)
1812 . . D ADDRNSND^XMXAPI(XMDUZ,XMZ,.XMY,.XMINSTR) ;send message
1813"RTN","CWMAIL2",52,0)
1814 I +$G(XMZ)<1 S CWDATA(1)="0^5- MESSAGE CREATION FAILED" G CRTEND
1815"RTN","CWMAIL2",53,0)
1816 I +$G(XMZ)>0 S CWDATA(1)="1^^"_$G(XMZ)
1817"RTN","CWMAIL2",54,0)
1818CRTEND K ^TMP($J,"CWMAILOUT"),^TMP($J,"CWMAILLOAD")
1819"RTN","CWMAIL2",55,0)
1820 Q
1821"RTN","CWMAIL2",56,0)
1822CNVTAB(CWSRC) ;Convert TABS to spaces (use 6 char per tab)
1823"RTN","CWMAIL2",57,0)
1824 ;PASS $NA() VARIABLE NAME CONTAINING DATA
1825"RTN","CWMAIL2",58,0)
1826 N CWLP,CWLINE
1827"RTN","CWMAIL2",59,0)
1828 S CWLP=+$G(CWLP)
1829"RTN","CWMAIL2",60,0)
1830 F S CWLP=$O(@CWSRC@(CWLP)) Q:CWLP="" D
1831"RTN","CWMAIL2",61,0)
1832 . S CWLINE=@CWSRC@(CWLP)
1833"RTN","CWMAIL2",62,0)
1834 . S @CWSRC@(CWLP)=$$LNCNV(CWLINE)
1835"RTN","CWMAIL2",63,0)
1836 Q
1837"RTN","CWMAIL2",64,0)
1838LNCNV(CWL) ; data line tab extracter
1839"RTN","CWMAIL2",65,0)
1840 N CWTMP,CWTMPL,CWP,CWPR,CWPADL
1841"RTN","CWMAIL2",66,0)
1842 Q:'$F(CWL,$C(9)) CWL ; no tabs to convert
1843"RTN","CWMAIL2",67,0)
1844 S CWTMP=CWL,CWTMPL=""
1845"RTN","CWMAIL2",68,0)
1846 F D Q:CWTMP'[$C(9)
1847"RTN","CWMAIL2",69,0)
1848 . S CWP=$P(CWTMP,$C(9)) ; left portion of string
1849"RTN","CWMAIL2",70,0)
1850 . S CWPR=$P(CWTMP,$C(9),2,999) ; remainder of string
1851"RTN","CWMAIL2",71,0)
1852 . S CWPADL=6-($L(CWP)#6) ; pad length
1853"RTN","CWMAIL2",72,0)
1854 . I ($L(CWP)+CWPADL+$L(CWPR))>250 Q ;line is to long
1855"RTN","CWMAIL2",73,0)
1856 . S CWTMP=CWP_$$REPEAT^XLFSTR(" ",CWPADL)_CWPR
1857"RTN","CWMAIL2",74,0)
1858 Q CWTMP
1859"RTN","CWMAIL2",75,0)
1860 ;
1861"RTN","CWMAIL2",76,0)
1862BLDNETI(CWXMZ,CWSUBJ) ;build network header information
1863"RTN","CWMAIL2",77,0)
1864 ;From: <user@domain>
1865"RTN","CWMAIL2",78,0)
1866 ;Subject:
1867"RTN","CWMAIL2",79,0)
1868 ;Date: 9 Jul 1999 09:02:27 -0500 (EST)
1869"RTN","CWMAIL2",80,0)
1870 ;X-Mailer: VISTA Mail
1871"RTN","CWMAIL2",81,0)
1872 N CWCNT
1873"RTN","CWMAIL2",82,0)
1874 I $L($$ZNODE^XMXUTIL2(CWXMZ)) D
1875"RTN","CWMAIL2",83,0)
1876 . S ^XMB(3.9,CWXMZ,2,.001,0)="From: "_$$LOW^XLFSTR($G(XMV("NETNAME")))
1877"RTN","CWMAIL2",84,0)
1878 . ;S ^XMB(3.9,CWXMZ,2,.002,0)="To:" ;refet to bldnetit api
1879"RTN","CWMAIL2",85,0)
1880 . S ^XMB(3.9,CWXMZ,2,.003,0)="Subject: "_$G(CWSUBJ)
1881"RTN","CWMAIL2",86,0)
1882 . S ^XMB(3.9,CWXMZ,2,.004,0)="Date:"_$$INDT^XMXUTIL1($$NOW^XLFDT)
1883"RTN","CWMAIL2",87,0)
1884 . S ^XMB(3.9,CWXMZ,2,.005,0)="X-Mailer: Vista GuiMail" ;VISTA MAIL"
1885"RTN","CWMAIL2",88,0)
1886 . S ^XMB(3.9,CWXMZ,2,.006,0)="Encoding: x-uuencode" ;X-UUENCODE"
1887"RTN","CWMAIL2",89,0)
1888 . S CWCNT=.007
1889"RTN","CWMAIL2",90,0)
1890 . D BLDNETIT(CWXMZ,.XMY,.CWCNT)
1891"RTN","CWMAIL2",91,0)
1892 Q
1893"RTN","CWMAIL2",92,0)
1894BLDNETIT(CWXMZ,CWXMY,CWCTN) ; build To: section
1895"RTN","CWMAIL2",93,0)
1896 ;Input - CWXMZ - Message Number
1897"RTN","CWMAIL2",94,0)
1898 ; CWXMY - Array of Recipients
1899"RTN","CWMAIL2",95,0)
1900 ; CWCTN - Counter
1901"RTN","CWMAIL2",96,0)
1902 ;
1903"RTN","CWMAIL2",97,0)
1904 N LP,CWINSTR,CWFULL,CWSET,CWTO,CWTO1,CWRHDR
1905"RTN","CWMAIL2",98,0)
1906 K ^TMP($J,"CWNETH")
1907"RTN","CWMAIL2",99,0)
1908 S CWINSTR("ADDR FLAGS")="RX"
1909"RTN","CWMAIL2",100,0)
1910 S CWFLG=0,CWTO="To: ",CWTO1=" ",CWRHDR=""
1911"RTN","CWMAIL2",101,0)
1912 S LP="" F S LP=$O(CWXMY(LP)) Q:LP="" D
1913"RTN","CWMAIL2",102,0)
1914 . D TOWHOM^XMXAPI(XMDUZ,,"S",LP,.CWINSTR,.CWFULL)
1915"RTN","CWMAIL2",103,0)
1916 . I $L($G(CWFULL)) D
1917"RTN","CWMAIL2",104,0)
1918 . . I CWFULL'["@" D
1919"RTN","CWMAIL2",105,0)
1920 . . .S CWFULL=$TR(CWFULL,", .","._+") ; set internet naming convention
1921"RTN","CWMAIL2",106,0)
1922 . . .S CWFULL=CWFULL_"@"_$G(^XMB("NETNAME"))
1923"RTN","CWMAIL2",107,0)
1924 . . I ($L(CWRHDR)+$L(CWFULL)+1)<140 D ;line not full
1925"RTN","CWMAIL2",108,0)
1926 . . . S CWRHDR=CWRHDR_$S($L(CWRHDR)>0&($E(CWRHDR,$L(CWRHDR))'=","):",",1:"")_CWFULL
1927"RTN","CWMAIL2",109,0)
1928 . . E D
1929"RTN","CWMAIL2",110,0)
1930 . . . S ^TMP($J,"CWNETH",CWCTN)=CWRHDR
1931"RTN","CWMAIL2",111,0)
1932 . . . S CWCTN=CWCTN+.001
1933"RTN","CWMAIL2",112,0)
1934 . . . S CWRHDR=CWFULL
1935"RTN","CWMAIL2",113,0)
1936 I $L(CWRHDR) S ^TMP($J,"CWNETH",CWCTN)=CWRHDR ;set remaining data
1937"RTN","CWMAIL2",114,0)
1938 S LP=0 F S LP=$O(^TMP($J,"CWNETH",LP)) Q:LP<.001 D
1939"RTN","CWMAIL2",115,0)
1940 . S ^XMB(3.9,CWXMZ,2,LP,0)=$S(CWFLG:" "_^TMP($J,"CWNETH",LP),1:"To: "_^TMP($J,"CWNETH",LP))
1941"RTN","CWMAIL2",116,0)
1942 K ^TMP($J,"CWNETH") ;KILL TEMP GLOBAL BUFFER
1943"RTN","CWMAIL2",117,0)
1944 Q
1945"RTN","CWMAIL3")
19460^6^B5057438
1947"RTN","CWMAIL3",1,0)
1948CWMAIL3 ;INDPLS/PLS- DELPHI VISTA MAIL SERVER, CON'T ;21-Jun-2005 06:34;CLC
1949"RTN","CWMAIL3",2,0)
1950 ;;2.3;CWMAIL;;Jul 19, 2005
1951"RTN","CWMAIL3",3,0)
1952 ;Modified to fix Cache problem related to double close
1953"RTN","CWMAIL3",4,0)
1954 Q ;ROUTINE CAN'T BE CALLED DIRECTLY
1955"RTN","CWMAIL3",5,0)
1956 ;
1957"RTN","CWMAIL3",6,0)
1958GRPINFO(CWDAT,CWPARAM) ;Mail Group Information
1959"RTN","CWMAIL3",7,0)
1960 ;CWPARAM = Mail Group IEN
1961"RTN","CWMAIL3",8,0)
1962 N CWFILE,IO,IOP,POP,DIC,DA,X,Y,CWFLG,CWNXT,IOSL,CWDEFDIR,CWDATFIL
1963"RTN","CWMAIL3",9,0)
1964 S CWFILE="CWMAILGRP"_$J_".TXT"
1965"RTN","CWMAIL3",10,0)
1966 S CWDEFDIR=$$PWD^%ZISH
1967"RTN","CWMAIL3",11,0)
1968 D OPEN^%ZISH("CWDATFIL",CWDEFDIR,CWFILE,"W")
1969"RTN","CWMAIL3",12,0)
1970 G:POP GRPINFOE
1971"RTN","CWMAIL3",13,0)
1972 U IO S IOSL=99999
1973"RTN","CWMAIL3",14,0)
1974 D DISPLAY^XMHIG(+CWPARAM)
1975"RTN","CWMAIL3",15,0)
1976 D CLOSE^%ZISH("CWDATFIL")
1977"RTN","CWMAIL3",16,0)
1978 I $$FTG^%ZISH(CWDEFDIR,CWFILE,$NA(CWDAT(2)),1) D
1979"RTN","CWMAIL3",17,0)
1980 .S CWFILE(CWFILE)=""
1981"RTN","CWMAIL3",18,0)
1982 .S X=$$DEL^%ZISH(CWDEFDIR,$NA(CWFILE))
1983"RTN","CWMAIL3",19,0)
1984 .I $O(CWDAT(0))>0 D
1985"RTN","CWMAIL3",20,0)
1986 ..S CWFLG=0,CWNXT=1
1987"RTN","CWMAIL3",21,0)
1988 ..F S CWNXT=$O(CWDAT(CWNXT)) Q:CWNXT<1!(CWFLG) D
1989"RTN","CWMAIL3",22,0)
1990 ...I '$L(CWDAT(CWNXT)),'CWFLG K CWDAT(CWNXT)
1991"RTN","CWMAIL3",23,0)
1992 ...E I $A(CWDAT(CWNXT))=12 K CWDAT(CWNXT)
1993"RTN","CWMAIL3",24,0)
1994 ...E S CWDAT(CWNXT)=$$CTRL^XMXUTIL1(CWDAT(CWNXT)),CWFLG=1 ;remove control characters
1995"RTN","CWMAIL3",25,0)
1996 .S CWDAT(-9900)=$O(CWDAT(9999999),-1)+1
1997"RTN","CWMAIL3",26,0)
1998 E S CWDAT(-9900)=2
1999"RTN","CWMAIL3",27,0)
2000GRPINFOE ;D CLOSE^%ZISH("CWDATFIL")
2001"RTN","CWMAIL3",28,0)
2002 Q $O(CWDAT(1))
2003"RTN","CWMAIL3",29,0)
2004USRINFO(CWDAT,CWPARAM) ;Mail User Information
2005"RTN","CWMAIL3",30,0)
2006 ;CWPARAM = Mail User IEN
2007"RTN","CWMAIL3",31,0)
2008 N CWFILE,%ZIS,IOP,POP,IO,Y,X,CWDEFDIR,CWDATFIL,IOSL
2009"RTN","CWMAIL3",32,0)
2010 N CWFLG,CWNXT
2011"RTN","CWMAIL3",33,0)
2012 S CWFILE="CWMAILUSR"_$J_".TXT"
2013"RTN","CWMAIL3",34,0)
2014 S CWDEFDIR=$$PWD^%ZISH
2015"RTN","CWMAIL3",35,0)
2016 D OPEN^%ZISH("CWDATFIL",CWDEFDIR,CWFILE,"W")
2017"RTN","CWMAIL3",36,0)
2018 G:POP USRINFOE
2019"RTN","CWMAIL3",37,0)
2020 U IO S IOSL=99999
2021"RTN","CWMAIL3",38,0)
2022 D DISPUSER^XMHIU(+CWPARAM)
2023"RTN","CWMAIL3",39,0)
2024 D CLOSE^%ZISH("CWDATFIL")
2025"RTN","CWMAIL3",40,0)
2026FLG I $$FTG^%ZISH(CWDEFDIR,CWFILE,$NA(CWDAT(2)),1) D
2027"RTN","CWMAIL3",41,0)
2028 .S CWFILE(CWFILE)=""
2029"RTN","CWMAIL3",42,0)
2030 .S X=$$DEL^%ZISH(CWDEFDIR,$NA(CWFILE))
2031"RTN","CWMAIL3",43,0)
2032 .I $O(CWDAT(0))>0 D
2033"RTN","CWMAIL3",44,0)
2034 ..S CWFLG=0,CWNXT=1
2035"RTN","CWMAIL3",45,0)
2036 ..F S CWNXT=$O(CWDAT(CWNXT)) Q:CWNXT<1!(CWFLG) D
2037"RTN","CWMAIL3",46,0)
2038 ...I '$L(CWDAT(CWNXT)),'CWFLG K CWDAT(CWNXT)
2039"RTN","CWMAIL3",47,0)
2040 ...E I $A(CWDAT(CWNXT))=12 K CWDAT(CWNXT)
2041"RTN","CWMAIL3",48,0)
2042 ...E S CWDAT(CWNXT)=$$CTRL^XMXUTIL1(CWDAT(CWNXT)),CWFLG=1 ;remove control characters
2043"RTN","CWMAIL3",49,0)
2044 .S CWDAT(-9900)=$O(CWDAT(9999999),-1)+1
2045"RTN","CWMAIL3",50,0)
2046 E S CWDAT(-9900)=2
2047"RTN","CWMAIL3",51,0)
2048USRINFOE ;D CLOSE^%ZISH("CWDATFIL")
2049"RTN","CWMAIL3",52,0)
2050 Q $O(CWDAT(1))
2051"RTN","CWMAIL4")
20520^7^B1346202
2053"RTN","CWMAIL4",1,0)
2054CWMAIL4 ;INDPLS/PLS- DELPHI VISTA MAIL SERVER, CON'T ;21-Jun-2005 06:34;CLC
2055"RTN","CWMAIL4",2,0)
2056 ;;2.3;CWMAIL;;Jul 19, 2005
2057"RTN","CWMAIL4",3,0)
2058 Q ;ROUTINE CAN'T BE CALLED DIRECTLY
2059"RTN","CWMAIL4",4,0)
2060 ;
2061"RTN","CWMAIL4",5,0)
2062GETMSGL(DAT,CWDUZ,CWBSK,CWSRC) ;
2063"RTN","CWMAIL4",6,0)
2064 ;API NOT CURRENTLY USED
2065"RTN","CWMAIL4",7,0)
2066 ;INPUT
2067"RTN","CWMAIL4",8,0)
2068 ; DAT : RETURN ARRAY
2069"RTN","CWMAIL4",9,0)
2070 ;CWDUZ : USER
2071"RTN","CWMAIL4",10,0)
2072 ;CWBSK : BASKET IEN OR NAME
2073"RTN","CWMAIL4",11,0)
2074 ;CWSRC : LOOKUP TYPE 0(IEN); 1("C" X-REF) ; DEFAULT TO ZERO
2075"RTN","CWMAIL4",12,0)
2076 Q:'CWDUZ 0
2077"RTN","CWMAIL4",13,0)
2078 I +CWBSK'=CWBSK D
2079"RTN","CWMAIL4",14,0)
2080 . S CWBSK=+$O(^XMB(3.7,CWDUZ,2,"B",CWBSK,0))
2081"RTN","CWMAIL4",15,0)
2082 S CWSRC=+$G(CWSRC,0)
2083"RTN","CWMAIL4",16,0)
2084 N CWMSG,CWSEQ
2085"RTN","CWMAIL4",17,0)
2086 S (CWSEQ,CWMSG)=0
2087"RTN","CWMAIL4",18,0)
2088 I 'CWSRC D
2089"RTN","CWMAIL4",19,0)
2090 . F S CWMSG=$O(^XMB(3.7,CWDUZ,2,CWBSK,1,CWMSG)) Q:CWMSG<1 S DAT(CWMSG)=""
2091"RTN","CWMAIL4",20,0)
2092ELSE E D
2093"RTN","CWMAIL4",21,0)
2094 . F S CWSEQ=$O(^XMB(3.7,CWDUZ,2,CWBSK,1,"C",CWSEQ)) Q:CWSEQ<1 D
2095"RTN","CWMAIL4",22,0)
2096 . . F S CWMSG=$O(^XMB(3.7,CWDUZ,2,CWBSK,1,"C",CWSEQ,CWMSG)) Q:CWMSG<1 D
2097"RTN","CWMAIL4",23,0)
2098 . . . S DAT(CWMSG)=""
2099"RTN","CWMAIL4",24,0)
2100 Q $O(DAT(0))>0
2101"RTN","CWMAIL4",25,0)
2102 ;
2103"RTN","CWMAIL4",26,0)
2104FMDTE(CWDT,CWPRM) ;API TO RETURN A FORMATTED DATE
2105"RTN","CWMAIL4",27,0)
2106 ;replaces '@' with " " between date and time
2107"RTN","CWMAIL4",28,0)
2108 Q $TR($$FMTE^XLFDT(CWDT,CWPRM),"@"," ")
2109"RTN","CWMAILA")
21100^8^B23710063
2111"RTN","CWMAILA",1,0)
2112CWMAILA ;INDPLS/PLS- DELPHI VISTA MAIL SERVER CONT'D ;21-Jun-2005 06:34;CLC
2113"RTN","CWMAILA",2,0)
2114 ;;2.3;CWMAIL;;Jul 19, 2005
2115"RTN","CWMAILA",3,0)
2116 ;MODIFIED FOR XM*7.1*50
2117"RTN","CWMAILA",4,0)
2118 Q ;ROUTINE CAN'T BE CALLED DIRECTLY
2119"RTN","CWMAILA",5,0)
2120%READ(CWDATA,CWINPUT) ;
2121"RTN","CWMAILA",6,0)
2122 ;CWINPUT FORMAT - DELIMITER ';'
2123"RTN","CWMAILA",7,0)
2124 ; 1st - IEN of message
2125"RTN","CWMAILA",8,0)
2126 ; 4th - New message (value >0 indicates new messages only)
2127"RTN","CWMAILA",9,0)
2128 K CWDATA
2129"RTN","CWMAILA",10,0)
2130 N CWMSGN,CWNMFLG
2131"RTN","CWMAILA",11,0)
2132 S CWMSGN=$P(CWINPUT,";")
2133"RTN","CWMAILA",12,0)
2134 S CWNMFLG=+$P(CWINPUT,";",4)
2135"RTN","CWMAILA",13,0)
2136 D:CWMSGN PROCMS^CWMAIL0(.CWDATA,CWMSGN,CWNMFLG)
2137"RTN","CWMAILA",14,0)
2138 Q
2139"RTN","CWMAILA",15,0)
2140%LIST(CWDATA,CWINPUT) ;
2141"RTN","CWMAILA",16,0)
2142 ;CWINPUT - MAIL TYPE OR MAILBOX NUMBER - DELIMITER ';'
2143"RTN","CWMAILA",17,0)
2144 ; 2nd - IEN of MailBasket or non-numeric for new mail
2145"RTN","CWMAILA",18,0)
2146 ;CWARY format: piece value
2147"RTN","CWMAILA",19,0)
2148 ; 1 message basket
2149"RTN","CWMAILA",20,0)
2150 ; 2 message ien
2151"RTN","CWMAILA",21,0)
2152 ; 3 message subject
2153"RTN","CWMAILA",22,0)
2154 ; 4 message date sent
2155"RTN","CWMAILA",23,0)
2156 ; 5 not used
2157"RTN","CWMAILA",24,0)
2158 ; 6 message type
2159"RTN","CWMAILA",25,0)
2160 ; 7 confirmation flag
2161"RTN","CWMAILA",26,0)
2162 ; 8 closed flag
2163"RTN","CWMAILA",27,0)
2164 ; 9 info flag
2165"RTN","CWMAILA",28,0)
2166 ; 10 confidential flag
2167"RTN","CWMAILA",29,0)
2168 ; 11 sender ien
2169"RTN","CWMAILA",30,0)
2170 ; 12 broadcast flag
2171"RTN","CWMAILA",31,0)
2172 ; 13 sender name
2173"RTN","CWMAILA",32,0)
2174 ; 14 total # of recipients
2175"RTN","CWMAILA",33,0)
2176 ; 15 total # of replies
2177"RTN","CWMAILA",34,0)
2178 ; 16 priority flag
2179"RTN","CWMAILA",35,0)
2180 ; 17 last response read
2181"RTN","CWMAILA",36,0)
2182 ; 18 message basket sequence number
2183"RTN","CWMAILA",37,0)
2184 ; 19 new message flag
2185"RTN","CWMAILA",38,0)
2186 ; 20 answer message flag
2187"RTN","CWMAILA",39,0)
2188 ;
2189"RTN","CWMAILA",40,0)
2190 S CWDATA(1)="0^AN ERROR HAS OCCURRED"
2191"RTN","CWMAILA",41,0)
2192 N CWVAL,CWMSG,CWMSGSUB,CWMSGDT,CWDCNT,CWMAIB,CWMSGBX,CWMSGLP
2193"RTN","CWMAILA",42,0)
2194 N CWARY
2195"RTN","CWMAILA",43,0)
2196 S CWVAL=$P(CWINPUT,";",2)
2197"RTN","CWMAILA",44,0)
2198 S CWMSG=0,CWDCNT=2,CWMSGLP=0
2199"RTN","CWMAILA",45,0)
2200 S CWMAIB=CWVAL
2201"RTN","CWMAILA",46,0)
2202 ;CALL API TO RETRIEVE MESSAGES
2203"RTN","CWMAILA",47,0)
2204 I CWVAL=+CWVAL D
2205"RTN","CWMAILA",48,0)
2206 . D LISTMSGS^XMXAPIB(XMDUZ,+CWMAIB,"BSKT;SUBJ;DATE;SEQN;NEW","",3500) ; data put in ^TMP("XMLIST",$J
2207"RTN","CWMAILA",49,0)
2208 . Q:'+$P($G(^TMP("XMLIST",$J,0)),U,1) ;NO DATA FOUND
2209"RTN","CWMAILA",50,0)
2210 . D BLDLST^CWMAILF(.CWDATA,$NA(^TMP("XMLIST",$J)),.CWDCNT)
2211"RTN","CWMAILA",51,0)
2212 E D ;PROCESS NEW MESSAGE REQUEST
2213"RTN","CWMAILA",52,0)
2214 . D LISTMSGS^XMXAPIB(XMDUZ,"*","BSKT;SUBJ;DATE;NEW","N",3500) ;SEQN;NEW","N")
2215"RTN","CWMAILA",53,0)
2216 . Q:'+$P($G(^TMP("XMLIST",$J,0)),U,1) ;NO DATA FOUND
2217"RTN","CWMAILA",54,0)
2218 . D BLDLST^CWMAILF(.CWDATA,$NA(^TMP("XMLIST",$J)),.CWDCNT)
2219"RTN","CWMAILA",55,0)
2220 I $O(CWDATA(1)) S CWDATA(1)="1^^DATA HAS BEEN FOUND"
2221"RTN","CWMAILA",56,0)
2222 E S CWDATA(1)=$S(+CWVAL:"1^^No Messages Found in Specified Mail Box",1:"1^^"_"You have no NEW Messages")
2223"RTN","CWMAILA",57,0)
2224 S $P(CWDATA(1),U,2)=CWDCNT-2
2225"RTN","CWMAILA",58,0)
2226 Q
2227"RTN","CWMAILA",59,0)
2228 ;
2229"RTN","CWMAILA",60,0)
2230%DELETE(CWDATA,CWINPUT) ;
2231"RTN","CWMAILA",61,0)
2232 ;CWINPUT - DELIMITER ';'
2233"RTN","CWMAILA",62,0)
2234 ; 1st - IEN of message
2235"RTN","CWMAILA",63,0)
2236 ; 2nd - IEN of mail basket
2237"RTN","CWMAILA",64,0)
2238 N XMZ,XMDUZ,XMK,XMKZA,XMMSG
2239"RTN","CWMAILA",65,0)
2240 S XMZ=$P(CWINPUT,";")
2241"RTN","CWMAILA",66,0)
2242 S XMDUZ=DUZ
2243"RTN","CWMAILA",67,0)
2244 S XMK=$P(CWINPUT,";",2)
2245"RTN","CWMAILA",68,0)
2246 S XMKZA(XMZ)=""
2247"RTN","CWMAILA",69,0)
2248 D DELMSG^XMXAPI(XMDUZ,"",.XMKZA,.XMMSG)
2249"RTN","CWMAILA",70,0)
2250 I +$G(XMMSG) D
2251"RTN","CWMAILA",71,0)
2252 . S CWDATA(1)="1^0^Message Deleted"
2253"RTN","CWMAILA",72,0)
2254 E S CWDATA(1)="0^0^Unable to delete message"
2255"RTN","CWMAILA",73,0)
2256 Q
2257"RTN","CWMAILA",74,0)
2258%SAVE(CWDATA,CWINPUT) ;
2259"RTN","CWMAILA",75,0)
2260 ;CWINPUT - DELIMITER ';'
2261"RTN","CWMAILA",76,0)
2262 ; 1st - IEN of message
2263"RTN","CWMAILA",77,0)
2264 ; 2nd - IEN of mail basket
2265"RTN","CWMAILA",78,0)
2266 ; 3rd - IEN of new mail basket
2267"RTN","CWMAILA",79,0)
2268 N XMZ,XMK,XMKM,XMMSG,XMKZA
2269"RTN","CWMAILA",80,0)
2270 S XMZ=$P(CWINPUT,";"),XMK=$P(CWINPUT,";",2)
2271"RTN","CWMAILA",81,0)
2272 S XMKZA(XMZ)=""
2273"RTN","CWMAILA",82,0)
2274 S XMKM=$P(CWINPUT,";",3)
2275"RTN","CWMAILA",83,0)
2276 D MOVEMSG^XMXAPI(XMDUZ,"",.XMKZA,XMKM,.XMMSG)
2277"RTN","CWMAILA",84,0)
2278 S CWDATA(1)=+$G(XMMSG) ;Return Status
2279"RTN","CWMAILA",85,0)
2280 Q
2281"RTN","CWMAILA",86,0)
2282%MAKNEW(CWDATA,CWINPUT) ;
2283"RTN","CWMAILA",87,0)
2284 ;CWINPUT - DELIMITER ';'
2285"RTN","CWMAILA",88,0)
2286 ; 1st - IEN of message
2287"RTN","CWMAILA",89,0)
2288 ; 2nd - IEN of mail basket
2289"RTN","CWMAILA",90,0)
2290 N XMZ,XMK,XMKZA,XMMSG
2291"RTN","CWMAILA",91,0)
2292 S CWDATA(1)=0
2293"RTN","CWMAILA",92,0)
2294 S XMZ=$P(CWINPUT,";")
2295"RTN","CWMAILA",93,0)
2296 S XMK=+$P(CWINPUT,";",2)
2297"RTN","CWMAILA",94,0)
2298 D MAKENEW^XMXUTIL(XMDUZ,XMK,XMZ,1)
2299"RTN","CWMAILA",95,0)
2300 I XMK<.6 D ;MUST MOVE MESSAGE FROM WASTE BASKET TO IN BASKET
2301"RTN","CWMAILA",96,0)
2302 . S XMKZA(XMZ)=""
2303"RTN","CWMAILA",97,0)
2304 . D MOVEMSG^XMXAPI(XMDUZ,"",.XMKZA,1,.XMMSG)
2305"RTN","CWMAILA",98,0)
2306 S CWDATA(1)="1^1" ;FORCE TO SUCCESS
2307"RTN","CWMAILA",99,0)
2308 Q
2309"RTN","CWMAILA",100,0)
2310%NEWBSK(CWDATA,CWINPUT) ;CREATE A NEW MAIL BASKET
2311"RTN","CWMAILA",101,0)
2312 ;CWINPUT - DELIMITER ';'
2313"RTN","CWMAILA",102,0)
2314 ; 1st Piece - New basket name
2315"RTN","CWMAILA",103,0)
2316 N CWBASKET,CWBSKN,CWMSG
2317"RTN","CWMAILA",104,0)
2318 S CWBASKET=$$UP^XLFSTR($P(CWINPUT,";")) ;FORCE TO UPPER CASE
2319"RTN","CWMAILA",105,0)
2320 D CRE8BSKT^XMXAPIB(XMDUZ,CWBASKET,.CWBSKN)
2321"RTN","CWMAILA",106,0)
2322 I +$G(CWBSKN)>0 D
2323"RTN","CWMAILA",107,0)
2324 . D QBSKT^XMXAPIB(XMDUZ,+CWBSKN,.CWMSG)
2325"RTN","CWMAILA",108,0)
2326 . S CWDATA(1)="1"_U_CWBSKN_U_$P($G(CWMSG),U,2)
2327"RTN","CWMAILA",109,0)
2328 E S CWDATA(1)=0_U_"Error-unable to create basket."
2329"RTN","CWMAILA",110,0)
2330 Q
2331"RTN","CWMAILA",111,0)
2332%RESEQ(CWDATA,CWINPUT) ;RESEQUENCE A VISTA MAIL BASKET
2333"RTN","CWMAILA",112,0)
2334 ;CWINPUT - DELIMITER ';'
2335"RTN","CWMAILA",113,0)
2336 ; 2nd - IEN of mail basket
2337"RTN","CWMAILA",114,0)
2338 N CWBASKET,CWDATT
2339"RTN","CWMAILA",115,0)
2340 S CWBASKET=$P(CWINPUT,";",2)
2341"RTN","CWMAILA",116,0)
2342 G:'CWBASKET RESEQE
2343"RTN","CWMAILA",117,0)
2344 D RSEQBSKT^XMXAPIB(XMDUZ,CWBASKET,.CWDATT)
2345"RTN","CWMAILA",118,0)
2346 I $L(CWDATT) S CWDATA(1)="1^1"
2347"RTN","CWMAILA",119,0)
2348 E S CWDATA(1)="0^0^Error-unable to resequence messages."
2349"RTN","CWMAILA",120,0)
2350RESEQE Q
2351"RTN","CWMAILA",121,0)
2352 ;
2353"RTN","CWMAILA",122,0)
2354%MSGSRC(CWDATA,CWINPUT,CWTEXT) ;MESSAGE SEARCH
2355"RTN","CWMAILA",123,0)
2356 ;INPUT - CWINPUT AND CWTEXT ARRAY HOLD CRITERIA
2357"RTN","CWMAILA",124,0)
2358 ;OUTPUT - REFER TO %LIST
2359"RTN","CWMAILA",125,0)
2360 S CWDATA(1)="0^AN ERROR HAS OCCURRED"
2361"RTN","CWMAILA",126,0)
2362 N CWVAL,CWMSG,CWMSGSUB,CWMSGDT,CWDCNT,CWMAIB,CWMSGBX,CWMSGLP
2363"RTN","CWMAILA",127,0)
2364 N CWARY,CWFLAGS
2365"RTN","CWMAILA",128,0)
2366 S CWFLAGS=$P(CWINPUT,";") ;Processing Flags
2367"RTN","CWMAILA",129,0)
2368 S CWMAIB=$P(CWINPUT,";",2) ;MailBasket
2369"RTN","CWMAILA",130,0)
2370 S CWMSG=0,CWDCNT=2,CWMSGLP=0
2371"RTN","CWMAILA",131,0)
2372 S CWMAIB=$S($L(CWMAIB):CWMAIB,1:"*")
2373"RTN","CWMAILA",132,0)
2374 ;Convert External dates to FM Dates
2375"RTN","CWMAILA",133,0)
2376 I $G(CWTEXT("FDATE")) D
2377"RTN","CWMAILA",134,0)
2378 . S CWTEXT("FDATE")=$$CONVERT^XMXUTIL1(CWTEXT("FDATE"))
2379"RTN","CWMAILA",135,0)
2380 I $G(CWTEXT("TDATE")) D
2381"RTN","CWMAILA",136,0)
2382 . S CWTEXT("TDATE")=$$CONVERT^XMXUTIL1(CWTEXT("TDATE"))
2383"RTN","CWMAILA",137,0)
2384 ;CALL API TO RETRIEVE MESSAGES
2385"RTN","CWMAILA",138,0)
2386 D LISTMSGS^XMXAPIB(XMDUZ,CWMAIB,"BSKT;SUBJ;DATE;NEW",CWFLAGS,,,.CWTEXT) ; data put in ^TMP("XMLIST",$J
2387"RTN","CWMAILA",139,0)
2388 I +$P($G(^TMP("XMLIST",$J,0)),U,1) D ;
2389"RTN","CWMAILA",140,0)
2390 . D BLDLST^CWMAILF(.CWDATA,$NA(^TMP("XMLIST",$J)),.CWDCNT)
2391"RTN","CWMAILA",141,0)
2392 I $O(CWDATA(1)) S CWDATA(1)="1^^DATA HAS BEEN FOUND"
2393"RTN","CWMAILA",142,0)
2394 E S CWDATA(1)="1^^No Messages Found In Search"
2395"RTN","CWMAILA",143,0)
2396 S $P(CWDATA(1),U,2)=CWDCNT-2
2397"RTN","CWMAILA",144,0)
2398MSGSRCE Q
2399"RTN","CWMAILB")
24000^9^B22359091
2401"RTN","CWMAILB",1,0)
2402CWMAILB ;INDPLS/PLS- DELPHI VISTA MAIL SERVER CON'T ;21-Jun-2005 06:34;CLC
2403"RTN","CWMAILB",2,0)
2404 ;;2.3;CWMAIL;;Jul 19, 2005
2405"RTN","CWMAILB",3,0)
2406 ; modified 10/8/1999 to fix problem with reply text tab conversion
2407"RTN","CWMAILB",4,0)
2408%FORWARD(CWDATA,CWINPUT,CWTEXT) ;
2409"RTN","CWMAILB",5,0)
2410 ;Input: 1st Piece of CWINPUT holds IEN of Message
2411"RTN","CWMAILB",6,0)
2412 ; CWTEXT holds recipient list
2413"RTN","CWMAILB",7,0)
2414 ;
2415"RTN","CWMAILB",8,0)
2416 N XMZ,XMY,CWLP,CWSDATA,CWSEDATA,CWTMP,CWFILE,CWIEN,CWNAM,XMINSTR,CWMSG
2417"RTN","CWMAILB",9,0)
2418 N XMKZA
2419"RTN","CWMAILB",10,0)
2420 S XMZ=$P(CWINPUT,";")
2421"RTN","CWMAILB",11,0)
2422 S CWDATA(1)="0^^AN ERROR HAS OCCURRED"
2423"RTN","CWMAILB",12,0)
2424 G:'$G(XMZ) FOREND
2425"RTN","CWMAILB",13,0)
2426 S CWSDATA=$G(CWTEXT(-9902),"[START DATA]"),CWSEDATA=$G(CWTEXT(-9903),"[END DATA]")
2427"RTN","CWMAILB",14,0)
2428 S CWLP=-1 D FNDLP(.CWLP,CWSDATA)
2429"RTN","CWMAILB",15,0)
2430 G:$G(CWLP)="" FOREND
2431"RTN","CWMAILB",16,0)
2432 F S CWLP=$O(CWTEXT(CWLP)) Q:CWLP="" Q:CWTEXT(CWLP)=CWSEDATA D
2433"RTN","CWMAILB",17,0)
2434 .S CWTMP=$G(CWTEXT(CWLP)) Q:CWTMP=""
2435"RTN","CWMAILB",18,0)
2436 .S CWFILE=+$P(CWTMP,"^"),CWIEN=+$P(CWTMP,"^",2),CWNAM=$P(CWTMP,"^",3)
2437"RTN","CWMAILB",19,0)
2438 .I CWFILE=200 S XMY(CWIEN)=""
2439"RTN","CWMAILB",20,0)
2440 .E I CWFILE=3.8 S XMY("G."_CWNAM)=""
2441"RTN","CWMAILB",21,0)
2442 .E S XMY(CWNAM)=""
2443"RTN","CWMAILB",22,0)
2444 I $D(XMY) D
2445"RTN","CWMAILB",23,0)
2446 . S XMKZA(XMZ)=""
2447"RTN","CWMAILB",24,0)
2448 . D FWDMSG^XMXAPI(XMDUZ,"",.XMKZA,.XMY,.XMINSTR,.CWMSG)
2449"RTN","CWMAILB",25,0)
2450 ;RETURNS <number of messages> forwarded.
2451"RTN","CWMAILB",26,0)
2452 S CWDATA(1)=+CWMSG_U_U_XMZ ;FORCE TO SUCCESS
2453"RTN","CWMAILB",27,0)
2454FOREND Q
2455"RTN","CWMAILB",28,0)
2456 ;
2457"RTN","CWMAILB",29,0)
2458%TERMIN(CWDATA,CWINPUT) ;TERMINATE A MESSAGE THREAD
2459"RTN","CWMAILB",30,0)
2460 ;Input: 1st piece = IEN of Message
2461"RTN","CWMAILB",31,0)
2462 ; 2nd piece = IEN of Mail Basket
2463"RTN","CWMAILB",32,0)
2464 ;
2465"RTN","CWMAILB",33,0)
2466 N XMRC,XMZ,XMK,Y,CWMSGNM,CWMSGR
2467"RTN","CWMAILB",34,0)
2468 S CWDATA(1)="0^^AN ERROR HAS OCCURRED"
2469"RTN","CWMAILB",35,0)
2470 S XMZ=$P($G(CWINPUT),";"),XMK=$P($G(CWINPUT),";",2)
2471"RTN","CWMAILB",36,0)
2472 S CWMSGNM(XMZ)=""
2473"RTN","CWMAILB",37,0)
2474 D TERMMSG^XMXAPI(XMDUZ,"",.CWMSGNM,.CWMSGR)
2475"RTN","CWMAILB",38,0)
2476 ;RETURNS <number of messages> terminated.
2477"RTN","CWMAILB",39,0)
2478 S CWDATA(1)=+CWMSGR_U_U ;return 1 for success or 0
2479"RTN","CWMAILB",40,0)
2480 Q
2481"RTN","CWMAILB",41,0)
2482FNDLP(CWLP,X) ;FIND A CHARACTER STRING ENTRY
2483"RTN","CWMAILB",42,0)
2484 F S CWLP=$O(CWTEXT(CWLP)) Q:CWLP="" Q:CWTEXT(CWLP)=X
2485"RTN","CWMAILB",43,0)
2486 Q
2487"RTN","CWMAILB",44,0)
2488 ;
2489"RTN","CWMAILB",45,0)
2490INCNT(CWCNT) ;INCREMENT COUNTER
2491"RTN","CWMAILB",46,0)
2492 Q CWCNT+1
2493"RTN","CWMAILB",47,0)
2494 ;
2495"RTN","CWMAILB",48,0)
2496%CREATE(DATA,INPUT,TEXT) ;CREATE A NEW MESSAGE
2497"RTN","CWMAILB",49,0)
2498 ;BUILD RETURN CODES FOR ERROR MESSAGING
2499"RTN","CWMAILB",50,0)
2500 D %CREATE^CWMAIL2
2501"RTN","CWMAILB",51,0)
2502 Q
2503"RTN","CWMAILB",52,0)
2504 ;
2505"RTN","CWMAILB",53,0)
2506%REPLY(CWDATA,CWINPUT,CWTEXT) ; This API uses global array for text
2507"RTN","CWMAILB",54,0)
2508 ;INPUT - Piece 1 : Message Number
2509"RTN","CWMAILB",55,0)
2510 ; Piece 2-4 : Not Used
2511"RTN","CWMAILB",56,0)
2512 ; Piece 5 : Network Reply Flag (0 = no; 1 = yes)
2513"RTN","CWMAILB",57,0)
2514 ;
2515"RTN","CWMAILB",58,0)
2516 N CWMSGN,CWRESULT,CWSDATA,CWSEDATA,CWTMP,CWNWCHK,CWDATT
2517"RTN","CWMAILB",59,0)
2518 N CWMSGT,XMZR,CWLP,XMINSTR
2519"RTN","CWMAILB",60,0)
2520 S CWMSGN=$P(CWINPUT,";")
2521"RTN","CWMAILB",61,0)
2522 S CWNWCHK=$P(CWINPUT,";",5)
2523"RTN","CWMAILB",62,0)
2524 S CWDATA(1)="0^UNDEFINED ERROR"
2525"RTN","CWMAILB",63,0)
2526 S CWTEXT=$NA(^TMP($J,"CWMAILLOAD"))
2527"RTN","CWMAILB",64,0)
2528 G:'$G(CWMSGN) REPEND
2529"RTN","CWMAILB",65,0)
2530 S CWSDATA=$G(@CWTEXT@(-9900),"[START DATA]"),CWSEDATA=$G(@CWTEXT@(-9901),"[END DATA]")
2531"RTN","CWMAILB",66,0)
2532 S CWLP=-1 D GFNDLP(.CWLP,CWSDATA)
2533"RTN","CWMAILB",67,0)
2534 G:$G(CWLP)="" REPEND
2535"RTN","CWMAILB",68,0)
2536 F S CWLP=$O(@CWTEXT@(CWLP)) Q:CWLP="" Q:@CWTEXT@(CWLP)=CWSEDATA D
2537"RTN","CWMAILB",69,0)
2538 .S ^TMP($J,"CWMAILOUT",CWLP)=$G(@CWTEXT@(CWLP))
2539"RTN","CWMAILB",70,0)
2540 G:'$D(^TMP($J,"CWMAILOUT")) REPEND
2541"RTN","CWMAILB",71,0)
2542 S CWMSGT=$NA(^TMP($J,"CWMAILOUT"))
2543"RTN","CWMAILB",72,0)
2544 D CNVTAB^CWMAIL2(CWMSGT) ;convert tabs to spaces
2545"RTN","CWMAILB",73,0)
2546 S XMINSTR("NET REPLY")=$S(+$G(CWNWCHK):1,1:0)
2547"RTN","CWMAILB",74,0)
2548 D REPLYMSG^XMXAPI(XMDUZ,"",CWMSGN,CWMSGT,.XMINSTR,.XMZR)
2549"RTN","CWMAILB",75,0)
2550 I +$G(XMZR)>0 S CWDATA(1)=$S(CWNWCHK:2,1:1)_"^NO ERRORS"_U_CWMSGN ;SUCCESS
2551"RTN","CWMAILB",76,0)
2552 E S CWDATA(1)="0^"_$G(CWDATA)_U_CWMSGN ;RETURN ERROR MESSAGE
2553"RTN","CWMAILB",77,0)
2554REPEND K ^TMP($J,"CWMAILLOAD"),^TMP($J,"CWMAILOUT")
2555"RTN","CWMAILB",78,0)
2556 Q
2557"RTN","CWMAILB",79,0)
2558GFNDLP(CWLP,X) ;FIND A CHARACTER STRING ENTRY IN GLOBAL
2559"RTN","CWMAILB",80,0)
2560 F S CWLP=$O(@CWTEXT@(CWLP)) Q:CWLP="" Q:@CWTEXT@(CWLP)=X
2561"RTN","CWMAILB",81,0)
2562 Q
2563"RTN","CWMAILB",82,0)
2564 ;
2565"RTN","CWMAILB",83,0)
2566%ANSWER(CWDATA,CWINPUT,CWTEXT) ; This API uses global array for text to answer a message
2567"RTN","CWMAILB",84,0)
2568 ;INPUT - CWINPUT : Piece 1 : Message Number
2569"RTN","CWMAILB",85,0)
2570 ; Piece 2 : Not Used
2571"RTN","CWMAILB",86,0)
2572 ; Piece 3 : Message Attributes
2573"RTN","CWMAILB",87,0)
2574 ; Pieces 4-5 : Not Used
2575"RTN","CWMAILB",88,0)
2576 ; CWTEXT : Holds list of additional recipients
2577"RTN","CWMAILB",89,0)
2578 ;
2579"RTN","CWMAILB",90,0)
2580 N CWSDATA,CWSEDATA,CWLP,CWTXTARY,DA,DIE,DR,Y,XMTEXT
2581"RTN","CWMAILB",91,0)
2582 N CWMSGABS,CWTMP,CWFILE,CWIEN,CWNAM
2583"RTN","CWMAILB",92,0)
2584 N XMBODY,CWMSGN,XMY,XMZ,XMINSTR
2585"RTN","CWMAILB",93,0)
2586 S CWMSGN=$P(CWINPUT,";") ;MESSAGE NUMBER
2587"RTN","CWMAILB",94,0)
2588 I $G(CWMSGN)<1 S CWDATA(1)="0^98- No message number given" G ANSEND
2589"RTN","CWMAILB",95,0)
2590 S CWDATA(1)="0^99- UNDEFINED ERROR"
2591"RTN","CWMAILB",96,0)
2592 ;TEXT ARRAY CONTAINS RECIPIENT LIST AND MESSAGE TEXT LOADED FROM BMSGD call
2593"RTN","CWMAILB",97,0)
2594 ;BUILD XMY ARRAY
2595"RTN","CWMAILB",98,0)
2596 S CWTEXT=$NA(^TMP($J,"CWMAILLOAD"))
2597"RTN","CWMAILB",99,0)
2598 S CWSDATA=$G(@CWTEXT@(-9902),"[START XMY]"),CWSEDATA=$G(@CWTEXT@(-9903),"[END XMY]")
2599"RTN","CWMAILB",100,0)
2600 S CWLP=-1 D GFNDLP^CWMAILB(.CWLP,CWSDATA)
2601"RTN","CWMAILB",101,0)
2602 ;RETRIEVE RECIPIENTS
2603"RTN","CWMAILB",102,0)
2604 I $G(CWLP)'="" D
2605"RTN","CWMAILB",103,0)
2606 . F S CWLP=$O(@CWTEXT@(CWLP)) Q:CWLP="" Q:@CWTEXT@(CWLP)=CWSEDATA D
2607"RTN","CWMAILB",104,0)
2608 . . S CWTMP=$G(@CWTEXT@(CWLP)) Q:CWTMP=""
2609"RTN","CWMAILB",105,0)
2610 . . S CWFILE=+$P(CWTMP,"^"),CWIEN=+$P(CWTMP,"^",2),CWNAM=$P(CWTMP,"^",3)
2611"RTN","CWMAILB",106,0)
2612 . . I CWFILE=200 S XMY(CWIEN)=""
2613"RTN","CWMAILB",107,0)
2614 . . E I CWFILE=3.8 S XMY("G."_CWNAM)=""
2615"RTN","CWMAILB",108,0)
2616 . . E S XMY(CWNAM)="" ;treat address as internet address
2617"RTN","CWMAILB",109,0)
2618 ;BUILD MESSAGE @TEXT@ ARRAY
2619"RTN","CWMAILB",110,0)
2620 S CWSDATA=$G(@CWTEXT@(-9900),"[START DATA]"),CWSEDATA=$G(@CWTEXT@(-9901),"[END DATA]")
2621"RTN","CWMAILB",111,0)
2622 S CWLP=-1 D GFNDLP^CWMAILB(.CWLP,CWSDATA)
2623"RTN","CWMAILB",112,0)
2624 I $G(CWLP)="" S CWDATA(1)="0^3- NO MESSAGE TEXT" G ANSEND
2625"RTN","CWMAILB",113,0)
2626 F S CWLP=$O(@CWTEXT@(CWLP)) Q:CWLP="" Q:@CWTEXT@(CWLP)=CWSEDATA D
2627"RTN","CWMAILB",114,0)
2628 .S ^TMP($J,"CWMAILOUT",CWLP)=$G(@CWTEXT@(CWLP))
2629"RTN","CWMAILB",115,0)
2630 ;I '$D(^TMP($J,"CWMAILOUT")) S CWDATA(1)="0^3- NO MESSAGE TEXT" G ANSEND ;NO MESSAGE @CWTEXT@
2631"RTN","CWMAILB",116,0)
2632 ;I '$L($P($G(CWINPUT),";")) S CWDATA(1)="0^4- MESSAGE SUBJECT NOT GIVEN" G ANSEND
2633"RTN","CWMAILB",117,0)
2634 ;E S XMSUBJ=$P($G(CWINPUT),";")
2635"RTN","CWMAILB",118,0)
2636 ;PROCESS MESSAGE
2637"RTN","CWMAILB",119,0)
2638 S XMBODY=$NA(^TMP($J,"CWMAILOUT"))
2639"RTN","CWMAILB",120,0)
2640 S XMINSTR("FLAGS")=$P(CWINPUT,";",3) ;GET MESSAGE ATTRIBUTES
2641"RTN","CWMAILB",121,0)
2642 D ANSRMSG^XMXAPI(XMDUZ,"",CWMSGN,"",XMBODY,.XMY,.XMINSTR,.XMZ)
2643"RTN","CWMAILB",122,0)
2644 I $G(XMZ)<1 S CWDATA(1)="0^5- MESSAGE ANSWER FAILED" G ANSEND
2645"RTN","CWMAILB",123,0)
2646 I +$G(XMZ)>0 S CWDATA(1)="1^^"_$G(XMZ)
2647"RTN","CWMAILB",124,0)
2648ANSEND K ^TMP($J,"CWMAILOUT"),^TMP($J,"CWMAILLOAD")
2649"RTN","CWMAILB",125,0)
2650 Q
2651"RTN","CWMAILC")
26520^10^B12646738
2653"RTN","CWMAILC",1,0)
2654CWMAILC ;INDPLS/PLS- DELPHI VISTA MAIL SERVER CONT'D ;21-Jun-2005 06:34;CLC
2655"RTN","CWMAILC",2,0)
2656 ;;2.3;CWMAIL;;Jul 19, 2005
2657"RTN","CWMAILC",3,0)
2658 ;MODIFIED FOR XM*7.1*50
2659"RTN","CWMAILC",4,0)
2660 Q ;ROUTINE CAN'T BE CALLED DIRECTLY
2661"RTN","CWMAILC",5,0)
2662 ;
2663"RTN","CWMAILC",6,0)
2664%LATER(CWDATA,CWINPUT) ;LATER A MESSAGE
2665"RTN","CWMAILC",7,0)
2666 ;CWINPUT - HOLDS MESSAGE NUMBER AND LATER DATE/TIME - DELIMITER ';'
2667"RTN","CWMAILC",8,0)
2668 ; 1st - IEN of message
2669"RTN","CWMAILC",9,0)
2670 ; 2nd - Later date
2671"RTN","CWMAILC",10,0)
2672 N XMZ,XMDUZ,XMA
2673"RTN","CWMAILC",11,0)
2674 S CWDATA(1)="0^^AN ERROR HAS OCCURRED"
2675"RTN","CWMAILC",12,0)
2676 S XMZ=$P(CWINPUT,";")
2677"RTN","CWMAILC",13,0)
2678 S XMDUZ=DUZ
2679"RTN","CWMAILC",14,0)
2680 S XMA=$P(CWINPUT,";",2)
2681"RTN","CWMAILC",15,0)
2682 G:'XMZ!('$G(XMA)) LATERE
2683"RTN","CWMAILC",16,0)
2684 I $$LATER^CWMAIL1(XMZ,XMA) D
2685"RTN","CWMAILC",17,0)
2686 .S CWDATA(1)="1^1^Message has been latered"
2687"RTN","CWMAILC",18,0)
2688 E S CWDATA(1)="0^0^Unable to Later Message Number: "_XMZ
2689"RTN","CWMAILC",19,0)
2690LATERE Q
2691"RTN","CWMAILC",20,0)
2692 ;
2693"RTN","CWMAILC",21,0)
2694%MBOX(CWDATA,CWINPUT) ;RETRIEVE MAILBOXES
2695"RTN","CWMAILC",22,0)
2696 ;CWINPUT NOT USED
2697"RTN","CWMAILC",23,0)
2698 ;VARIABLES : CWNMSG = NEW MESSAGES
2699"RTN","CWMAILC",24,0)
2700 ; CWTMSG = TOTAL MESSAGE COUNT
2701"RTN","CWMAILC",25,0)
2702 K ^TMP($J,"CWMBSKT")
2703"RTN","CWMAILC",26,0)
2704 D LISTBSKT^XMXAPIB(XMDUZ,,,,,"^TMP($J,""CWMBSKT"")")
2705"RTN","CWMAILC",27,0)
2706 N CWLP,CWLP1,CWCNT,CWNMSG,CWTMSG,CWFPES,CWHSN,CWBNAME,CWBIEN
2707"RTN","CWMAILC",28,0)
2708 S CWDATA(1)="0^^AN ERROR HAS OCCURRED",CWCNT=2
2709"RTN","CWMAILC",29,0)
2710 S CWLP=0 F S CWLP=$O(^TMP($J,"CWMBSKT","XMLIST",CWLP)) Q:CWLP="" D
2711"RTN","CWMAILC",30,0)
2712 . S CWBIEN=+$G(^TMP($J,"CWMBSKT","XMLIST",CWLP))
2713"RTN","CWMAILC",31,0)
2714 . I CWBIEN D
2715"RTN","CWMAILC",32,0)
2716 . . S CWDATA(CWCNT)=$G(^TMP($J,"CWMBSKT","XMLIST",CWLP))
2717"RTN","CWMAILC",33,0)
2718 . . S CWCNT=CWCNT+1
2719"RTN","CWMAILC",34,0)
2720 I $O(CWDATA(1)) S CWDATA(1)="1^^DATA HAS BEEN FOUND"
2721"RTN","CWMAILC",35,0)
2722 E S CWDATA(1)="1^^No Mail Boxes could be found"
2723"RTN","CWMAILC",36,0)
2724 S $P(CWDATA(1),U,2)=CWCNT-2
2725"RTN","CWMAILC",37,0)
2726MBOXE K ^TMP($J,"CWMBSKT")
2727"RTN","CWMAILC",38,0)
2728 Q
2729"RTN","CWMAILC",39,0)
2730%PMBOX(CWDATA,CWINPUT) ;PURGE ENTIRE MAIL BOX
2731"RTN","CWMAILC",40,0)
2732 ;CWINPUT = MAIL BOX IEN
2733"RTN","CWMAILC",41,0)
2734 N CWLP,XMZ,XMK,CWX,CWY,XMKZA,XMMSG,CWCNT
2735"RTN","CWMAILC",42,0)
2736 S XMK=$P(CWINPUT,";",2)
2737"RTN","CWMAILC",43,0)
2738 G PMBOXE:'XMK
2739"RTN","CWMAILC",44,0)
2740 S CWDATA(1)="0^^AN ERROR HAS OCCURRED",CWCNT=2
2741"RTN","CWMAILC",45,0)
2742 ;delete basket regardless of content
2743"RTN","CWMAILC",46,0)
2744 D DELBSKT^XMXAPIB(XMDUZ,XMK,"D")
2745"RTN","CWMAILC",47,0)
2746 S CWDATA(1)="1^1"
2747"RTN","CWMAILC",48,0)
2748 ;E S CWDATA(1)="0^0"
2749"RTN","CWMAILC",49,0)
2750PMBOXE Q
2751"RTN","CWMAILC",50,0)
2752%RNMBOX(CWDATA,CWINPUT) ;RENAME EXISTING MAILBOX
2753"RTN","CWMAILC",51,0)
2754 ;CWINPUT - DELIMITER ';'
2755"RTN","CWMAILC",52,0)
2756 ; 1st - IEN of mailbox
2757"RTN","CWMAILC",53,0)
2758 ; 2nd - New name of mailbox
2759"RTN","CWMAILC",54,0)
2760 D NAMEBSKT^XMXAPIB(XMDUZ,$P(CWINPUT,";"),$P(CWINPUT,";",2))
2761"RTN","CWMAILC",55,0)
2762 S CWDATA(1)="1^1^MAILBOX NAME WAS CHANGED" ;FORCE TO SUCCESS
2763"RTN","CWMAILC",56,0)
2764RNMBOXE Q
2765"RTN","CWMAILC",57,0)
2766%MSGRCP(CWDATA,CWINPUT) ; RETURNS A LIST OF MESSAGE RECIPIENTS
2767"RTN","CWMAILC",58,0)
2768 ;CWINPUT = IEN of message
2769"RTN","CWMAILC",59,0)
2770 N CWDAT,CWI,XMZ
2771"RTN","CWMAILC",60,0)
2772 K CWDATA
2773"RTN","CWMAILC",61,0)
2774 S XMZ=+$P($G(CWINPUT),";",2)
2775"RTN","CWMAILC",62,0)
2776 D RECPT^CWMAIL1(.CWDATA,XMZ)
2777"RTN","CWMAILC",63,0)
2778MSGRCPE Q
2779"RTN","CWMAILC",64,0)
2780%NETINFO(CWDATA,CWINPUT) ; RETURNS NETWORK TRANSMISSION INFO
2781"RTN","CWMAILC",65,0)
2782 ;INPUT - IEN of message
2783"RTN","CWMAILC",66,0)
2784 N CWDAT,CWI,XMZ
2785"RTN","CWMAILC",67,0)
2786 K CWDATA
2787"RTN","CWMAILC",68,0)
2788 S XMZ=+$P($G(CWINPUT),";",2)
2789"RTN","CWMAILC",69,0)
2790 D NETINFO^CWMAIL1(.CWDATA,XMZ)
2791"RTN","CWMAILC",70,0)
2792NETINFOE Q
2793"RTN","CWMAILC",71,0)
2794 ;
2795"RTN","CWMAILC",72,0)
2796%ADRSTO(CWDATA,CWINPUT) ;RETURNS ARRAY OF ADDRESSED TO
2797"RTN","CWMAILC",73,0)
2798 ;CWINPUT - IEN of message
2799"RTN","CWMAILC",74,0)
2800 N CWDAT,CWI,XMZ
2801"RTN","CWMAILC",75,0)
2802 K CWDATA
2803"RTN","CWMAILC",76,0)
2804 S XMZ=+$P($G(CWINPUT),";",2)
2805"RTN","CWMAILC",77,0)
2806 D ADRSTO^CWMAIL1(.CWDATA,XMZ)
2807"RTN","CWMAILC",78,0)
2808ADRSTOE Q
2809"RTN","CWMAILC",79,0)
2810%GRPINF(CWDATA,CWINPUT) ;MAIL GROUP INFO
2811"RTN","CWMAILC",80,0)
2812 ;CWINPUT - IEN of mail group
2813"RTN","CWMAILC",81,0)
2814 N CWDAT,CWI,XMZ
2815"RTN","CWMAILC",82,0)
2816 K CWDATA
2817"RTN","CWMAILC",83,0)
2818 S CWI=2
2819"RTN","CWMAILC",84,0)
2820 S CWIEN=+$P($G(CWINPUT),";",2)
2821"RTN","CWMAILC",85,0)
2822 I $$GRPINFO^CWMAIL3(.CWDAT,CWIEN) D
2823"RTN","CWMAILC",86,0)
2824 .S CWI=+$G(CWDAT(-9900)) K CWDAT(-9900)
2825"RTN","CWMAILC",87,0)
2826 .M CWDATA=CWDAT
2827"RTN","CWMAILC",88,0)
2828 .S CWDATA(1)="1^^DATA HAS BEEN FOUND"
2829"RTN","CWMAILC",89,0)
2830 E S CWDATA(1)="1^^There was no Mail Group information found."
2831"RTN","CWMAILC",90,0)
2832 S $P(CWDATA(1),U,2)=CWI-2
2833"RTN","CWMAILC",91,0)
2834GRPINFE Q
2835"RTN","CWMAILC",92,0)
2836%USRINF(CWDATA,CWINPUT) ;MAIL USER INFO
2837"RTN","CWMAILC",93,0)
2838 ;CWINPUT - IEN of mail user
2839"RTN","CWMAILC",94,0)
2840 N CWDAT,CWI,CWIEN
2841"RTN","CWMAILC",95,0)
2842 K CWDATA
2843"RTN","CWMAILC",96,0)
2844 S CWI=2
2845"RTN","CWMAILC",97,0)
2846 S CWIEN=+$P($G(CWINPUT),";",2)
2847"RTN","CWMAILC",98,0)
2848 ;G:'CWIEN USRINFE
2849"RTN","CWMAILC",99,0)
2850 I $$USRINFO^CWMAIL3(.CWDAT,CWIEN) D
2851"RTN","CWMAILC",100,0)
2852 .S CWI=+$G(CWDAT(-9900)) K CWDAT(-9900)
2853"RTN","CWMAILC",101,0)
2854 .M CWDATA=CWDAT
2855"RTN","CWMAILC",102,0)
2856 .S CWDATA(1)="1^^DATA HAS BEEN FOUND"
2857"RTN","CWMAILC",103,0)
2858 E S CWDATA(1)="1^^There was no Mail User information found."
2859"RTN","CWMAILC",104,0)
2860 S $P(CWDATA(1),U,2)=CWI-2
2861"RTN","CWMAILC",105,0)
2862USRINFE Q
2863"RTN","CWMAILC",106,0)
2864MBOXD(CWDAT,CWUSR,CWIEN) ;RETURN DATA FOR MAILBOX
2865"RTN","CWMAILC",107,0)
2866 ;API NOT CURRENTLY USED
2867"RTN","CWMAILC",108,0)
2868 ;INPUT CWDAT = RETURN ARRAY
2869"RTN","CWMAILC",109,0)
2870 ; CWIEN = MAILBASKET IEN TO 3.7 FOR USER
2871"RTN","CWMAILC",110,0)
2872 ;OUTPUT CWDAT("NAME")
2873"RTN","CWMAILC",111,0)
2874 ; CWDAT("TMSG")
2875"RTN","CWMAILC",112,0)
2876 ; CWDAT("NMSG")
2877"RTN","CWMAILC",113,0)
2878 ; CWDAT("IEN")
2879"RTN","CWMAILC",114,0)
2880 N CWDATT
2881"RTN","CWMAILC",115,0)
2882 D QBSKT^XMXAPIB(CWUSR,CWIEN,.CWDATT)
2883"RTN","CWMAILC",116,0)
2884 S CWDAT("IEN")=$P(CWDATT,U)
2885"RTN","CWMAILC",117,0)
2886 S CWDAT("NAME")=$P(CWDATT,U,2)
2887"RTN","CWMAILC",118,0)
2888 S CWDAT("TMSG")=+$P(CWDATT,U,3)
2889"RTN","CWMAILC",119,0)
2890 S CWDAT("NMSG")=+$P(CWDATT,U,4)
2891"RTN","CWMAILC",120,0)
2892 Q
2893"RTN","CWMAILD")
28940^11^B22909291
2895"RTN","CWMAILD",1,0)
2896CWMAILD ;INDPLS/PLS- DELPHI VISTA MAIL SERVER CONT'D ;22-Jul-2005 07:10;CLC
2897"RTN","CWMAILD",2,0)
2898 ;;2.3;CWMAIL;;Jul 19, 2005
2899"RTN","CWMAILD",3,0)
2900 Q ;ROUTINE CAN'T BE CALLED DIRECTLY
2901"RTN","CWMAILD",4,0)
2902 ;
2903"RTN","CWMAILD",5,0)
2904%BMSGD(CWDATA,CWINPUT,CWTEXT) ;BUILD MESSAGE DATA INTO GLOBAL
2905"RTN","CWMAILD",6,0)
2906 ;USE CREATE OR REPLY TO SEND ACTUAL MESSAGE OR REPLY
2907"RTN","CWMAILD",7,0)
2908 M ^TMP($J,"CWMAILLOAD")=CWTEXT
2909"RTN","CWMAILD",8,0)
2910 S CWDATA(1)="1^1^DATA SET"
2911"RTN","CWMAILD",9,0)
2912BMSGDE Q
2913"RTN","CWMAILD",10,0)
2914 ;
2915"RTN","CWMAILD",11,0)
2916%PERPREF(CWDATA,CWPARAM) ;retrieve personal preferences
2917"RTN","CWMAILD",12,0)
2918 ;CWPARAM is not used
2919"RTN","CWMAILD",13,0)
2920 N CWNAME,CWCNT
2921"RTN","CWMAILD",14,0)
2922 S CWCNT=2
2923"RTN","CWMAILD",15,0)
2924 S CWDATA(1)="0^^AN ERROR HAS OCCURRED"
2925"RTN","CWMAILD",16,0)
2926 I $$GETPKPM^CWMAILE(.CWDATA) D
2927"RTN","CWMAILD",17,0)
2928 .S CWCNT=$G(CWDATA(-9900))
2929"RTN","CWMAILD",18,0)
2930 .K CWDATA(-9900)
2931"RTN","CWMAILD",19,0)
2932 .S CWDATA(1)="1^1^Preferences have been retrieved"
2933"RTN","CWMAILD",20,0)
2934 E S CWDATA(1)="0^0^Unable to retrieve preferences"
2935"RTN","CWMAILD",21,0)
2936 S $P(CWDATA(1),U,2)=CWCNT-2
2937"RTN","CWMAILD",22,0)
2938PERPREFE Q
2939"RTN","CWMAILD",23,0)
2940 ;
2941"RTN","CWMAILD",24,0)
2942%USRLOG(CWDATA,DUZ) ;SET-UP USER PARTITION
2943"RTN","CWMAILD",25,0)
2944 ;
2945"RTN","CWMAILD",26,0)
2946 I +DUZ>0 D
2947"RTN","CWMAILD",27,0)
2948 . N XMDISPI,XMDUN,XMDUZ,CWNAME,CWNKNM,CWNMAIL,CWPMAIL
2949"RTN","CWMAILD",28,0)
2950 . S CWNKNM=$P($G(^VA(200,DUZ,.1)),U,4)
2951"RTN","CWMAILD",29,0)
2952 . D INIT^XMVVITAE
2953"RTN","CWMAILD",30,0)
2954 . S CWNMAIL=+$P($G(^XMB(3.7,DUZ,0)),U,6)
2955"RTN","CWMAILD",31,0)
2956 . S CWDATA(1)="1^"
2957"RTN","CWMAILD",32,0)
2958 . S $P(CWDATA(1),U,2)=XMV("DUZ NAME") ; SET USER NAME
2959"RTN","CWMAILD",33,0)
2960 . S $P(CWDATA(1),U,3)=CWNKNM ;SET USER NICKNAME
2961"RTN","CWMAILD",34,0)
2962 . S $P(CWDATA(1),U,4)=XMV("NEW MSGS") ;SET # OF NEW MSGS
2963"RTN","CWMAILD",35,0)
2964 . S $P(CWDATA(1),U,5)=$G(XMV("WARNING",1))="Priority Mail" ;SET PRIORITY MAIL FLAG
2965"RTN","CWMAILD",36,0)
2966 . S $P(CWDATA(1),U,6)=$P($G(XMV("NETNAME")),"@",2) ;get domain name for mail server
2967"RTN","CWMAILD",37,0)
2968 . S $P(CWDATA(1),U,7)=$S($P($G(^VA(200,DUZ,200)),U,10)>0:$P($G(^VA(200,DUZ,200)),U,10),1:300) ;Timed read used for GuiMail timeout. -clc
2969"RTN","CWMAILD",38,0)
2970 ;$G(^XMB("NETNAME")) ;get domain name for mail server
2971"RTN","CWMAILD",39,0)
2972 E S CWDATA(1)="0^USER NOT FOUND"
2973"RTN","CWMAILD",40,0)
2974USRLOGE Q
2975"RTN","CWMAILD",41,0)
2976%CHKMAIL(CWDATA,DUZ) ;CHECK FOR NEW MAIL
2977"RTN","CWMAILD",42,0)
2978 ;
2979"RTN","CWMAILD",43,0)
2980 N CWPMAIL,CWNMAIL,CWDAT
2981"RTN","CWMAILD",44,0)
2982 I +DUZ>0 D
2983"RTN","CWMAILD",45,0)
2984 . S CWDAT=$$NEWS^XMXUTIL(DUZ) ;FORMAT #NEWMSGS^PRIORITY^#NMSGIN^DT LAST MSG^
2985"RTN","CWMAILD",46,0)
2986 . S CWDATA(1)="1^"_U_U_+CWDAT_U_+$P(CWDAT,U,2)
2987"RTN","CWMAILD",47,0)
2988 E S CWDATA(1)="0^USER NOT FOUND"
2989"RTN","CWMAILD",48,0)
2990CHKMAILE Q
2991"RTN","CWMAILD",49,0)
2992 ;
2993"RTN","CWMAILD",50,0)
2994%PRTMSG(CWDATA,CWINPUT) ;PRINT A MESSAGE
2995"RTN","CWMAILD",51,0)
2996 ; CWINPUT - 1st piece: XMZ message number
2997"RTN","CWMAILD",52,0)
2998 ; 2nd piece: XMK message basket number
2999"RTN","CWMAILD",53,0)
3000 ; 3rd piece: Print from response number 0=all
3001"RTN","CWMAILD",54,0)
3002 ; 4th piece: null = no recpts 0=summary; 1=detail
3003"RTN","CWMAILD",55,0)
3004 ; 5th piece: printer name
3005"RTN","CWMAILD",56,0)
3006 ; 6th piece: 1=header, 0=headerless
3007"RTN","CWMAILD",57,0)
3008 N XMZ,XMK,XMKN
3009"RTN","CWMAILD",58,0)
3010 N XMINSTR,CWDAT1,CWDAT2,CWRESP,CWRECP,CWPRTN,XMMSG,XMTASK
3011"RTN","CWMAILD",59,0)
3012 S XMZ=+$P(CWINPUT,";")
3013"RTN","CWMAILD",60,0)
3014 S CWRESP=$P(CWINPUT,";",3)
3015"RTN","CWMAILD",61,0)
3016 S CWRECP=$P(CWINPUT,";",4),CWRECP=$S($L(CWRECP):+CWRECP,1:-1)
3017"RTN","CWMAILD",62,0)
3018 S CWPRTN=$P(CWINPUT,";",5)
3019"RTN","CWMAILD",63,0)
3020 ;D INMSG1^XMXUTIL2(XMDUZ,XMZ,,.CWDAT1,.CWDAT2) ;GET # OF RESPONSES - NOT CURRENTLY NEEDED
3021"RTN","CWMAILD",64,0)
3022 S XMINSTR("HDR")=$S('$L($P(CWINPUT,";",6)):1,1:+$P(CWINPUT,";",6)) ;DEFAULT TO PRINTING HEADER
3023"RTN","CWMAILD",65,0)
3024 S XMINSTR("RESPS")=$S(+CWRESP:+CWRESP_"-",1:"*") ;DEFINE RANGE TO PRINT +$G((CWDAT("RESPS"))) HOLDS TOTAL # OF RESPONSES
3025"RTN","CWMAILD",66,0)
3026 I CWRECP>-1 D
3027"RTN","CWMAILD",67,0)
3028 . S XMINSTR("RECIPS")=$S(+CWRECP:2,1:1) ;CONVERT CWMA TO XM NOMENCLATURE
3029"RTN","CWMAILD",68,0)
3030 E S XMINSTR("RECIPS")=0 ;Don't print recipient list
3031"RTN","CWMAILD",69,0)
3032 D:$L($G(CWPRTN)) PRTMSG^XMXAPI(XMDUZ,,XMZ,CWPRTN,.XMINSTR,,.XMTASK)
3033"RTN","CWMAILD",70,0)
3034 I +$G(XMTASK) S CWDATA(1)="1^1^"_$G(XMTASK)
3035"RTN","CWMAILD",71,0)
3036 E S CWDATA(1)="1^0^Message could not be printed"
3037"RTN","CWMAILD",72,0)
3038PRTMSGE Q
3039"RTN","CWMAILD",73,0)
3040 ;
3041"RTN","CWMAILD",74,0)
3042%SUPREF(CWDATA,CWINPUT,CWTEXT) ;Set user preferences
3043"RTN","CWMAILD",75,0)
3044 ;
3045"RTN","CWMAILD",76,0)
3046 N CWSDATA,CWSEDATA,CWLP
3047"RTN","CWMAILD",77,0)
3048 N CWPRM,CWVAL,CWLP1,CWERR
3049"RTN","CWMAILD",78,0)
3050 S CWDATA(1)="0^^AN ERROR HAS OCCURRED"
3051"RTN","CWMAILD",79,0)
3052 S CWSDATA=$G(CWTEXT(-9902),"[START DATA]"),CWSEDATA=$G(CWTEXT(-9903),"[END DATA]")
3053"RTN","CWMAILD",80,0)
3054 S CWLP=-1 D FNDLP^CWMAILB(.CWLP,CWSDATA)
3055"RTN","CWMAILD",81,0)
3056 G:$G(CWLP)="" SUPREND
3057"RTN","CWMAILD",82,0)
3058 F S CWLP=$O(CWTEXT(CWLP)) Q:CWLP="" Q:CWTEXT(CWLP)=CWSEDATA D
3059"RTN","CWMAILD",83,0)
3060 . I CWTEXT(CWLP)'?1"[".E1"]" D
3061"RTN","CWMAILD",84,0)
3062 . . S CWPRM=$$GETPRM^CWMAILE($P(CWTEXT(CWLP),"=")) ;get parameter
3063"RTN","CWMAILD",85,0)
3064 . . I $L(CWPRM) D
3065"RTN","CWMAILD",86,0)
3066 . . . S CWVAL=$P(CWTEXT(CWLP),"=",2) ;get value
3067"RTN","CWMAILD",87,0)
3068 . . . S CWERR=$$SETPARM(XMDUZ,CWPRM,CWVAL) ;set value into parameter
3069"RTN","CWMAILD",88,0)
3070 S CWDATA(1)="1^1^Preferences have been stored"
3071"RTN","CWMAILD",89,0)
3072SUPREND Q
3073"RTN","CWMAILD",90,0)
3074 ;
3075"RTN","CWMAILD",91,0)
3076SETPARM(CWDUZ,CWPARM,CWVALUE) ;Set value into parameter instance
3077"RTN","CWMAILD",92,0)
3078 ;Input: CWPARM - holds the return value of $$GETPRM^CWMAILE
3079"RTN","CWMAILD",93,0)
3080 ; CWVALUE - value to stuff (single value or comma delimited string)
3081"RTN","CWMAILD",94,0)
3082 ; CWDUZ - user
3083"RTN","CWMAILD",95,0)
3084 Q:'CWDUZ 1 ;must have a valid user
3085"RTN","CWMAILD",96,0)
3086 K CWERR
3087"RTN","CWMAILD",97,0)
3088 I 'CWPARM D ;single instance
3089"RTN","CWMAILD",98,0)
3090 . D EN^XPAR("USR.`"_CWDUZ,$P(CWPARM,"|",2),1,CWVALUE,.CWERR)
3091"RTN","CWMAILD",99,0)
3092 E D ;multiple instances
3093"RTN","CWMAILD",100,0)
3094 . N CWLP,CWX,CWXA
3095"RTN","CWMAILD",101,0)
3096 . S CWX=CWVALUE,CWLP=0
3097"RTN","CWMAILD",102,0)
3098 . F Q:$L(CWX,";")<(CWLP+1) D
3099"RTN","CWMAILD",103,0)
3100 . . S CWLP=CWLP+1
3101"RTN","CWMAILD",104,0)
3102 . . S CWXA=$P(CWX,";",CWLP) ;CWXA holds the column,width pair
3103"RTN","CWMAILD",105,0)
3104 . . D EN^XPAR("USR.`"_CWDUZ,$P(CWPARM,"|",2),CWLP,CWXA,.CWERR) ;stuff value
3105"RTN","CWMAILD",106,0)
3106 Q CWERR
3107"RTN","CWMAILD",107,0)
3108 ;
3109"RTN","CWMAILD",108,0)
3110%GETSVER(CWDATA,CWPARAM) ;GET SERVER VERSION
3111"RTN","CWMAILD",109,0)
3112 S CWDATA(1)="1^1^"_+$$VERSION^XPDUTL("CWMA")
3113"RTN","CWMAILD",110,0)
3114 Q
3115"RTN","CWMAILD",111,0)
3116%OPENATT(CWDATA,CWPARAM) ;OPEN ATTACHMENTS
3117"RTN","CWMAILD",112,0)
3118 N X
3119"RTN","CWMAILD",113,0)
3120 S X=$$GET^XPAR("ALL","CWMA ALLOW ATTACHMENTS OPEN")
3121"RTN","CWMAILD",114,0)
3122 S CWDATA(1)="1^1^"_$S(X=0:X,1:1)
3123"RTN","CWMAILD",115,0)
3124 Q
3125"RTN","CWMAILD",116,0)
3126%TIMEROF(CWDATA,CWPARAM) ;DISABLE TIMER
3127"RTN","CWMAILD",117,0)
3128 N X
3129"RTN","CWMAILD",118,0)
3130 S X=$$GET^XPAR("ALL","CWMA DISABLE GUIMAIL TIMEOUT")
3131"RTN","CWMAILD",119,0)
3132 S CWDATA(1)="1^1^"_$S(X=0:X,1:1)
3133"RTN","CWMAILD",120,0)
3134 Q
3135"RTN","CWMAILD",121,0)
3136TIMERVAL(CWDATA,CWPARAM) ;TIMEOUT VALUE
3137"RTN","CWMAILD",122,0)
3138 N X
3139"RTN","CWMAILD",123,0)
3140 S X=$$GET^XPAR("ALL","CWMA GUIMAIL TIMEOUT VALUE")
3141"RTN","CWMAILD",124,0)
3142 S CWDATA(1)="1^1^"_$S(X>0:X,1:0)
3143"RTN","CWMAILD",125,0)
3144 Q
3145"RTN","CWMAILE")
31460^12^B13183521
3147"RTN","CWMAILE",1,0)
3148CWMAILE ;INDPLS/PLS- DELPHI VISTA MAIL SERVER CONT'D ;21-Jun-2005 06:34;CLC
3149"RTN","CWMAILE",2,0)
3150 ;;2.3;CWMAIL;;Jul 19, 2005
3151"RTN","CWMAILE",3,0)
3152 Q ;ROUTINE CAN'T BE CALLED DIRECTLY
3153"RTN","CWMAILE",4,0)
3154 ;
3155"RTN","CWMAILE",5,0)
3156GETPKPM(CWDAT) ;get package parameters and return in CWDAT
3157"RTN","CWMAILE",6,0)
3158 ;called by CWMAILD
3159"RTN","CWMAILE",7,0)
3160 ;This API uses the PRECEDENCE field of each parameter
3161"RTN","CWMAILE",8,0)
3162 N CWCNT,CWLP
3163"RTN","CWMAILE",9,0)
3164 S CWCNT=2
3165"RTN","CWMAILE",10,0)
3166 S CWDAT(CWCNT)="[Sound]",CWCNT=CWCNT+1
3167"RTN","CWMAILE",11,0)
3168 S CWDAT(CWCNT)="Sound="_+$$GET^XPAR("ALL","CWMA SOUND ENABLED"),CWCNT=CWCNT+1
3169"RTN","CWMAILE",12,0)
3170 S CWDAT(CWCNT)="Message Open="_$$GET^XPAR("ALL","CWMA SOUND MESSAGE OPEN"),CWCNT=CWCNT+1
3171"RTN","CWMAILE",13,0)
3172 S CWDAT(CWCNT)="Message Close="_$$GET^XPAR("ALL","CWMA SOUND MESSAGE CLOSE"),CWCNT=CWCNT+1
3173"RTN","CWMAILE",14,0)
3174 S CWDAT(CWCNT)="New Mail="_$$GET^XPAR("ALL","CWMA SOUND NEW MAIL"),CWCNT=CWCNT+1
3175"RTN","CWMAILE",15,0)
3176 S CWDAT(CWCNT)="Priority Mail="_$$GET^XPAR("ALL","CWMA SOUND PRIORITY MAIL"),CWCNT=CWCNT+1
3177"RTN","CWMAILE",16,0)
3178 S CWDAT(CWCNT)="[StartUp]",CWCNT=CWCNT+1
3179"RTN","CWMAILE",17,0)
3180 S CWDAT(CWCNT)="StartUpNewMail="_$$GET^XPAR("ALL","CWMA STARTUP NEW MAIL",1,"E"),CWCNT=CWCNT+1
3181"RTN","CWMAILE",18,0)
3182 S CWDAT(CWCNT)="StartUpOpenMailBox="_$$GET^XPAR("ALL","CWMA STARTUP OPEN MAIL BOX",1,"E"),CWCNT=CWCNT+1
3183"RTN","CWMAILE",19,0)
3184 S CWDAT(CWCNT)="StartUpOpenMailBoxName="_$$GET^XPAR("ALL","CWMA STARTUP MAIL BOX NAME"),CWCNT=CWCNT+1
3185"RTN","CWMAILE",20,0)
3186 S CWDAT(CWCNT)="[General]",CWCNT=CWCNT+1
3187"RTN","CWMAILE",21,0)
3188 S CWDAT(CWCNT)="CreateMessageAttributes="_$$GET^XPAR("ALL","CWMA GENERAL CMA STYLE"),CWCNT=CWCNT+1
3189"RTN","CWMAILE",22,0)
3190 S CWDAT(CWCNT)="MessagePropertiesDefaultTab="_$$GET^XPAR("ALL","CWMA GENERAL MPD TAB"),CWCNT=CWCNT+1
3191"RTN","CWMAILE",23,0)
3192 S CWDAT(CWCNT)="NewMailPollingFrequency="_$$GET^XPAR("ALL","CWMA GENERAL NMP FREQ"),CWCNT=CWCNT+1
3193"RTN","CWMAILE",24,0)
3194 S CWDAT(CWCNT)="MessageDisplayCount="_$$GET^XPAR("ALL","CWMA GENERAL MD COUNT"),CWCNT=CWCNT+1
3195"RTN","CWMAILE",25,0)
3196 S CWDAT(CWCNT)="DefaultVistaPrinter="_$$GET^XPAR("ALL","CWMA GENERAL VISTA PRT"),CWCNT=CWCNT+1
3197"RTN","CWMAILE",26,0)
3198 S CWDAT(CWCNT)="DefaultPrintMode="_+$$GET^XPAR("ALL","CWMA GENERAL PRINTMODE"),CWCNT=CWCNT+1
3199"RTN","CWMAILE",27,0)
3200 S CWDAT(CWCNT)="MessageDisplayColumns="_$$GETCOL,CWCNT=CWCNT+1 ;get column information
3201"RTN","CWMAILE",28,0)
3202 S CWDAT(CWCNT)="AllowAttachments="_$$GET^XPAR("ALL","CWMA ALLOW ATTACHMENTS",1,"E"),CWCNT=CWCNT+1
3203"RTN","CWMAILE",29,0)
3204 S CWDAT(-9900)=CWCNT
3205"RTN","CWMAILE",30,0)
3206 Q $O(CWDAT(1))
3207"RTN","CWMAILE",31,0)
3208 ;
3209"RTN","CWMAILE",32,0)
3210GETCOL() ;retrieve column information for message display
3211"RTN","CWMAILE",33,0)
3212 N CWLP,CWDAA,CWTMP
3213"RTN","CWMAILE",34,0)
3214 S CWTMP=""
3215"RTN","CWMAILE",35,0)
3216 D GETLST^XPAR(.CWDAA,"ALL","CWMA GENERAL MD COL")
3217"RTN","CWMAILE",36,0)
3218 S CWLP=0 F S CWLP=$O(CWDAA(CWLP)) Q:CWLP<1 D
3219"RTN","CWMAILE",37,0)
3220 . S CWTMP=CWTMP_$P(CWDAA(CWLP),U,2)_";"
3221"RTN","CWMAILE",38,0)
3222 Q CWTMP
3223"RTN","CWMAILE",39,0)
3224 ;
3225"RTN","CWMAILE",40,0)
3226GETPRM(CWVAR) ;lookup parameter for a given variable
3227"RTN","CWMAILE",41,0)
3228 ;returns set procedure|parameter
3229"RTN","CWMAILE",42,0)
3230 ; set procedure: 0=single instance, 1=multiple instances
3231"RTN","CWMAILE",43,0)
3232 Q:CWVAR="Sound" "0|CWMA SOUND ENABLED"
3233"RTN","CWMAILE",44,0)
3234 Q:CWVAR="Message Open" "0|CWMA SOUND MESSAGE OPEN"
3235"RTN","CWMAILE",45,0)
3236 Q:CWVAR="Message Close" "0|CWMA SOUND MESSAGE CLOSE"
3237"RTN","CWMAILE",46,0)
3238 Q:CWVAR="Priority Mail" "0|CWMA SOUND PRIORITY MAIL"
3239"RTN","CWMAILE",47,0)
3240 Q:CWVAR="New Mail" "0|CWMA SOUND NEW MAIL"
3241"RTN","CWMAILE",48,0)
3242 Q:CWVAR="StartUpNewMail" "0|CWMA STARTUP NEW MAIL"
3243"RTN","CWMAILE",49,0)
3244 Q:CWVAR="StartUpOpenMailBox" "0|CWMA STARTUP OPEN MAIL BOX"
3245"RTN","CWMAILE",50,0)
3246 Q:CWVAR="StartUpOpenMailBoxName" "0|CWMA STARTUP MAIL BOX NAME"
3247"RTN","CWMAILE",51,0)
3248 Q:CWVAR="CreateMessageAttributes" "0|CWMA GENERAL CMA STYLE"
3249"RTN","CWMAILE",52,0)
3250 Q:CWVAR="MessagePropertiesDefaultTab" "0|CWMA GENERAL MPD TAB"
3251"RTN","CWMAILE",53,0)
3252 Q:CWVAR="NewMailPollingFrequency" "0|CWMA GENERAL NMP FREQ"
3253"RTN","CWMAILE",54,0)
3254 Q:CWVAR="MessageDisplayCount" "0|CWMA GENERAL MD COUNT"
3255"RTN","CWMAILE",55,0)
3256 Q:CWVAR="DefaultVistaPrinter" "0|CWMA GENERAL VISTA PRT"
3257"RTN","CWMAILE",56,0)
3258 Q:CWVAR="DefaultPrintMode" "0|CWMA GENERAL PRINTMODE"
3259"RTN","CWMAILE",57,0)
3260 Q:CWVAR="MessageDisplayColumns" "1|CWMA GENERAL MD COL"
3261"RTN","CWMAILE",58,0)
3262 Q ""
3263"RTN","CWMAILE",59,0)
3264 ;
3265"RTN","CWMAILF")
32660^13^B6688838
3267"RTN","CWMAILF",1,0)
3268CWMAILF ;INDPLS/PLS- DELPHI VISTA MAIL SERVER CONT'D ;21-Jun-2005 06:34;CLC
3269"RTN","CWMAILF",2,0)
3270 ;;2.3;CWMAIL;;Jul 19, 2005
3271"RTN","CWMAILF",3,0)
3272 ;MODIFIED FOR XM*7.1*50
3273"RTN","CWMAILF",4,0)
3274 Q ;ROUTINE CAN'T BE CALLED DIRECTLY
3275"RTN","CWMAILF",5,0)
3276BLDLST(CWDATA,CWDATSRC,CWDCNT) ; build list of messages - called by CWMAILA
3277"RTN","CWMAILF",6,0)
3278 ;Input: CWDATA - pass by reference
3279"RTN","CWMAILF",7,0)
3280 ; CWDATSRC - $NA containing data
3281"RTN","CWMAILF",8,0)
3282 ; CWDCNT - node counter
3283"RTN","CWMAILF",9,0)
3284 ;Return: CWDATA array
3285"RTN","CWMAILF",10,0)
3286 ;CWARY format: piece value
3287"RTN","CWMAILF",11,0)
3288 ; 1 message basket
3289"RTN","CWMAILF",12,0)
3290 ; 2 message ien
3291"RTN","CWMAILF",13,0)
3292 ; 3 message subject
3293"RTN","CWMAILF",14,0)
3294 ; 4 message date sent
3295"RTN","CWMAILF",15,0)
3296 ; 5 not used
3297"RTN","CWMAILF",16,0)
3298 ; 6 message type
3299"RTN","CWMAILF",17,0)
3300 ; 7 confirmation flag
3301"RTN","CWMAILF",18,0)
3302 ; 8 closed flag
3303"RTN","CWMAILF",19,0)
3304 ; 9 info flag
3305"RTN","CWMAILF",20,0)
3306 ; 10 confidential flag
3307"RTN","CWMAILF",21,0)
3308 ; 11 sender ien
3309"RTN","CWMAILF",22,0)
3310 ; 12 broadcast flag
3311"RTN","CWMAILF",23,0)
3312 ; 13 sender name
3313"RTN","CWMAILF",24,0)
3314 ; 14 total # of recipients
3315"RTN","CWMAILF",25,0)
3316 ; 15 total # of replies
3317"RTN","CWMAILF",26,0)
3318 ; 16 priority flag
3319"RTN","CWMAILF",27,0)
3320 ; 17 last response read
3321"RTN","CWMAILF",28,0)
3322 ; 18 message basket sequence number
3323"RTN","CWMAILF",29,0)
3324 ; 19 new message flag
3325"RTN","CWMAILF",30,0)
3326 ; 20 answer message flag
3327"RTN","CWMAILF",31,0)
3328 ;
3329"RTN","CWMAILF",32,0)
3330 S CWDATA(1)="0^AN ERROR HAS OCCURRED"
3331"RTN","CWMAILF",33,0)
3332 N CWVAL,CWMSG,CWMSGSUB,CWMSGDT,CWMAIB,CWMSGBX,CWMSGLP
3333"RTN","CWMAILF",34,0)
3334 N CWARY
3335"RTN","CWMAILF",35,0)
3336 S CWMSG=0,CWDCNT=2,CWMSGLP=0
3337"RTN","CWMAILF",36,0)
3338 ;CALL API TO RETRIEVE MESSAGES
3339"RTN","CWMAILF",37,0)
3340 F S CWMSGLP=$O(@CWDATSRC@(CWMSGLP)) Q:CWMSGLP<1 D
3341"RTN","CWMAILF",38,0)
3342 . S CWARY(1)=+$G(@CWDATSRC@(CWMSGLP,"BSKT"))
3343"RTN","CWMAILF",39,0)
3344 . S CWARY(2)=+$G(@CWDATSRC@(CWMSGLP))
3345"RTN","CWMAILF",40,0)
3346 . S CWARY(3)=$G(@CWDATSRC@(CWMSGLP,"SUBJ"))
3347"RTN","CWMAILF",41,0)
3348 . S CWARY(4)=$P($G(@CWDATSRC@(CWMSGLP,"DATE")),U)
3349"RTN","CWMAILF",42,0)
3350 . I CWARY(4)?1.N1".".N S CWARY(4)=$$FMDTE^CWMAIL4(CWARY(4),"5MZ")
3351"RTN","CWMAILF",43,0)
3352 . E S CWARY(4)=$$FMDTE^CWMAIL4($$CONVERT^XMXUTIL1(CWARY(4),1),"5MZ")
3353"RTN","CWMAILF",44,0)
3354 . S CWARY(18)=$G(@CWDATSRC@(CWMSGLP,"SEQN"))
3355"RTN","CWMAILF",45,0)
3356 . S CWARY(19)=+$G(@CWDATSRC@(CWMSGLP,"NEW"))
3357"RTN","CWMAILF",46,0)
3358 . S CWDATA(CWDCNT)=$$ADDMP^CWMAIL0(CWARY(2),.CWARY)
3359"RTN","CWMAILF",47,0)
3360 . S CWDCNT=CWDCNT+1
3361"RTN","CWMAILF",48,0)
3362 Q
3363"RTN","CWMAILF",49,0)
3364 ;
3365"RTN","CWMAILF",50,0)
3366%MSGISRC(CWDATA,CWINPUT) ;SEARCH FOR A PARTICULAR MESSAGE NUMBER
3367"RTN","CWMAILF",51,0)
3368 ;CWINPUT - IEN of Message
3369"RTN","CWMAILF",52,0)
3370 N CWI,CWMIEN,CWDATT,CWDCNT
3371"RTN","CWMAILF",53,0)
3372 K CWDATA
3373"RTN","CWMAILF",54,0)
3374 S CWDCNT=2
3375"RTN","CWMAILF",55,0)
3376 S CWMIEN=+$P($G(CWINPUT),";")
3377"RTN","CWMAILF",56,0)
3378 I $$ACCESS^XMXSEC(XMDUZ,CWMIEN) D
3379"RTN","CWMAILF",57,0)
3380 . D MSGINIT(CWMIEN,.CWDATT)
3381"RTN","CWMAILF",58,0)
3382 . D BLDLST(.CWDATA,$NA(CWDATT),.CWDCNT)
3383"RTN","CWMAILF",59,0)
3384 . ;S CWDATA(1)="1^^DATA HAS BEEN FOUND"
3385"RTN","CWMAILF",60,0)
3386 ;E S CWDATA(1)="1^^Message not found or you don't have access to it."
3387"RTN","CWMAILF",61,0)
3388 I $O(CWDATA(1)) S CWDATA(1)="1^^DATA HAS BEEN FOUND"
3389"RTN","CWMAILF",62,0)
3390 E S CWDATA(1)="1^^Message not found or you lack access to it."
3391"RTN","CWMAILF",63,0)
3392 S $P(CWDATA(1),U,2)=CWDCNT-2
3393"RTN","CWMAILF",64,0)
3394MSGISRCE Q
3395"RTN","CWMAILF",65,0)
3396 ;
3397"RTN","CWMAILF",66,0)
3398MSGINIT(CWMIEN,CWDATT) ;Individual Message Pre-processor
3399"RTN","CWMAILF",67,0)
3400 N CWIM,CWINSTR,CWIU
3401"RTN","CWMAILF",68,0)
3402 D INMSG^XMXUTIL2(XMDUZ,"",CWMIEN,,,.CWIM,.CWINSTR,.CWIU)
3403"RTN","CWMAILF",69,0)
3404 S CWDATT(1)=CWMIEN
3405"RTN","CWMAILF",70,0)
3406 S CWDATT(1,"DATE")=$G(CWIM("DATE"))
3407"RTN","CWMAILF",71,0)
3408 S CWDATT(1,"SUBJ")=$G(CWIM("SUBJ"))
3409"RTN","CWMAILF",72,0)
3410 S CWDATT(1,"SEQN")=""
3411"RTN","CWMAILF",73,0)
3412 S CWDATT(1,"BSKT")=$$BSKT^XMXUTIL2(XMDUZ,CWMIEN,1)
3413"RTN","CWMAILF",74,0)
3414 S CWDATT(1,"NEW")=$G(CWIU("NEW"))>0
3415"RTN","CWMAILF",75,0)
3416 Q
3417"RTN","CWMAINI")
34180^14^B9313045
3419"RTN","CWMAINI",1,0)
3420CWMAINI ;INDPLS/PLS - KIDS INITS FOR GUIMail INSTALL ;20-Jul-2005 14:46;CLC;
3421"RTN","CWMAINI",2,0)
3422 ;;2.3;CWMAIL;;Jul 19, 2005
3423"RTN","CWMAINI",3,0)
3424 ; Environment Check
3425"RTN","CWMAINI",4,0)
3426EC D VCHK("RPC BROKER",1.1) ;RPC Broker
3427"RTN","CWMAINI",5,0)
3428 D PCHK("DI*21.0*34") ;Fileman/Delphi Components
3429"RTN","CWMAINI",6,0)
3430 D PCHK("XM*7.1*50") ;MailMan Patch
3431"RTN","CWMAINI",7,0)
3432 D PCHK("XM*7.1*73") ;MailMan Patch to $$CONVERT^XMXUTIL1
3433"RTN","CWMAINI",8,0)
3434 D PCHK("XU*8.0*71") ;Kernel date formatting patch
3435"RTN","CWMAINI",9,0)
3436 D PCHK("XT*7.3*26") ;Kernel Tool-Kit Generic Parameters
3437"RTN","CWMAINI",10,0)
3438 S:$G(XPDENV) XPDDIQ("XPZ1")=0 ;force Disable Options/Protocols prompt to NO
3439"RTN","CWMAINI",11,0)
3440 Q
3441"RTN","CWMAINI",12,0)
3442VCHK(CWP,CWV) ;CHECK VERSION OF PASSED PACKAGE
3443"RTN","CWMAINI",13,0)
3444 D:$$VERSION^XPDUTL(CWP)<CWV MES("Requires at least version "_CWV_" of the "_CWP_".")
3445"RTN","CWMAINI",14,0)
3446 Q
3447"RTN","CWMAINI",15,0)
3448PCHK(CWPATCH) ;CHECK PATCH INSTALLATION
3449"RTN","CWMAINI",16,0)
3450 D:'$$PATCH^XPDUTL(CWPATCH) MES("Requires that patch "_CWPATCH_" be installed.")
3451"RTN","CWMAINI",17,0)
3452 Q
3453"RTN","CWMAINI",18,0)
3454MES(X) D BMES^XPDUTL(X)
3455"RTN","CWMAINI",19,0)
3456 S XPDQUIT=1
3457"RTN","CWMAINI",20,0)
3458 Q
3459"RTN","CWMAINI",21,0)
3460 ;Post Installation
3461"RTN","CWMAINI",22,0)
3462EN ;entry point for post installation functions
3463"RTN","CWMAINI",23,0)
3464 ;
3465"RTN","CWMAINI",24,0)
3466 D ^CWMAPP ;populate package parameters
3467"RTN","CWMAINI",25,0)
3468 D EN^CWMACPPI ;convert CWMAIL1 to Generic Parameter Utility
3469"RTN","CWMAINI",26,0)
3470 D UPCURVER(2.3) ;make sure current version is updated
3471"RTN","CWMAINI",27,0)
3472 ;D PDEL890 ;prompt for deletion of File 890 CW GUI VISTA MAIL USER
3473"RTN","CWMAINI",28,0)
3474 D MMSG ;send mail message indicating package installation
3475"RTN","CWMAINI",29,0)
3476 Q
3477"RTN","CWMAINI",30,0)
3478MMSG ;send mail message to Indianapolis indicating CW GUIMail installation
3479"RTN","CWMAINI",31,0)
3480 ;
3481"RTN","CWMAINI",32,0)
3482 N CWSUBJ,CWRECP,CWBODY
3483"RTN","CWMAINI",33,0)
3484 S CWBODY=$NA(^TMP($J,"CWBODY"))
3485"RTN","CWMAINI",34,0)
3486 S CWSUBJ="GUIMail Installation at "_$G(^XMB("NETNAME"))
3487"RTN","CWMAINI",35,0)
3488 S ^TMP($J,"CWBODY",1)="GUIMail has just been installed at: "_$G(^XMB("NETNAME"))_"."
3489"RTN","CWMAINI",36,0)
3490 S ^TMP($J,"CWBODY",2)="Version #: 2.3" ;_$$VERSION^XPDUTL("CWMA") ;set version number
3491"RTN","CWMAINI",37,0)
3492 S ^TMP($J,"CWBODY",3)="Installer: "_$P($G(^VA(200,+$G(DUZ),0)),U)
3493"RTN","CWMAINI",38,0)
3494 S CWRECP("G.GUIMAIL@INDIANAPOLIS.VA.GOV")=""
3495"RTN","CWMAINI",39,0)
3496 D SENDMSG^XMXAPI(DUZ,CWSUBJ,CWBODY,.CWRECP)
3497"RTN","CWMAINI",40,0)
3498 K ^TMP($J,"CWBODY")
3499"RTN","CWMAINI",41,0)
3500 Q
3501"RTN","CWMAINI",42,0)
3502 ;
3503"RTN","CWMAINI",43,0)
3504PDEL890 ;I $$READY("Do you wish to remove the file at this time","NO") D
3505"RTN","CWMAINI",44,0)
3506 ;. N DIU
3507"RTN","CWMAINI",45,0)
3508 ;. S DIU="^CWMAIL1(",DIU(0)="DST" D EN^DIU2
3509"RTN","CWMAINI",46,0)
3510 ;E D
3511"RTN","CWMAINI",47,0)
3512 ;. W !,"OK. You may delete later by executing D PDEL890^CWMAINI."
3513"RTN","CWMAINI",48,0)
3514 D BMES^XPDUTL("Removing CW GUI VISTA MAIL USER (890) File ...")
3515"RTN","CWMAINI",49,0)
3516 N DIU
3517"RTN","CWMAINI",50,0)
3518 S DIU="^CWMAIL1(",DIU(0)="DST" D EN^DIU2
3519"RTN","CWMAINI",51,0)
3520 Q
3521"RTN","CWMAINI",52,0)
3522UPCURVER(VER) ;
3523"RTN","CWMAINI",53,0)
3524 N IEN,CWFDA
3525"RTN","CWMAINI",54,0)
3526 S IEN=$$FIND1^DIC(9.4,"","B","CW GUIMail","B","","OUT")
3527"RTN","CWMAINI",55,0)
3528 I IEN D
3529"RTN","CWMAINI",56,0)
3530 .Q:$G(^DIC(9.4,IEN,"VERSION"))=VER
3531"RTN","CWMAINI",57,0)
3532 .S CWFDA(9.4,IEN_",",13)=VER
3533"RTN","CWMAINI",58,0)
3534 .D FILE^DIE("","CWFDA")
3535"RTN","CWMAINI",59,0)
3536 Q
3537"RTN","CWMAINI",60,0)
3538READY(CWPRMPT,CWDEF) ; Prompts user for input
3539"RTN","CWMAINI",61,0)
3540 ;Input - CWPRMPT - will set DIR("A" to this value
3541"RTN","CWMAINI",62,0)
3542 ; CWDEF - will set DIR("B" to this value
3543"RTN","CWMAINI",63,0)
3544 ;Output - returns a 1(yes) or 0(no)
3545"RTN","CWMAINI",64,0)
3546 N DIR,X,Y
3547"RTN","CWMAINI",65,0)
3548 W !!," * * * * WARNING * * * *"
3549"RTN","CWMAINI",66,0)
3550 W !!," You are about to remove file 890. This file held"
3551"RTN","CWMAINI",67,0)
3552 W !!," personal preferences for GUIMail v2.0. All of the settings"
3553"RTN","CWMAINI",68,0)
3554 W !!," should have been moved to the Generic Parameter File"
3555"RTN","CWMAINI",69,0)
3556 W !!," during installation.",!!
3557"RTN","CWMAINI",70,0)
3558 S DIR("B")=$G(CWDEF,"NO")
3559"RTN","CWMAINI",71,0)
3560 S DIR(0)="Y"
3561"RTN","CWMAINI",72,0)
3562 D ^DIR Q:Y 1 ; answered YES
3563"RTN","CWMAINI",73,0)
3564 Q 0 ; answered NO
3565"RTN","CWMAPP")
35660^15^B806108
3567"RTN","CWMAPP",1,0)
3568CWMAPP ; Export Package Level Parameters ;21-Jun-2005 06:34;CLC
3569"RTN","CWMAPP",2,0)
3570 ;;2.3;CWMAIL;;Jul 19, 2005
3571"RTN","CWMAPP",3,0)
3572 ;;
3573"RTN","CWMAPP",4,0)
3574MAIN ; main (initial) parameter transport routine
3575"RTN","CWMAPP",5,0)
3576 K ^TMP($J,"XPARRSTR")
3577"RTN","CWMAPP",6,0)
3578 N ENT,IDX,ROOT,REF,VAL,I
3579"RTN","CWMAPP",7,0)
3580 S ROOT=$NAME(^TMP($J,"XPARRSTR")),ROOT=$E(ROOT,1,$L(ROOT)-1)_","
3581"RTN","CWMAPP",8,0)
3582 D ^CWMAPP01
3583"RTN","CWMAPP",9,0)
3584XX2 S IDX=0,ENT="PKG."_"CW GUIMail"
3585"RTN","CWMAPP",10,0)
3586 F S IDX=$O(^TMP($J,"XPARRSTR",IDX)) Q:'IDX D
3587"RTN","CWMAPP",11,0)
3588 . N PAR,INST,VAL,ERR
3589"RTN","CWMAPP",12,0)
3590 . S PAR=$P(^TMP($J,"XPARRSTR",IDX,"KEY"),U),INST=$P(^("KEY"),U,2)
3591"RTN","CWMAPP",13,0)
3592 . M VAL=^TMP($J,"XPARRSTR",IDX,"VAL")
3593"RTN","CWMAPP",14,0)
3594 . D EN^XPAR(ENT,PAR,INST,.VAL,.ERR)
3595"RTN","CWMAPP",15,0)
3596 K ^TMP($J,"XPARRSTR")
3597"RTN","CWMAPP",16,0)
3598 Q
3599"RTN","CWMAPP01")
36000^16^B2776736
3601"RTN","CWMAPP01",1,0)
3602CWMAPP01 ; ;21-Jun-2005 06:34;CLC
3603"RTN","CWMAPP01",2,0)
3604 ;;2.3;CWMAIL;;Jul 19, 2005
3605"RTN","CWMAPP01",3,0)
3606 ;;
3607"RTN","CWMAPP01",4,0)
3608LOAD ; load data into ^TMP (expects ROOT to be defined)
3609"RTN","CWMAPP01",5,0)
3610 S I=1 F S REF=$T(DATA+I) Q:REF="" S VAL=$T(DATA+I+1) D
3611"RTN","CWMAPP01",6,0)
3612 . S I=I+2,REF=$P(REF,";",3,999),VAL=$P(VAL,";",3,999)
3613"RTN","CWMAPP01",7,0)
3614 . S @(ROOT_REF)=VAL
3615"RTN","CWMAPP01",8,0)
3616 Q
3617"RTN","CWMAPP01",9,0)
3618DATA ; parameter data
3619"RTN","CWMAPP01",10,0)
3620 ;;2,"KEY")
3621"RTN","CWMAPP01",11,0)
3622 ;;CWMA STARTUP NEW MAIL^1
3623"RTN","CWMAPP01",12,0)
3624 ;;2,"VAL")
3625"RTN","CWMAPP01",13,0)
3626 ;;True
3627"RTN","CWMAPP01",14,0)
3628 ;;4,"KEY")
3629"RTN","CWMAPP01",15,0)
3630 ;;CWMA GENERAL MD COL^1
3631"RTN","CWMAPP01",16,0)
3632 ;;4,"VAL")
3633"RTN","CWMAPP01",17,0)
3634 ;;0,5
3635"RTN","CWMAPP01",18,0)
3636 ;;5,"KEY")
3637"RTN","CWMAPP01",19,0)
3638 ;;CWMA GENERAL MD COL^2
3639"RTN","CWMAPP01",20,0)
3640 ;;5,"VAL")
3641"RTN","CWMAPP01",21,0)
3642 ;;1,25
3643"RTN","CWMAPP01",22,0)
3644 ;;6,"KEY")
3645"RTN","CWMAPP01",23,0)
3646 ;;CWMA GENERAL MD COL^3
3647"RTN","CWMAPP01",24,0)
3648 ;;6,"VAL")
3649"RTN","CWMAPP01",25,0)
3650 ;;2,60
3651"RTN","CWMAPP01",26,0)
3652 ;;7,"KEY")
3653"RTN","CWMAPP01",27,0)
3654 ;;CWMA GENERAL MD COL^4
3655"RTN","CWMAPP01",28,0)
3656 ;;7,"VAL")
3657"RTN","CWMAPP01",29,0)
3658 ;;3,250
3659"RTN","CWMAPP01",30,0)
3660 ;;8,"KEY")
3661"RTN","CWMAPP01",31,0)
3662 ;;CWMA GENERAL MD COL^5
3663"RTN","CWMAPP01",32,0)
3664 ;;8,"VAL")
3665"RTN","CWMAPP01",33,0)
3666 ;;4,200
3667"RTN","CWMAPP01",34,0)
3668 ;;9,"KEY")
3669"RTN","CWMAPP01",35,0)
3670 ;;CWMA GENERAL MD COL^6
3671"RTN","CWMAPP01",36,0)
3672 ;;9,"VAL")
3673"RTN","CWMAPP01",37,0)
3674 ;;5,47
3675"RTN","CWMAPP01",38,0)
3676 ;;18,"KEY")
3677"RTN","CWMAPP01",39,0)
3678 ;;CWMA SOUND ENABLED^1
3679"RTN","CWMAPP01",40,0)
3680 ;;18,"VAL")
3681"RTN","CWMAPP01",41,0)
3682 ;;False
3683"RTN","CWMAPP01",42,0)
3684 ;;40,"KEY")
3685"RTN","CWMAPP01",43,0)
3686 ;;CWMA GENERAL MD COL^7
3687"RTN","CWMAPP01",44,0)
3688 ;;40,"VAL")
3689"RTN","CWMAPP01",45,0)
3690 ;;6,38
3691"RTN","CWMAPP01",46,0)
3692 ;;42,"KEY")
3693"RTN","CWMAPP01",47,0)
3694 ;;CWMA GENERAL CMA STYLE^1
3695"RTN","CWMAPP01",48,0)
3696 ;;42,"VAL")
3697"RTN","CWMAPP01",49,0)
3698 ;;Use Menu
3699"RTN","CWMAPP01",50,0)
3700 ;;43,"KEY")
3701"RTN","CWMAPP01",51,0)
3702 ;;CWMA GENERAL MPD TAB^1
3703"RTN","CWMAPP01",52,0)
3704 ;;43,"VAL")
3705"RTN","CWMAPP01",53,0)
3706 ;;Recipients
3707"RTN","CWMAPP01",54,0)
3708 ;;44,"KEY")
3709"RTN","CWMAPP01",55,0)
3710 ;;CWMA GENERAL NMP FREQ^1
3711"RTN","CWMAPP01",56,0)
3712 ;;44,"VAL")
3713"RTN","CWMAPP01",57,0)
3714 ;;5
3715"RTN","CWMAPP01",58,0)
3716 ;;45,"KEY")
3717"RTN","CWMAPP01",59,0)
3718 ;;CWMA GENERAL MD COUNT^1
3719"RTN","CWMAPP01",60,0)
3720 ;;45,"VAL")
3721"RTN","CWMAPP01",61,0)
3722 ;;8
3723"RTN","CWMAPP01",62,0)
3724 ;;46,"KEY")
3725"RTN","CWMAPP01",63,0)
3726 ;;CWMA GENERAL PRINTMODE^1
3727"RTN","CWMAPP01",64,0)
3728 ;;46,"VAL")
3729"RTN","CWMAPP01",65,0)
3730 ;;Vista
3731"RTN","CWMAPP01",66,0)
3732 ;;66,"KEY")
3733"RTN","CWMAPP01",67,0)
3734 ;;CWMA ALLOW ATTACHMENTS^1
3735"RTN","CWMAPP01",68,0)
3736 ;;66,"VAL")
3737"RTN","CWMAPP01",69,0)
3738 ;;True
3739"VER")
37408.0^22.0
3741**END**
3742**END**
Note: See TracBrowser for help on using the repository browser.