home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / c / cmail26q.zip / MAILPROG.DOC < prev    next >
Text File  |  1992-10-30  |  12KB  |  227 lines

  1.  
  2. USERS GUIDE
  3.  
  4. The four main functions on the main menu are read new mail, send mail, 
  5. transfer a file and view old mail.
  6.  
  7. The read new mail function allows you to use the arrow keys, Page Up, 
  8. Page Down, Home and End keys to move around as you read the message.  
  9. When you have finished reading the message, you can leave the reader by 
  10. pressing either Enter or F10.  When you do this, you will be prompted to 
  11. press enter to delete the message, or to type a filename.  If you don't 
  12. need to look at the message again, just press the enter key.  You will 
  13. be asked to confirm that you want to delete the message if it is a 
  14. particularly long one. 
  15.  
  16. If you want to keep a copy of the message, type a file name (up to eight 
  17. letters plus an optional three letter extension).  The message can then 
  18. be viewed later using the view old mail function.  The file name can 
  19. include a path, in which it will be extracted to that directory.
  20.  
  21. The second function available allows you to send a message to other 
  22. users. If the user is logged into the network at the time, a message 
  23. will be sent to their screen.  Otherwise they will be informed of the 
  24. waiting message next time they log on.
  25.  
  26. On selecting the send message function you will be prompted to enter a 
  27. list of groups or users.  Users have names that are the same as their 
  28. login names.  Users are also allocated to different groups, and sending 
  29. a message to a group sends it to all members of that group.  The groups 
  30. have names of one letter in length.
  31.  
  32. After entering a list of groups or users, you will find yourself in a 
  33. text editor.  The controls for this editor are the same as for entering 
  34. comments in the various database programs.  Pressing F10 will leave the 
  35. editor and send the message.  Pressing Esc will leave the editor and NOT 
  36. send the message.  Pressing F1 will give a help screen (here and in many 
  37. parts of the program).  The keys F2 to F9 are programmed with useful 
  38. phrases which will be inserted into the text when these keys are 
  39. pressed.
  40.  
  41. Transfer a file allows you to move a file to someone else.  Having sent 
  42. a file, you will be asked if you want to delete the original.
  43.  
  44. The view old mail function allows you to view old messages rename (and 
  45. move) them, delete them and print them.  I hope it is fairly self 
  46. explanatory.
  47.  
  48. The fifth option allows you to see a list of the users, or to print that 
  49. list.
  50.  
  51. The "Xtra Features" option allows the network administrator to enter and 
  52. add users, assign strings to the function keys, set up printers and so 
  53. on.
  54.  
  55.  
  56.  
  57. MORE TECHNICAL STUFF
  58.  
  59. The program won't work unless the DOS enviromental variable MAILID is 
  60. set.
  61.  
  62. I have tried to make this program completely independant of the network 
  63. type. All mail is sent by copying files to the appropriate mail 
  64. directory, and then invoking a suitable command (under Novell I use SEND 
  65. to inform the user of the arrival of mail, but you can invoke any other 
  66. program, including a mail transport program or a comms program with a 
  67. script).
  68.  
  69. Commands, printer strings and function key definitions can contain 
  70. clipper expressions delimited by square brackets.  Of use in commands 
  71. are the variables "user", "filename", "name", and "maildir" which 
  72. contain the names of the user, the name of the file generated, the name 
  73. of the person to send to and their mail directory name respectively.  
  74. Thus the command
  75.  
  76. SENDBAT [maildir] [filename] [name]
  77.  
  78. could be used to invoke a batch file to send the mail on to a particular 
  79. user.
  80.  
  81. Clipper functions can also be used.  Of particular interest to users, is 
  82. the predefined command PROMPT(string), which prompts the user for input 
  83. and returns the user.  Thus the command
  84.  
  85. SENDFAX [fullfilename] [prompt("Phone number ... ")]
  86.  
  87. could be used to prompt for a phone number, and invoke the command 
  88. SENDFAX with the full file name (with path, stored in "fullfilename") 
  89. and the phone number entered.
  90.  
  91. If the ammount of memory required to run a particular command is 
  92. specified, the program will check that this memory is available.
  93.  
  94. Users should have open, read and search access only to the directory 
  95. with the mail program in, full rights to their own mail directory and 
  96. create and write access to each others mail directories.  As overlays 
  97. are created by the program, the program must be run from a directory 
  98. where the user has rights to create, write to and delete files.  The 
  99. best way to do this is to put the mail program in the path, and run it 
  100. from the users home directory.  An alternative is to SET 
  101. CLIPPER=SWAPPATH:'H:' (or whatever) in the environment.
  102.  
  103. The F1 key provides context sensitive help throughout the program.
  104.  
  105. The program can take one parameter; the word check causes the program to 
  106. check the user's mail directory, allows him to read any new mail and 
  107. then exits.  This should be used in people's login scripts, or better 
  108. still in a batch file called by their login script when it exits.
  109.  
  110. If the database is unavailable, the program will exit with the 
  111. errorlevel set to 1. If the program exits because of a problem, the 
  112. errorlevel will be set to 2.  
  113.  
  114. Enjoy!
  115.  
  116. Peter Summers
  117.  
  118.  
  119. VERSION HISTORY (from when I started keeping one):
  120.  
  121. 2.4e:   Fixed a problem which caused the program to crash after using the Xtra 
  122.         features/Xamine database option.
  123. 2.4f:   Fixed an incorrect example of how to set up a printer in one of the
  124.         help screens.
  125. 2.4g:   Cleaned up a few more help screens.
  126. 2.4h:   Centred a misalligned error message.
  127.  
  128. 2.5:    Rewrote the code for Clipper 5.01.  This allows for better error
  129.         handling, and therefore renaming (moving) files to other partitions
  130.         is now supported.  Transfer a file now works from any disk.  The
  131.         program now can (and should) be run from the path.
  132.  
  133.         I haven't got Ralf Brown's swapping spawn routine to run with Clipper
  134.         5.01 yet, so commands are now run using Clippers own swapping.  This
  135.         will typically give about 150k of available memory.  The amount of
  136.         memory required to run a user's command can be specified in the user's
  137.         database entry, and the program will check this before proceeding.
  138.         If you have an old version of the program, you want to use this feature
  139.         and you want to keep your old database, you may need to use dBase or
  140.         something equivilent to add a numeric field of length 3 called MEMREQ.
  141. 2.5a    A bit of tweaking and documentation prior to release of v2.5.
  142. 2.5b    The editor now defaults to insert mode on.  Clipper's Alt-C break out
  143.         of the program is now re-enabled.
  144. 2.5c    Now allows up to 1024 items in the mail directory, rather than
  145.         the previous 256.
  146. 2.5d    The program no longer gives the SET MAILID message if the check
  147.         parameter is set.  If the program is called without the check
  148.         parameter, the user no longer gets the "You have new mail..." 
  149.         message, but a discrete flashing warning in the top left hand 
  150.         corner of the screen.
  151. 2.5e    The program now checks that the user's mail directory exists,
  152.         and optionally creates it if it doesn't.
  153. 2.5f    Fixed the help function, which didn't work within memoedit after
  154.         the change to Clipper 5.01.
  155. 2.5g    Fixed a problem which occured if help was called within help and
  156.         provided seperate help screens for reading and writing mail.  
  157.         Also fixed the problem with with prompts on the bottom line of 
  158.         the screen which didn't scroll in Clipper 5.
  159. 2.5h    Fixed the program so you can't overwrite existing files when
  160.         renaming a file from various parts of the program.  Also, the 
  161.         the startup screen is now cleared when the user presses any key.
  162. 2.5i    Overwriting of existing files is now possible but requires
  163.         confirmation.  Also fixed a problem with renaming old mail onto 
  164.         another volume.
  165. 2.5j    Discovered that I could make the message edit and display
  166.         windows one character wider, so I did.
  167. 2.5k    Reduced the edit window width by one character, to stop blank
  168.         lines appearing in messages when the line wrapped on the last 
  169.         character.  Also spaced out the messages associated with doing a 
  170.         file transfer.
  171. 2.5l    Fixed a bug associated with deleting the last file in the mail
  172.         directory while viewing old mail.
  173. 2.5m    Recoded the fix for 2.5l slightly.
  174. 2.5n    Removed the clearing of all but the first character in the
  175.         keyboard buffer when the program started.
  176. 2.5o    Changed the startup code to improve the speed on slow machines.
  177. 2.5p    Cleaned up the code for renaming files.
  178. 2.5q    Cleaned up the code for transfering files.
  179. 2.5r    A bit more tweaking of the rename file code.
  180. 2.5s    Fixed a potential problem with mail messages of length between 
  181.         65,519 and 65,535 bytes.
  182. 2.5t    Fixed the "You have mail..." code so that it clears the keyboard 
  183.         buffer before asking the user if they want to read it.
  184. 2.5u    Fixed the "No unread mail..." message so that it times out after 
  185.         two seconds and returns to the main menu.
  186. 2.5v    After a save/rename fail, the file name is cleared if the user
  187.         presses a non-editing key first when prompted for a different name.
  188. 2.5w    Indicates the number of messages remaining when reading new mail.
  189. 2.5x    Made the size of tabs consistant throughout the program (4 spaces).
  190. 2.5y    Made the size of tabs equal 8 spaces to be consistent with other 
  191.         mail programs.
  192. 2.5z    Minor alterations to the "You have new mail..." message, and 
  193.         fixed the mail display window to avoid blank lines appearing in 
  194.         messages.
  195.  
  196. 2.6     Allows the use of alternative new mail extensions, for 
  197.         communication with other mail programs (notably Pegesus).
  198. 2.6a    Allows the new mail extension to be defined from within the
  199.         program.
  200. 2.6b    Renames any existing new mail when the new mail extension is 
  201.         redefined.
  202. 2.6c    Allows incorrectly typed mail directories to be retyped without 
  203.         having to return from the main menu.
  204. 2.6d    Fixed the Date: field to be RFC822 compliant, with optional time
  205.         zone specification.
  206. 2.6e    Wrote the help code for the setting the new mail extension and 
  207.         time zone.
  208. 2.6f    Cleaned up the code that postions the selection bar when viewing 
  209.         old mail.
  210. 2.6g    Turned snow supression on.
  211. 2.6h    Turned snow supression on only for color graphics cards, because 
  212.         it hangs with Hercules cards.
  213. 2.6i    Prevents the new mail extension from being changed while others 
  214.         are using the mail program.
  215. 2.6j    Improvements to the function of the Del and Backspace keys in 
  216.         the editor, which now do reformating automatically.
  217. 2.6k    Improvements to the left arrow, right arrow, control left arrow 
  218.         and control right arrow functions.
  219. 2.6l    Fixed a problem with the program not finding the setup file when 
  220.         running form a local disk.
  221. 2.6m    Fixed a problem users who weren't in the database.
  222. 2.6n    Minor improvments to the handling of users not in the database.
  223. 2.6o    Recompiled the same code with the 5.01a patch applied to Clipper.
  224. 2.6p    Recompiled the same code with the fixed version of the 5.01a 
  225.         patch applied to Clipper.
  226. 2.6q    Sets the errorlevels appropriately if it won't run.
  227.