Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: XMXSEC3

XMXSEC3.m

Go to the documentation of this file.
  1. XMXSEC3 ;ISC-SF/GMB-Message security and restrictions (cont.) ;04/18/2002 08:01
  1. ;;8.0;MailMan;;Jun 28, 2002
  1. ; All entry points covered by DBIA 2733.
  1. OPTWNO(XMORIGN8) ; Surrogate does not have 'write' privilege.
  1. D Q("A",37401.5) ; You need 'send' privilege to Answer a message.
  1. D Q("C",37403.5) ; You need 'send' privilege to Copy a message.
  1. D Q("E",37405.5) ; You need 'send' privilege to Edit a message.
  1. I XMORIGN8 D Q("IN",37409.5) ; You need 'send' privilege to toggle 'Information only'.
  1. E D Q("IN",37409.1) ; Only the originator may toggle 'Information only'.
  1. D Q("W",37444.5) ; You need 'send' privilege to Write (send) a message.
  1. Q
  1. Q(XMCD,XMDN) ;
  1. I $G(XMQDNUM) S XMOPT(XMCD,"?")=XMDN Q
  1. S XMOPT(XMCD,"?")=$$EZBLD^DIALOG(XMDN)
  1. Q
  1. DOSHARE(XMDUZ,XMK,XMORIGN8,XMINSTR) ;
  1. N I,XMNO
  1. S XMNO=$S($G(XMQDNUM):37462,1:$$EZBLD^DIALOG(37462)) ; You may not do this in SHARED,MAIL.
  1. F I="A","E","IN","K","L","N","W","X" S XMOPT(I,"?")=XMNO
  1. Q:XMORIGN8
  1. D Q("C",37403.6) ; Only the originator may Copy a message in SHARED,MAIL.
  1. D Q("F",37406.6) ; Only the originator may Forward a message from SHARED,MAIL.
  1. I XMK,$S($D(^XUSEC("XMMGR",DUZ)):0,$D(^XMB(3.7,"AB",DUZ,.5)):0,1:1) D
  1. . N DIR,I
  1. . ; You must be the originator, hold the XMMGR key,
  1. . ; or be a POSTMASTER surrogate to do this in SHARED,MAIL.
  1. . I $G(XMQDNUM) D Q
  1. . . F I="D","S","T","V" S XMOPT(I,"?")=37461
  1. . D BLD^DIALOG(37461,"","","DIR(""?"")")
  1. . F I="D","S","T","V" M XMOPT(I,"?")=DIR("?")
  1. Q
  1. DOPOST ; You may not do this with messages in the transmit queues.
  1. N XMNO,I
  1. S XMNO=$S($G(XMQDNUM):37251,1:$$EZBLD^DIALOG(37251))
  1. F I="A","AA","B","C","E","IN","H","K","L","N","P","R","S","T","V","W","X" S XMOPT(I,"?")=XMNO
  1. K XMOPT("X"),XMOX("X",XMOX("O","X")),XMOX("O","X")
  1. D SET^XMXSEC2("X",37447,.XMOPT,.XMOX) ; Xmit Priority Toggle
  1. Q