home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / bingrb2b.zip / bingrab2b.txt < prev    next >
Text File  |  1997-09-14  |  4KB  |  82 lines

  1.             Archive Name:  BINGRAB2B.ZIP
  2.      Archive Description:  News Group Binaries Grabber
  3. Operating System/Version:  OS/2
  4.           Program Source:  REXX
  5.                 Replaces:  bingrab.zip & bingrab1b.zip
  6.  
  7.                Your name:  Timothy Millea
  8.       Your email address:  cyberlord@cyber-wizard.com
  9.  
  10.       Proposed directory
  11.            for placement:  pub/os2/apps/internet/news/util
  12.  
  13. /*------------------------------------------------------------------
  14.  * REXX - OS/2 -- BINGRAB ver 0.2b
  15.  * bingrab.cmd : binaries grabber
  16.  *
  17.  * Current version can be found at http://nfinity.com/~tmillea
  18.  *
  19.  * Grabs uudecoded Jpeg and Gif files (multiple and single part)
  20.  * from newsgroups then decodes them into binaries. A small modification
  21.  * can be made to allow it to decode other binaries as well such as Zip
  22.  * and EXE.
  23.  * Requires rxsock.dll and uudeview.exe to function. I have included
  24.  * them, but STRONGLY URGE you to go get the complete file from
  25.  * FTP somewhere. They will have documentation on how to set them up.
  26.  * The .rc files contain group info to track what groups to grab
  27.  * and also keep track of messages already downloaded.
  28.  * As to the multiple parts - It has it's limitations. You can adjust the
  29.  * minimum size of messages to download to a smaller value to maybe
  30.  * get the final part of a post, but you are also grabbing a bunch
  31.  * of time consuming garbage in the proccess. I have it set to 500.
  32.  * This is mainly because I don't want a bunch of small pictures in my 
  33.  * directory or to spend time downloading files that are not pictures
  34.  * like .html files or text files. I have found that multiple part posts are 
  35.  * missing pieces anyway. The few complete ones that get missed are
  36.  * probably not worth the extra coding it would take to go look for them.
  37.  * Also another important consideration is the number of group names
  38.  * in the BINGROUP.RC file. For each group name listed, a seperate call to
  39.  * BINGRAB.CMD is called and a seperate server connection. This could 
  40.  * lead to a slow machine or even errors. I recommend limiting it to less 
  41.  * than 15, I have it set to 10. You can always create multiple .rc files
  42.  * that contain 10 - 15 names and run them at different times.
  43.  * I have included two utility programs. GROUPS.CMD will get a list of
  44.  * available BINARY groups from the server. This list then can be cut
  45.  * and pasted into the .rc files for BINGRAB.CMD. MOVE.CMD will move all
  46.  * jpg and gif files to a directory named the first characture of the file
  47.  * name. It will then delete any jpg or gif files left in the directory. This 
  48.  * should eliminate any duplicate named files. At this time I have no way
  49.  * to determine if there are duplicate pictures with different names.
  50.  * My experience has been that there are not to many.
  51.  * I hope you like the program. It is EMAILware, so drop me a line if you
  52.  * use it and let me know how you like it and what enhancements you 
  53.  * would like to see. I do not guarantee any further versions, but if any
  54.  * major bugs exist I will release an upgrade.
  55.  * 
  56.  * Thanks, CyberLord. CyberLord@Cyber-Wizard.Com
  57.  *------------------------------------------------------------------*/
  58.  
  59. Revision history
  60. ~~~~~~~~~~~~~
  61.  
  62. 0.1b:
  63.  
  64. 1)Added code to say: ERROR: RC file on command line not found in bingrab directory.
  65. as it was saying 0 and then exiting.
  66. Thanks to Tom at Dynamic Information Systems for this tit bit.
  67.  
  68. 2)Added a FAQ to the zip file. It's not really big yet. :)
  69. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  70.  
  71. 0.2b:
  72.  
  73. 1)Implemented a routine to check for duplicate subject lines so BinGrab will ignore that 
  74. message. The subject lines are stored in a file call 'duplicates'. I had to wrestle with
  75. file sharing a bit before this worked properly. :)
  76.  
  77. 2)Re-arranged the code a little and turned some of the inline code to function calls.
  78. Makes for easier understanding to what the program is doing without getting to deep into
  79. the subroutines. I will tidy up a little more as time permits.
  80.  
  81. 3)Added a user exit function. Hit the 'Q' key during processing and after it finishes downloading
  82. the message it will decode the uue file and exit.