home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / AUTOPO.ZIP / READ.ME < prev    next >
Text File  |  1991-08-28  |  8KB  |  206 lines

  1. READ.ME
  2.  
  3. The enclosed files comprise as system of scripts and command files that
  4. I use to multiply my effectiveness on the EEP BBS. They were inspired
  5. in large part by Rick Wilkerson's READBBS.CMD and are designed to work
  6. in conjuction with it.
  7.  
  8. I do most of my EEP BBS work in three phases.
  9.  
  10. 1. Go on line and get all new messages since the last time I was on.
  11.    The GETNEW.ASP is a script file that accomplishes that task.
  12.  
  13. 2. Read new messages off-line and reply if desired. READBBS.CMD does
  14.    an excellent job of this.
  15.  
  16. 3. Go on line and post my replies.
  17.  
  18. To facilitate step 3, I made one small change in Rick's READBBS.CMD.
  19. I changed the naming convention for reply files to REPnnnnn.m where
  20. nnnnn is the number of the message being replied to and m is the
  21. number of the message base. By thus encoding the destination of the
  22. reply in the file name, I can make the script file (POSTNEW.ASP) 
  23. access the BBS, read the target message again, select the reply option
  24. and then post the message using Procomm's ASCII send option.
  25.  
  26. There are several points at which this process is vulnerable. I found
  27. it best to work with the pretty graphics mode turned off since the
  28. ANSI codes tended to make the screen a mess during the ASCII send.
  29. The following is the setting I use on the IBM EEP BBS. You may see 
  30. yours and change them by issuing the "I" command at a top level 
  31. (execute ?) command prompt.
  32.  
  33. Information - Self User Alterations
  34.  
  35.  Calling From.. : Baton Rouge, La             Last Time On.... : Sun Aug 25 
  36.  Password...... : (password)                  Number Times On. : 110
  37.  Phone Number.. : (504 291-3060)              Security Level.. : 10
  38.  Xpert Mode.... : On                          Downloads....... : 37
  39.  Graphics Mode. : Off                         DownLoad Kbytes. : 342
  40.  Trans Protocol : None                        Uploads......... : 0
  41.  Computer Type. : And Os/2 Sessions           UpLoad Kbytes... : 0
  42.  Birthday ......: 00/00/00     
  43.  
  44. Note that I have not set a default protocol. My GETNEW.ASP script will
  45. select the protocol at the time of download. If you have selected a
  46. default protocol then you must either reset it to none or make a small
  47. change to the script at that point. Your choice.
  48.  
  49. INSTALLATION
  50.  
  51. This file is distributed as a self extracting achive (zip).
  52. Just copy AUTOPOST.EXE into your PCPLUS directory and enter
  53.  
  54. AUTOPOST <CR> at the DOS (VDM) command prompt.
  55.  
  56. Note: This will replace your copy of READBBS.CMD with mine if
  57. it is already in that directory so you may wish to rename it
  58. to READBBS.OLD or something before running AUTOPOST.
  59.  
  60. GOTCHA's
  61.  
  62. One "GOTCHA" that I've found doing ascii sends of message
  63. text is that if you send a line of 73 characters the BBS editor word
  64. wraps to the next line and interprets the carriage return at the end
  65. of the 73 characters as a blank line. This puts you back into edit
  66. sub-command mode while Procomm is still trying to send the remainder
  67. of your message. Needless to say the results are messy. 
  68.  
  69. To fix this, I wrote a little REXX CMD file that checks all of the REP
  70. files for lines of exactly 73 characters and adds a -> to each of 
  71. thos lines to make them wrap prior to the carriage return. It's not
  72. elegant but it keeps the script from blowing up. It would be more
  73. elegant to do some word wrapping in REXX but I'm just learning the
  74. language and haven't gotten that much skill with it. In fact, NO73.CMD
  75. is my first serious effort so please be charitable (grin).
  76.  
  77. Also, though the FINDFILE function is not supposed to recognize 
  78. directories without the directory keyword, it apparently does in the
  79. VDM. I haven't determined if this is a PROCOMM bug or a VDM bug yet.
  80. Just don't have any subdirectories underneath PCPLUS that match the
  81. wildcard REP?????.? I did and it cause the script to fail.
  82.  
  83. My basic processing cycle is as follows:
  84.  
  85. DOS VDM:  PCPLUS /FGETNEW
  86. OS2       MAIL.CMD
  87. DOS VDM   PCPLUS /FPOSTREP
  88.  
  89. MAIL.CMD is worthy of some comment:
  90.  
  91. del mail*.txt                        ;This just cleans up old mail files
  92. del rep?????.?                       ;This cleans out old reply files
  93. pkunzip mail*.zip                    
  94.  
  95. ;this runs the standad pkunzip utility to unzip the files.
  96. ;Note that MAIL.CMD is run from an OS2 session but I have
  97. ;PKUNZIP.EXE (a DOS program) in a directory in the OS2 path. 
  98. ;OS2 is "smart" enough to recognize a DOS program and launch
  99. ;a VDM to run pkunzip and then return to OS2. This is a nice
  100. ;feature of OS2 that you may not have discovered. Among other
  101. ;things it means that you can generally just run your favorite
  102. ;DOS utility even from an OS2 prompt and it will do what you
  103. ;want instead of what you asked it to. Nice!
  104.  
  105. ;PKUNZIP unpacks a file called MAILn.ZIP which is the new messages.
  106.                                      
  107. del readmail.*                        ;This just cleans up any readmail files
  108. copy mail*.txt readmail.txt           ;Copy new messages to standard named file
  109. call readbbs readmail.txt             ;Invoke READBBS for that file
  110. for %%f in (rep?????.?) do no73 %%f   ;Run NO73.CMD on all the reply files.
  111. del mail*.zip                         ;Clean up the zip mail files
  112.  
  113. There is nothing special about this command file other than it
  114. reflects the way I choose to process messages. I don't keep old
  115. mail around. Some like to concatenate messages so that they have
  116. a "history" of sorts. Modify this to your hearts desire. This one
  117. works for me.
  118.  
  119. MY SETUP.
  120.  
  121. I have PCPLUS installed on my C:\PCPLUS directory. I have the following
  122. files in that directory as well.
  123.  
  124. READ     ME      4851    8-28-91     2:59p  ;This file
  125. GETNEW   ASP     3553    8-28-91     2:19p  ;PCPLUS script to get new mail
  126. IBM      ASP     2386    8-28-91     2:19p  ;PCPLUS script to auto logon
  127. POSTREP  ASP     6657    8-28-91     2:20p  ;PCPLUS script to post replies
  128. MAIL     CMD      175    8-26-91     2:31p  ;New mail processing command file
  129. NO73     CMD      923    8-26-91    10:47p  ;Reply file 73 character line fix
  130. READBBS  CMD    24089    8-21-91     4:32p  ;My modified version of READBBS.CMD
  131.  
  132. I have an EEP group with 4 choices set up as follows:
  133.  
  134. Group: IBM EEP BBS
  135. ===============================Choice 1==================================
  136.                   Properties
  137. Required
  138.  
  139. Program Title      :Get New Mail
  140. Path and File Name :C:\PCPLUS\PCPLUS.EXE
  141.  
  142. Optional
  143.  
  144. Parameters         :/fgetnew
  145. Working Directory  :C:\PCPLUS
  146. Program Type       :Default
  147. ===============================Choice 2==================================
  148.                   Properties
  149. Required
  150.  
  151. Program Title      :Get New Mail
  152. Path and File Name :C:\PCPLUS\PCPLUS.EXE
  153.  
  154. Optional
  155.  
  156. Parameters         :/fgetnew
  157. Working Directory  :C:\PCPLUS
  158. Program Type       :Default
  159. ===============================Choice 3==================================
  160.                   Properties
  161. Required
  162.  
  163. Program Title      :Post Replies
  164. Path and File Name :C:\PCPLUS\PCPLUS.EXE
  165.  
  166. Optional
  167.  
  168. Parameters         :/fpostrep
  169. Working Directory  :C:\PCPLUS
  170. Program Type       :Default
  171. ===============================Choice 4==================================
  172.                   Properties
  173. Required
  174.  
  175. Program Title      :PCPLUS - IBM EEP BBS
  176. Path and File Name :C:\PCPLUS\PCPLUS.EXE
  177.  
  178. Optional
  179.  
  180. Parameters         :/fibm
  181. Working Directory  :C:\PCPLUS
  182. Program Type       :Default
  183. =========================================================================
  184.  
  185. ICONS
  186.  
  187. I've included some icons which I use just to dress things up. Getting
  188. the ICONS to show on the group menu is the main reason for the Default
  189. Program Type choices above.
  190.  
  191. I hope you enjoy these tools as much as I do. Even if you don't use
  192. PROCOMM you can probably use the scripts as a logic guide for building
  193. your own scripts. The scripts are heavily commented for this reason.
  194.  
  195. Here's to the succes of OS/2 - Cheers!  
  196.  
  197. -dB
  198.  
  199. A.K.A Don P. Babcock Jr. P.E. 
  200.       Manager of User Services
  201.       Cajun Electric Power Cooperative
  202.       Baton Rouge, LA 70816
  203.       (504) 291-3060 x5426
  204.  
  205. I can be reached on CompuServe at 76077,3173.
  206.