home *** CD-ROM | disk | FTP | other *** search
- /* to broadcast to interested parties about changes in mailboxes */
-
- /* action = 'addtomailbox', 'deletefrommailbox', 'refreshmailbox', 'refreshmailboxentry' */
-
- parse arg action mailbox magiccookie .
-
- call addlib("rexxsupport.library", 0, -30, 0)
-
- /* who are interested? AVMCALLNOTIFIER, AVMLOGVIEW.#? */
-
- ports = upper(show('p'))
- numports = words(ports)
-
- if action = 'addtomailbox' | action = 'deletefrommailbox' then do
- if showlist('p', 'AVMCALLNOTIFIER') then
- address 'AVMCALLNOTIFIER' action mailbox magiccookie
-
- if showlist('p', 'AVMUSERINTERFACE') then
- address 'AVMUSERINTERFACE' action mailbox magiccookie
-
- do i = 1 to numports
- cport = word(ports, i)
- if pos('AVMLOGVIEW', cport) > 0 then do
- address value cport
- ''action mailbox magiccookie
- end
-
- if pos('AVMSCHEDULER.', cport) > 0 then do
- address value cport
- ''action mailbox magiccookie
- end
-
- if pos('AVMSCHEDULERVIEW', cport) > 0 then do
- address value cport
- ''action mailbox magiccookie
- end
- end
- end
-
- if action = 'refreshmailbox' then do
- if showlist('p', 'AVMCALLNOTIFIER') then
- address 'AVMCALLNOTIFIER' action mailbox
-
- if showlist('p', 'AVMUSERINTERFACE') then
- address 'AVMUSERINTERFACE' action mailbox
-
- do i = 1 to numports
- cport = word(ports, i)
- if pos('AVMLOGVIEW', cport) > 0 then do
- address value cport
- ''action mailbox
- end
-
- if pos('AVMSCHEDULER.', cport) > 0 then do
- address value cport
- ''action mailbox
- end
-
- if pos('AVMSCHEDULERVIEW', cport) > 0 then do
- address value cport
- ''action mailbox
- end
- end
- end
-
- if action = 'refreshmailboxentry' then do
- if showlist('p', 'AVMUSERINTERFACE') then
- address 'AVMUSERINTERFACE' action mailbox magiccookie
-
- do i = 1 to numports
- cport = word(ports, i)
-
- if pos('AVMLOGVIEW', cport) > 0 then do
- address value cport
- ''action mailbox magiccookie
- end
-
- if pos('AVMSCHEDULER.', cport) > 0 then do
- address value cport
- ''action mailbox magiccookie
- end
-
- if pos('AVMSCHEDULERVIEW', cport) > 0 then do
- address value cport
- ''action mailbox magiccookie
- end
- end
- end
-