home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / MISC / PBAPI10.ZIP / APIDOCS.ZIP / MNNNNHDR.DOC < prev    next >
Text File  |  1998-02-21  |  20KB  |  518 lines

  1. Author....... : Gary Price
  2. Copyrighted by: Freejack's Software 1997-98
  3.  
  4. MNNNN_HDR API for TriBBS v10.x/11.x written in PowerBasic v3.5
  5. ---------------------------------------------------------------------------
  6.  
  7. The MNNNN_HDR unit is used to manipulate data in the MNNNN.HDR data file
  8. found in node 1's MWORK directory. The MNNNN_HDR unit is declared in
  9. PBAPI10.INC as follows:
  10.  
  11.  Mnnnn.hdr BitFields Breakdown
  12.  
  13.  MnnnnBit.bit1 BIT Assignment
  14.     0 = EchoMessageFlag
  15.     1 = ThreadedMessageFlag
  16.     2 = PrivateMessageFlag
  17.     3 = DeletedMessageFlag
  18.     4 = ReceivedMessageFlag
  19.     5 = PermanentMessageFlag
  20.     6 = TriTossEchoMessageFlag
  21.     7 = CrashMailFlag
  22.  
  23.  MnnnnBit.bit2 to MnnnnBit.bit10 - All bits are set to 0  (Reserved)
  24.  
  25. Sub Type Structure for 10 byte BitFields
  26. TYPE MnnnnBit
  27.   bit1  AS BYTE
  28.   bit2  AS BYTE
  29.   bit3  AS BYTE
  30.   bit4  AS BYTE
  31.   bit5  AS BYTE
  32.   bit6  AS BYTE
  33.   bit7  AS BYTE
  34.   bit8  AS BYTE
  35.   bit9  AS BYTE
  36.   bit10 AS BYTE
  37. END TYPE
  38.  
  39.  File Name: "Mnnnn.HDR"  where "nnnn" is the Conf Number
  40.  Example: M0001.HDR to M9999.HDR
  41.  
  42.  "c" = 1 to 9999
  43.  "mn" = 1 to 999999
  44.  
  45. TYPE MNNNN
  46.   FromUser                     AS STRING * 61
  47.   ToUser                       AS STRING * 61
  48.   Subject                      AS STRING * 61
  49.   NameOfAttachedFile           AS STRING * 81
  50.   DateAndTime                  AS STRING * 15
  51.   NetMailFromZone              AS INTEGER
  52.   NetMailFromNet               AS INTEGER
  53.   NetMailFromNode              AS INTEGER
  54.   NetMailFromPoint             AS INTEGER
  55.   NetMailToZone                AS INTEGER
  56.   NetMailToNet                 AS INTEGER
  57.   NetMailToNode                AS INTEGER
  58.   NetMailToPoint               AS INTEGER
  59.   OffsetIntoTextFile           AS LONG
  60.   MessageLength                AS LONG
  61.   Number                       AS LONG
  62.   NumberOfMessageThisRepliesTo AS LONG
  63.   FromHash                     AS LONG
  64.   ToHash                       AS LONG
  65.   MnnnnBitFields               AS MnnnnBit
  66.   ReservedDataArea             AS STRING * 695
  67. END TYPE
  68.  
  69. DIM MnnnnBit AS MnnnnBit 
  70. DIM MNNNN    AS SHARED MNNNN
  71. DIM mch      AS SHARED MNNNN PTR
  72.  
  73. mch = VARPTR32(MNNNN)
  74. LSET MNNNN = MNNNN  
  75. ---------------------------------------------------------------------------
  76.  
  77. FUNCTION's below are from the MNNNNH.PBU Unit and DECLAREd in PBAPI10.INC.
  78.  
  79. FUNCTION MNNNN_HDR_OPEN(c AS INTEGER) AS INTEGER
  80. FUNCTION MNNNN_HDR_CLOSE()
  81. FUNCTION MNNNN_HDR_READ(mn AS LONG)
  82. FUNCTION MNNNN_HDR_WRITE(mn AS LONG)
  83. FUNCTION MNNNN_HDR_Length() AS LONG
  84. FUNCTION MNNNN_HDR_OpenRead(c AS INTEGER, mn AS LONG) AS INTEGER
  85. FUNCTION MNNNN_HDR_WriteClose(mn AS LONG)
  86. FUNCTION MNNNN_HDR_OpenReadClose(c AS INTEGER, mn AS LONG) AS INTEGER
  87. FUNCTION MNNNN_HDR_OpenWriteClose(c AS INTEGER, mn AS LONG) AS INTEGER
  88. FUNCTION MNNNN_HDR_Clearit(c AS INTEGER)
  89.  
  90. FUNCTION MNNNN_HDR_Search(mn AS LONG) AS INTEGER
  91. FUNCTION MNNNN_HDR_GetNext(mn AS LONG) AS INTEGER
  92. FUNCTION MNNNN_HDR_GetYourNext(h AS LONG, mn AS LONG) AS INTEGER
  93.  
  94. FUNCTION MNNNN_HDR_GetFU() AS STRING
  95. FUNCTION MNNNN_HDR_PutFU(s AS STRING)
  96. FUNCTION MNNNN_HDR_GetTU() AS STRING
  97. FUNCTION MNNNN_HDR_PutTU(s AS STRING)
  98. FUNCTION MNNNN_HDR_GetMS() AS STRING
  99. FUNCTION MNNNN_HDR_PutMS(s AS STRING)
  100. FUNCTION MNNNN_HDR_GetNOAF() AS STRING
  101. FUNCTION MNNNN_HDR_PutNOAF(s AS STRING)
  102. FUNCTION MNNNN_HDR_GetDAT() AS STRING
  103. FUNCTION MNNNN_HDR_PutDAT(s AS STRING)
  104.  
  105. FUNCTION MNNNN_HDR_GetNMFZ() AS INTEGER
  106. FUNCTION MNNNN_HDR_PutNMFZ(n AS INTEGER)
  107. FUNCTION MNNNN_HDR_GetNMFNet() AS INTEGER
  108. FUNCTION MNNNN_HDR_PutNMFNet(n AS INTEGER)
  109. FUNCTION MNNNN_HDR_GetNMFNode() AS INTEGER
  110. FUNCTION MNNNN_HDR_PutNMFNode(n AS INTEGER)
  111. FUNCTION MNNNN_HDR_GetNMFP() AS INTEGER
  112. FUNCTION MNNNN_HDR_PutNMFP(n AS INTEGER)
  113. FUNCTION MNNNN_HDR_GetNMTZ() AS INTEGER
  114. FUNCTION MNNNN_HDR_PutNMTZ(n AS INTEGER)
  115. FUNCTION MNNNN_HDR_GetNMTNet() AS INTEGER
  116. FUNCTION MNNNN_HDR_PutNMTNet(n AS INTEGER)
  117. FUNCTION MNNNN_HDR_GetNMTNode() AS INTEGER
  118. FUNCTION MNNNN_HDR_PutNMTNode(n AS INTEGER)
  119. FUNCTION MNNNN_HDR_GetNMTP() AS INTEGER
  120. FUNCTION MNNNN_HDR_PutNMTP(n AS INTEGER)
  121. FUNCTION MNNNN_HDR_GetOITF() AS LONG
  122. FUNCTION MNNNN_HDR_PutOITF(n AS LONG)
  123. FUNCTION MNNNN_HDR_GetML() AS LONG
  124. FUNCTION MNNNN_HDR_PutML(n AS LONG)
  125. FUNCTION MNNNN_HDR_GetMN() AS LONG
  126. FUNCTION MNNNN_HDR_PutMN(n AS LONG)
  127. FUNCTION MNNNN_HDR_GetNOMTRT() AS LONG
  128. FUNCTION MNNNN_HDR_PutNOMTRT(n AS LONG)
  129. FUNCTION MNNNN_HDR_GetFH() AS LONG
  130. FUNCTION MNNNN_HDR_PutFH(n AS LONG)
  131. FUNCTION MNNNN_HDR_GetTH() AS LONG
  132. FUNCTION MNNNN_HDR_PutTH(n AS LONG)
  133.  
  134. FUNCTION MNNNN_HDR_GetEMF() AS INTEGER
  135. FUNCTION MNNNN_HDR_PutEMF(n AS INTEGER)
  136. FUNCTION MNNNN_HDR_GetTMF() AS INTEGER
  137. FUNCTION MNNNN_HDR_PutTMF(n AS INTEGER)
  138. FUNCTION MNNNN_HDR_GetPriMF() AS INTEGER
  139. FUNCTION MNNNN_HDR_PutPriMF(n AS INTEGER)
  140. FUNCTION MNNNN_HDR_GetDMF() AS INTEGER
  141. FUNCTION MNNNN_HDR_PutDMF(n AS INTEGER)
  142. FUNCTION MNNNN_HDR_GetRMF() AS INTEGER
  143. FUNCTION MNNNN_HDR_PutRMF(n AS INTEGER)
  144. FUNCTION MNNNN_HDR_GetPerMF() AS INTEGER
  145. FUNCTION MNNNN_HDR_PutPerMF(n AS INTEGER)
  146. FUNCTION MNNNN_HDR_GetTTEMF() AS INTEGER
  147. FUNCTION MNNNN_HDR_PutTTEMF(n AS INTEGER)
  148. FUNCTION MNNNN_HDR_GetCMF() AS INTEGER
  149. FUNCTION MNNNN_HDR_PutCMF(n AS INTEGER)
  150.  
  151. ---------------------------------------------------------------------------
  152.  ** EXTERNAL FUNCTION USED BY MNNNN.HDR UNIT BELOW **
  153.  
  154. FUNCTION Exist(BYVAL Filename AS STRING) AS INTEGER
  155.  
  156. ---------------------------------------------------------------------------
  157.  MPORTANT: TBNode1sMainDirectory must be set to node 1's main directory
  158.  before calling this function.
  159.  
  160.  SPECIAL NOTE! In this Documentation and in all Unit's and .BAS files
  161.                relating to reading in Message Conferences and their
  162.                Messages. Please note the following below.
  163.  
  164.                "c" will stand for Conference Number
  165.                "mn" will stand for Message Number of "c" Conference Number
  166.  
  167.                Previously, "n" was set for Message Number and was defined
  168.                as a SHORT INTEGER. Since TriBBS allows "999,999" messages,
  169.                the newer "mn" will now be defined as a LONG INTEGER for all
  170.                references to the Message's Number.
  171.  
  172.                All other references to "n" can either be a SHORT INTEGER or
  173.                LONG INTEGER depending on the MNNNN Data Record's element.
  174.  
  175. ---------------------------------------------------------------------------
  176.  
  177. MNNNN_HDR_Open(c AS INTEGER) AS INTEGER
  178.  The MNNNN_HDR_Open function opens the Mnnnn.HDR data file, where nnnn is
  179.  specified by "c", in node 1's MWORK directory.  Also, this function will
  180.  return either 0 or 1 depending if the file exists or not.
  181.  
  182.     0 = MNNNN.HDR does not exist and file was not open.
  183.     1 = MNNNN.HDR did exist and the file was opened.
  184.  
  185. MNNNN_HDR_Close()
  186.  The MNNNN_HDR_Close function closes the Mnnnn.HDR data file in node 1's
  187.  MWORK directory.
  188.  
  189. MNNNN_HDR_Read(mn AS LONG)
  190.  The MNNNN_HDR_Read function reads the record for message header "mn" into
  191.  memory.
  192.  
  193. MNNNN_HDR_Write(mn AS LONG)
  194.  The MNNNN_HDR_Write function updates the record for message header "mn" from
  195.  memory.
  196.  
  197. MNNNN_HDR_Length() AS LONG
  198.  The MNNNN_HDR_Length function returns the number of records in the Mnnnn.HDR
  199.  data file.
  200.  
  201. MNNNN_HDR_OpenRead(c AS INTEGER, mn AS LONG) AS INTEGER
  202.  The MNNNN_HDR_OpenRead function provides the functionality of the
  203.  MNNNN_HDR_Open and MNNNN_HDR_Read functions in a single function call.
  204.  Also, this function will return either 0 or 1 depending if the file exists
  205.  or not.
  206.  
  207.     0 = MNNNN.HDR does not exist and file was not open.
  208.     1 = MNNNN.HDR did exist and the file was opened.
  209.  
  210. MNNNN_HDR_WriteClose(mn AS LONG)
  211.  The MNNNN_HDR_WriteClose function provides the functionality of the
  212.  MNNNN_HDR_Write and MNNNN_HDR_Close functions in a single function call.
  213.  
  214. MNNNN_HDR_OpenReadClose(c AS INTEGER, mn AS LONG) AS INTEGER
  215.  The MNNNN_HDR_OpenReadClose function provides the functionality of the
  216.  MNNNN_HDR_Open, MNNNN_HDR_Read, and MNNNN_HDR_Close functions in a single
  217.  function call.  Also, this function will return either 0 or 1 depending if
  218.  the file exists or not.
  219.  
  220.     0 = MNNNN.HDR does not exist and file was not open.
  221.     1 = MNNNN.HDR did exist and the file was opened.
  222.  
  223. MNNNN_HDR_OpenWriteClose(c AS INTEGER, mn AS LONG)
  224.  The MNNNN_HDR_OpenWriteClose function provides the functionality of the
  225.  MNNNN_HDR_Open, MNNNN_HDR_Write, and MNNNN_HDR_Close functions in a single
  226.  function call.
  227.  
  228. MNNNN_HDR_ClearIt(c AS INTEGER)
  229.  The MNNNN_HDR_ClearIt Function sets the entire MNNNN_HDR data record for 'c'
  230.  to all zeros, leaving the data record in place, but empty.
  231.  
  232. -----------------------------------------------------------------------------
  233. ATTENTION: Pointer Varible "@mn" has changed to "@mc".
  234.  
  235. POINTERS Uses a hidden variable I use called "@mc". Any reference to this is
  236. only for your information for discussion in this doc file. You will not need
  237. to concern yourself trying to use this.. All calls are handled in the main
  238. MNNNNH.PBU Unit by my routines automatically. In other words, I am trying to
  239. keep Pointers as easy as possible for your use. :)
  240.  
  241. Also, all calls to any Functions which gets data with the string routines
  242. will auto-trim each string's extra spaces and the null terminator, CHR$(0),
  243. off so printing will be easier for you to manipulate. When calling the string
  244. routines to put data back into the string space, all string data will be
  245. resized to fit the farea.dat type structure and will add the null terminator
  246. back to the end of the string. Just remember, when working the data in memory
  247. with the pointer calls, you still have to write the data back to the MNNNN.HDR
  248. in order for the changes to become permanent.
  249.  
  250. -----------------------------------------------------------------------------
  251. MNNNN_HDR_Search(mn AS LONG) AS INTEGER
  252.  The MNNNN_HDR_Search function searches the header file for message number
  253.  "mn". If message number "mn" is found in the header file,
  254.  the MNNNN_HDR_Search function will return the message header's record number.
  255.  Otherwise, the MNNNN_HDR_Search function will return -1 to indicate that
  256.  message number "mn" was not found in the header file.
  257.  
  258. MNNNN_HDR_GetNext(mn AS LONG) AS INTEGER
  259.  The MNNNN_HDR_GetNext function searches the header file for the next message
  260.  after message number "mn". If a next message is found, the MNNNN_HDR_GetNext
  261.  function will return the message header's record number. Otherwise, the
  262.  MNNNN_HDR_GetNext function will return -1 to indicate that a next message
  263.  was not found in the header file.
  264.  
  265. MNNNN_HDR_GetYourNext(h AS LONG, mn AS LONG) AS INTEGER
  266.  The MNNNN_HDR_GetYourNext function searches the header file for the next
  267.  message addressed to the user with a hash value of "h" and comes after
  268.  message number "mn". If a your next message is found, the
  269.  MNNNN_HDR_GetYourNext function will return the message header's record
  270.  number. Otherwise, the MNNNN_HDR_GetYourNext function will return -1 to
  271.  indicate that a your next message was not found in the header file.
  272.  
  273. MNNNN_HDR_GetFU() AS STRING
  274.  This form of the MNNNN_HDR_GetFU function returns a pointer to the message's
  275.  from string.
  276.  
  277. MNNNN_HDR_PutFU(s AS STRING)
  278.  This form of the MNNNN_HDR_PutFU function sets the message's from string to
  279.  the string pointed to by "s". Note that the string pointed to by "s" can be
  280.  no more than 60 characters in length.
  281.  
  282. MNNNN_HDR_GetTU() AS STRING
  283.  This form of the MNNNN_HDR_GetTU function returns a pointer to the message's
  284.  to string.
  285.  
  286. MNNNN_HDR_PutTU(s AS STRING)
  287.  This form of the MNNNN_HDR_PutTU function sets the message's to string to
  288.  the string pointed to by "s". Note that the string pointed to by "s" can
  289.  be no more than 60 characters in length.
  290.  
  291. MNNNN_HDR_GetMS() AS STRING
  292.  This form of the MNNNN_HDR_GetMS function returns a pointer to the message's
  293.  subject string.
  294.  
  295. MNNNN_HDR_PutMS(s AS STRING)
  296.  This form of the MNNNN_HDR_PutMS function sets the message's subject string
  297.  to the string pointed to by "s". Note that the string pointed to by "s" can
  298.  be no more than 60 characters in length.
  299.  
  300. MNNNN_HDR_GetNOAF() AS STRING
  301.  This form of the MNNNN_HDR_GetNOAF function returns a pointer to the
  302.  message's name of attached file string.
  303.  
  304. MNNNN_HDR_PutNOAF(s AS STRING)
  305.  This form of the MNNNN_HDR_PutNOAF function sets the message's name of
  306.  attached file string to the string pointed to by "s". Note that the string
  307.  pointed to by "s" can be no more than 80 characters in length.
  308.  
  309. MNNNN_HDR_GetDAT() AS STRING
  310.  This form of the MNNNN_HDR_GetDAT function returns a pointer to the message's
  311.  date and time string.
  312.  
  313. MNNNN_HDR_PutDAT(s AS STRING)
  314.  This form of the MNNNN_HDR_PutDAT function sets the message's date and time
  315.  string to the string pointed to by "s". Note that the string pointed to by
  316.  "s" can be no more than 14 characters in length and must use the format
  317.  "MM/DD/YY HH:MM".
  318.  
  319. MNNNN_HDR_GetNMFZ() AS INTEGER
  320.  This form of the MNNNN_HDR_GetNMFZ function returns the message's netmail
  321.  from zone.
  322.  
  323. MNNNN_HDR_PutNMFZ(n AS INTEGER)
  324.  This form of the MNNNN_HDR_PutNMFZ function sets the message's netmail from
  325.  zone to "n".
  326.  
  327. MNNNN_HDR_GetNMFNet() AS INTEGER
  328.  This form of the MNNNN_HDR_GetNMFNet function returns the message's netmail
  329.  from net.
  330.  
  331. MNNNN_HDR_PutNMFNet(n AS INTEGER)
  332.  This form of the MNNNN_HDR_PutNMFNet function sets the message's netmail
  333.  from net to "n".
  334.  
  335. MNNNN_HDR_GetNMFNode() AS INTEGER
  336.  This form of the MNNNN_HDR_GetNMFNode function returns the message's netmail
  337.  from node.
  338.  
  339. MNNNN_HDR_PutNMFNode(n AS INTEGER)
  340.  This form of the MNNNN_HDR_PutNMFNode function sets the message's netmail
  341.  from node to "n".
  342.  
  343. MNNNN_HDR_GetNMFP() AS INTEGER
  344.  This form of the MNNNN_HDR_GetNMFP function returns the message's netmail
  345.  from point.
  346.  
  347. MNNNN_HDR_PutNMFP(n AS INTEGER)
  348.  This form of the MNNNN_HDR_PutNMFP function sets the message's netmail from
  349.  point to "n".
  350.  
  351. MNNNN_HDR_GetNMTZ() AS INTEGER
  352.  This form of the MNNNN_HDR_GetNMTZ function returns the message's netmail to
  353.  zone.
  354.  
  355. MNNNN_HDR_PutNMTZ(n AS INTEGER)
  356.  This form of the MNNNN_HDR_PutNMTZ function sets the message's netmail to
  357.  zone to "n".
  358.  
  359. MNNNN_HDR_GetNMTNet() AS INTEGER
  360.  This form of the MNNNN_HDR_GetNMTNet function returns the message's netmail
  361.  to net.
  362.  
  363. MNNNN_HDR_PutNMTNet(n AS INTEGER)
  364.  This form of the MNNNN_HDR_PutNMTNet function sets the message's netmail to
  365.  net to "n".
  366.  
  367. MNNNN_HDR_GetNMTNode() AS INTEGER
  368.  This form of the MNNNN_HDR_GetNMTNode function returns the message's netmail
  369.  to node.
  370.  
  371. MNNNN_HDR_PutNMTNode(n AS INTEGER)
  372.  This form of the MNNNN_HDR_PutNMTNode function sets the message's netmail to
  373.  node to "n".
  374.  
  375. MNNNN_HDR_GetNMTP() AS INTEGER
  376.  This form of the MNNNN_HDR_GetNMTP function returns the message's netmail to
  377.  point.
  378.  
  379. MNNNN_HDR_PutNMTP(n AS INTEGER)
  380.  This form of the MNNNN_HDR_PutNMTP function sets the message's netmail to
  381.  point.
  382.  
  383. MNNNN_HDR_GetOITF() AS LONG
  384.  This form of the MNNNN_HDR_GetOITF function returns the message's offset
  385.  into the accompanying Mnnnn.TXT file.
  386.  
  387. MNNNN_HDR_PutOITF(n AS LONG)
  388.  This form of the MNNNN_HDR_PutOITF function sets the message's offset into
  389.  the accompanying Mnnnn.TXT file to "n".
  390.  
  391. MNNNN_HDR_GetML() AS LONG
  392.  This form of the MNNNN_HDR_GetML function returns the message's length.
  393.  
  394. MNNNN_HDR_PutML(n AS LONG)
  395.  This form of the MNNNN_HDR_PutML function sets the message's length.
  396.  
  397. MNNNN_HDR_GetMN() AS LONG
  398.  This form of the MNNNN_HDR_GetMN function returns the message's number.
  399.  
  400. MNNNN_HDR_PutMN(mn AS LONG)
  401.  This form of the MNNNN_HDR_PutMN function sets the message's number to "mn".
  402.  
  403. MNNNN_HDR_GetNOMTRT() AS LONG
  404.  This form of the MNNNN_HDR_GetNOMTRT function returns the number of the
  405.  message this message replies to.
  406.  
  407. MNNNN_HDR_PutNOMTRT(n AS LONG)
  408.  This form of the MNNNN_HDR_PutNOMTRT function sets the number of the message
  409.  this message replies to to "n".
  410.  
  411. MNNNN_HDR_GetFH() AS LONG
  412.  This form of the MNNNN_HDR_GetFH function returns the message's from hash
  413.  value.
  414.  
  415. MNNNN_HDR_PutFH(n AS LONG)
  416.  This form of the MNNNN_HDR_PutFH functions sets the message's from hash
  417.  value to "n".
  418.  
  419. MNNNN_HDR_GetTH() AS LONG
  420.  This form of the MNNNN_HDR_GetTH function returns the message's to hash
  421.  value.
  422.  
  423. MNNNN_HDR_PutTH(n AS LONG)
  424.  This form of the MNNNN_HDR_PutTH function sets the message's to hash value.
  425.  
  426. -----------------------------------------------------------------------------
  427. All BIT Fields below have been converted to Integers to allow easier access
  428. and handling.
  429. -----------------------------------------------------------------------------
  430. MNNNN_HDR_GetEMF() AS INTEGER
  431.  This form of the MNNNN_HDR_GetEMF function returns the message's echo message
  432.  flag.
  433.  
  434. MNNNN_HDR_PutEMF(n AS INTEGER)
  435.  This form of the MNNNN_HDR_PutEMF function sets the message's echo message
  436.  flag to "n". "n" must be in the range of 0 to 1 as follows:
  437.  
  438.     0 =    Do not echo the message.
  439.     1 =    Echo the message.
  440.  
  441. MNNNN_HDR_GetTMF() AS INTEGER
  442.  This form of the MNNNN_HDR_GetTMF function returns the message's threaded
  443.  message flag.
  444.  
  445. MNNNN_HDR_PutTMF(n AS INTEGER)
  446.  This form of the MNNNN_HDR_PutTMF function sets the message's threaded
  447.  message flag to "n". "n" must be in the range of 0 to 1 as follows:
  448.  
  449.     0 =    The message is not the start of a message thread.
  450.     1 =    The message is the start of a message thread.
  451.  
  452. MNNNN_HDR_GetPriMF() AS INTEGER
  453.  This form of the MNNNN_HDR_GetPriMF function returns the message's private
  454.  message flag.
  455.  
  456. MNNNN_HDR_PutPriMF(n AS INTEGER)
  457.  This form of the MNNNN_HDR_PutPriMF function sets the message's private
  458.  message flag to "n". "n" must be in the range of 0 to 1 as follows:
  459.  
  460.     0 = The message is a public message.
  461.     1 =    The message is a private message.
  462.  
  463. MNNNN_HDR_GetDMF() AS INTEGER
  464.  This form of the MNNNN_HDR_GetDMF function returns the message's deleted
  465.  message flag.
  466.  
  467. MNNNN_HDR_PutDMF(n AS INTEGER)
  468.  This form of the MNNNN_HDR_PutDMF function sets the message's deleted message
  469.  flag to "n". "n" must be in the range of 0 to 1 as follows:
  470.  
  471.     0 = The message is not marked for deletion.
  472.     1 = The message is marked for deletion.
  473.  
  474. MNNNN_HDR_GetRMF() AS INTEGER
  475.  This form of the MNNNN_HDR_GetRMF function returns the message's received
  476.  message flag.
  477.  
  478. MNNNN_HDR_PutRMF(n AS INTEGER)
  479.  This form of the MNNNN_HDR_PutRMF function sets the message's received
  480.  message flag to "n". "n" must be in the range of 0 to 1 as follows:
  481.  
  482.     0 = The message hasn't been received.
  483.     1 = The message has been received.
  484.  
  485. MNNNN_HDR_GetPerMF() AS INTEGER
  486.  This form of the MNNNN_HDR_GetPerMF function returns the message's permanent
  487.  message flag.
  488.  
  489. MNNNN_HDR_PutPMF(n AS INTEGER)
  490.  This form of the MNNNN_HDR_PutPerMF function sets the message's permanent
  491.  message flag to "n". "n" must be in the range of 0 to 1 as follows:
  492.  
  493.     0 = The message is not a permanent message.
  494.     1 = The message is a permanent message.
  495.  
  496. MNNNN_HDR_GetTTEMF() AS INTEGER
  497.  This form of the MNNNN_HDR_GetTTEMF function returns the message's TriToss
  498.  echo message flag.
  499.  
  500. MNNNN_HDR_PutTTEMF(n AS INTEGER)
  501.  This form of the MNNNN_HDR_PutTTEMF function sets the message's TriToss echo
  502.  message flag to "n". "n" must be in the range of 0 to 1 as follows:
  503.     
  504.     0 = The message has not been echoed by TriToss.
  505.     1 = The message has been echoed by TriToss.
  506.  
  507. MNNNN_HDR_GetCMF() AS INTEGER
  508.  This form of the MNNNN_HDR_GetCMF function returns the message's crashmail
  509.  flag.
  510.  
  511. MNNNN_HDRPutCMF(n AS INTEGER)
  512. This form of the MNNNN_HDR_PutCMF function sets the messageÆs crashmail flag
  513. to "n".  "n" must be in the range of 0 to 1 as follows:
  514.  
  515.     0 = The message is not a crashmail message.
  516.     1 = The message is a crashmail message.
  517.  
  518.