XMXUTIL ;ISC-SF/GMB-Message & Mailbox Utilities ;06/19/2002 07:39
Source file <XMXUTIL.m>
| Name | Comments | DBIA/ICR reference | 
|---|---|---|
| WAIT | ;
 | 
 
  | 
| PAGE(XMABORT) | ;
 | 
 
  | 
| NEWS(XMDUZ,XMTEST) | ;
 ; Given: ; XMDUZ User's DUZ ; XMTEST 0=this is not a test. (DEFAULT) ; (Field 1.12 LAST NEW MSG NOTIFY DATE/TIME may be updated) ; 1=this is just a test. ; (Field 1.12 will not be updated) ; Returns: ; -1 If no record of this user ; 0 If no new mail ; Otherwise, if the user has new mail, returns an ^-delimited string: ; Piece 1: # New Msgs ; Piece 2: Does the user have new priority mail? (1=yes;0=no) ; Piece 3: # New Msgs in IN basket ; Piece 4: Date/Time (FileMan) that the last msg was received ; Piece 5: Have there been any new messages since the last time ; this function was called? (1=yes;0=no) ; And for the first priority read basket with new messages in it: ; (If none has new messages, then first priority read basket) ; Piece 6: # New Msgs in basket ; Piece 7: Basket IEN ; Piece 8: Basket name  | 
 
  | 
| TNMSGCT(XMDUZ) | ; Total new msg count
 | 
 
  | 
| BNMSGCT(XMDUZ,XMK) | ; Basket new msg count
 | 
 
  | 
| TPMSGCT(XMDUZ) | ; Total new priority msg count
 | 
 
  | 
| BPMSGCT(XMDUZ,XMK) | ; Basket new priority msg count
 | 
 
  | 
| TMSGCT(XMDUZ) | ; Total msg count
 | 
 
  | 
| BMSGCT(XMDUZ,XMK) | ; Basket msg count
 | 
 
  | 
| KVAPOR(XMDUZ,XMK,XMZ,XMVAPOR,XMIU) | ; Set/delete a message's vaporize date in user's basket
 ; XMVAPOR ="@" delete it ; =FM date/time set/change it  | 
 
  | 
| BSKTNAME(XMDUZ,XMK) | ; What's the name of this basket for this user?
 | 
 
  | 
| NAME(XMID,XMIT) | ; Given a name or DUZ, return the name
 ; XMID user's DUZ or name ; XMIT 1=if DUZ, return institution and title, too, if needed ; 0=just return the name (default)  | 
 
  | 
| NETNAME(XMDUZ) | ; Given a DUZ or a string, return an internet name @ site name.
 | 
 
  | 
| LOCK(XMDOOR,XMLOCKED,XMWAIT) | ; Lock a global (** NOT USED **)
 | 
|
| MAKENEW(XMDUZ,XMK,XMZ,XMLOCKIT) | ; Make a message new
 ; Should lock before calling AND unlock after. ; If you set XMLOCKIT=1, I'll do the locking for you.  | 
 
  | 
| INCRNEW(XMDUZ,XMK,XMCNT) | ; Increment the number of new messages in a basket
 ; For internal use only!  | 
|
| NONEW(XMDUZ,XMK,XMZ,XMLOCKIT) | ; Make a message not new
 ; Should lock before calling AND unlock after. ; If you set XMLOCKIT=1, I'll do the locking for you.  | 
 
  | 
| DECRNEW(XMDUZ,XMK,XMCNT) | ; Decrement the number of new messages in a basket
 ; For internal use only!  | 
|
| KILLMSG(DA) | ; For internal MM use only.  Kill a msg in ^XMB(3.9
 | 
|
| LASTACC(XMDUZ,XMK,XMZ,XMRESP,XMIM,XMINSTR,XMIU,XMCONFRM) | ; Note first, last accesses, number of responses read
 ; in: ; XMDUZ,XMK,XMZ the usual. If message not in basket, set XMK=0. ; XMRESP last response read this time ; XMIM "SUBJ", "FROM" ; XMINSTR "FLAGS" ; XMIU "IEN", "RESP" ; out: ; XMCONFRM Confirmation message was sent to message sender (0=no; 1=yes)  | 
 
  | 
| ERRSET(XMID,XMPARM,XMZ) | ; For internal MailMan use only.
 | 
| FileNo | Call Tags | 
|---|---|
| ^XMB(3.9 - [#3.9] | Classic Fileman Calls |