home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / soupbox0.zip / SOUPBOX.DOC < prev    next >
Text File  |  1998-01-26  |  17KB  |  348 lines

  1. SOUPBOX v0.0 [beta] January 25, 1998
  2.  
  3.  This is a beta version of SOUPbox, a collection of conversion programs
  4.  which convert SOUP offline reader packets used by Internet-compatible
  5.  software to .PKT's which can be read by fido-compatible BBS programs.
  6.  
  7.  It is intended for use by fido-style BBS sysops and point node operators.
  8.  
  9.  This is being distributed as-is and is for noncommercial use only. If
  10.  you modify the source code in any way, please rename the archive and
  11.  also be sure to indicate what you've changed.
  12.  
  13.  This has been tested using VSOUP for os/2 on a Binkley/Squish/Maximus
  14.  system but should be adaptable to other configurations including WSOUP
  15.  (Windows) and SOUPER (DOS).
  16.  
  17.  You will need to install VSOUP (or another program that downloads SOUP
  18.  packets) and be able to connect via an Internet service provider to
  19.  usefully employ the SOUPbox programs.
  20.  
  21.  I neither guarantee this to be bug-free (it's not) nor guarantee that
  22.  you won't get your sysadmin upset at you if you misuse this program.
  23.  
  24. How does it work?
  25.  
  26.  Basically, SOUP is an offline reader format which does for the Internet
  27.  what formats like QWK do for the BBS world. It just downloads all of your
  28.  messages so that they can be stored and read or processed later.
  29.  
  30.  Programs like VSOUP and SOUPER download the messages and store them as
  31.  a series of text files, one for each message area.
  32.  
  33.  News server (NNTP)
  34.         |                                                .msg
  35.  Internet Service _______modem<------>modem___OS/2---VSOUP--->souppkt
  36.  Provider (ISP)                                       ^         | .pkt
  37.         |                                         .msg|         v
  38.  E-Mail server (POP3, SMTP)                         pktsoup<---BBS software
  39.                                                            .pkt
  40.  
  41.  The SOUPbox archive contains two conversion programs; one (souppkt) converts
  42.  Internet SOUP messages to BBS (*.pkt) files and the other (pktsoup) converts
  43.  BBS messages back into SOUP.
  44.  
  45.  Note that the SOUP *.msg files do not use the same format as fido *.msg files.
  46.  
  47.  There are two versions of these; one is for DOS (souppkt, pktsoup) and the
  48.  other is for OS2 (souppkt2, pktsoup2).
  49.  
  50.  If you're not using os/2, install the DOS versions of the programs.
  51.  
  52.  The program (MS-C 6.00 source code) listing is the same for both versions.
  53.  
  54. What files are created by SOUP?
  55.  
  56.  The VSOUP or SOUPER programs (required but not included in this archive)
  57.  typically uses the following files:
  58.  NEWSRC         a list of newsgroups to be downloaded
  59.                 the name of each group is followed by : and the number of the
  60.                 last article read - a ! indicates you're not subscribed to a
  61.                 group
  62.  SCORE          an optional file used to filter incoming news by ignoring
  63.                 posts with certain text in the headers
  64.  AREAS          a list of *.msg files that have been downloaded from the net
  65.  REPLIES        a list of *.msg files waiting to be uploaded to the net
  66.  NEWS.MSG       newsgroup posts waiting to be uploaded
  67.  MAIL.MSG       e-mail waiting to be uploaded
  68.  000????.MSG    downloaded messages, one file per message area or newsgroup
  69.  
  70.  Note that the conversion programs in the SOUPbox archive expect these files
  71.  to be in uncompressed format (unix text with binary length on each message).
  72.  
  73.  This appears to be compatible with programs such as VSOUP.
  74.  
  75. What do the SOUPbox programs do with all of this?
  76.  
  77.  The conversion utilities included here convert SOUP files (*.msg) to Fido-
  78.  style packet (*.pkt) files and vice-versa. This lets you read Internet
  79.  messages into BBS software.
  80.  
  81.  There are a number of differences in message format between BBSs and
  82.  Internet, mostly in the message headers and the addresses. The souppkt
  83.  program changes addresses like "carl.austin.bennett@pausecafe.gryn.org"
  84.  into their BBS equivalents, ie: "Carl Austin Bennett 1:249/116.0" and
  85.  writes Fido-compatible headers. It also splits any overly-long messages.
  86.  
  87.  The pktsoup program converts and removes these Fido-style message headers
  88.  and changes any addresses back into their Internet counterparts.
  89.  
  90.  Message dates are changed to indicate the proper timezone, BBS origin and
  91.  tear lines are removed and "area:" is changed back to "Newsgroups:".
  92.  
  93. How does this fit into a BBS or pointnode setup?
  94.  
  95.  The SOUPbox programs need to be assigned a Fido-style address, much like
  96.  another BBS or point-node system would have an address when connecting
  97.  via mailer and tosser programs. A pointnode address is sufficient.
  98.  
  99.  For instance, a BBS with address 1:249/116.0 could communicate with a set
  100.  of SOUPbox programs using the address 1:249/116.1; the mailer program on
  101.  the BBS would be configured to put all mail for this address on "hold"
  102.  instead of dialing, then the SOUPbox programs would convert this mail and
  103.  VSOUP or SOUPER could then upload it to an Internet service provider.
  104.  
  105.  Typically, a BBS mail tosser will give the same base filename to all mail
  106.  destined for one address. If today's mail for a node is in 12345678.su*
  107.  then tomorrow's mail for that node will be found in 12345678.mo*
  108.  
  109.  Uncompressed mail packets will have names ending in *.pkt or *.?ut but will
  110.  also follow a consistent naming pattern. To determine the exact filename to
  111.  be used, just put some mail on "hold", addressed for the desired BBS address,
  112.  and see what files are created by the BBS mail tosser.
  113.  
  114.  SOUPbox works only with uncompressed packets; if your BBS software is
  115.  creating compressed archives (ARC, ZIP, ARJ, LHA...) you'll need to have
  116.  a .bat or .cmd file uncompress them first before running pktsoup.
  117.  
  118.  The souppkt converter creates uncompressed *.pkt files which may be moved
  119.  directly into your system's inbound directory and tossed normally.
  120.  
  121. How does this work with Binkley (or Portal) -style mailers?
  122.  
  123.  Binkley-style systems have the mail tosser do all of the routing
  124.  and compression of packets; this works well with SOUPbox as it allows
  125.  the tosser to be configured to do things like (in Squish's route.cfg):
  126.  
  127.    route hold noarc 1:249/116.1
  128.  
  129.  This leaves all mail addressed to 116.1 in the outbound directory in
  130.  uncompressed form. It takes both netmail and echomail and puts them into
  131.  standard Fido-style packets (the names will be 00000001.hut in this case)
  132.  
  133. How does this work with ArcmailAttach (FrontDoor/InterMail) mailers?
  134.  
  135.   These mailers operate a little differently; they will always compress
  136.   outbound echomail packets and the tosser will completely ignore outbound
  137.   netmail as it's handled by the mailer itself.
  138.  
  139.   The routing commands to put mail for a node on "hold" instead of sending
  140.   it normally are handled by the mailer, not the tosser. This means changing
  141.   ROUTE.IM or ROUTE.FD to "hold" any mail for SOUPbox instead of sending it.
  142.  
  143.   As the echomail is compressed (ARC or PKPAK are the defaults) a batch file
  144.   must be used to check for these bundles, move them and unpack them before
  145.   they can be processed by SOUPbox.
  146.  
  147.   Also, as the tosser is not processing outbound netmail at all, a special
  148.   echo named EMAIL must be created on your pointnode or BBS for outbound
  149.   Internet e-mail. This way, your outbound e-mail gets packed with the rest
  150.   of your outgoing messages instead of being left in your netmail area.
  151.  
  152. How do I configure these programs?
  153.  
  154.   Much of the configuration for the SOUPbox programs is in SOUPBOX.CFG,
  155.   which must be in the current directory for the conversion to be run.
  156.  
  157.   The following are recognized in SOUPBOX.CFG; anything else is ignored:
  158.  
  159. Origin      <fido-style 4D address>
  160.   This is the address of the SOUPbox conversion program itself. This address
  161.   serves as one side of a gateway between the BBS and the Internet world.
  162.   This should be a 4D (point-node) address, ie:
  163.   Origin      1:249/116.1
  164.  
  165.   All messages being converted to fido-style packets will have this as the
  166.   originating address. Your mailer or tosser must be configured to accept
  167.   echomail from a "system" at this address and to put outbound messages for
  168.   this address on "hold" instead of sending them via mailer or routed netmail.
  169.  
  170. Domain      <fido-style 4D address> <internet domain name>
  171.   This is the address assigned to a BBS or pointnode which is using the
  172.   SOUPbox programs to access Internet message areas. If more than one
  173.   system is listed, the first one must be a Fido-style mail hub feeding the
  174.   others.
  175.  
  176.   The internet domain name is the name of this (these) computer(s) for
  177.   sending/receiving Internet e-mail. This may point to an existing gateway
  178.   elsewhere or to a system able to put all mail for an entire subdomain into
  179.   one POP3 mailbox (such as an Internet presence provider or ml.org's Monolith
  180.   Mail Depot beta)
  181.   Domain      1:249/116.0 pausecafe.home.ml.org
  182.   Domain      1:249/117.0 cyberspace.gryn.org
  183.  
  184.   Note that it is possible to override this default address for individual
  185.   users using Replace, ReplaceAll or Alias. (optional)
  186.  
  187. Reply       <filename>
  188.   The name of the (uncompressed) fido-style pkt file containing messages
  189.   to be converted to Internet SOUP format. If your tosser creates only
  190.   compressed (*.mo0, *.tu*... *.sa*, *.su*) bundles, these will need to
  191.   be unZIPped or unARCed before processing by pktsoup.exe
  192.  
  193.   The filename should therefore normally end in pkt, out, hut or ?ut,
  194.   ie: Reply c:\outbound\12345678.pkt
  195.  
  196.   Note that all SOUP (*.msg) files and inbound pkt's are placed in the
  197.   current directory; your .bat files must move these pkt's to your
  198.   tosser/BBS inbound directory once souppkt conversion is complete
  199.  
  200. TimeZone    -0500
  201.   This appears on the date/time of outgoing e-mail and is -0800 in
  202.   Vancouver, -0500 in Montréal and +0000 in London, England. Internet
  203.   programs use this information to convert e-mail time to another region.
  204.  
  205.   SOUPbox ignores the timezone information on incoming mail.
  206.  
  207. E-mail      email
  208.   If incoming e-mail is to be converted to netmail, indicate the name used
  209.   by VSOUP or SOUPER for the e-mail area (normally EMAIL). This information
  210.   is also needed to prevent SOUPbox from including the "Newsgroups:" line
  211.   on outgoing e-mail if "EMAIL" has been created as a BBS echomail area.
  212.  
  213. Split       14000
  214.   This is the approximate length limit before SOUPbox continues text as a
  215.   second (or third...) message. Note that this value will be exceeded in
  216.   order not to split messages in the middle of a line or paragraph of text.
  217.  
  218. Encode      <program> <msgheader> <file to attach>
  219.   (optional) This allows an external program to be installed to
  220.   automatically encode files as e-mail and send them via the Internet.
  221.   The external program will normally call a mime/base64 or a uuencode
  222.   utility, either of which accept a binary file and generate an encoded
  223.   text file. The program should also delete the original file after
  224.   conversion. This is usually used to automatically send BBS mail to
  225.   long-distance hubs inexpensively by sending it as e-mail file-attach.
  226.  
  227.   The <program> is normally a small batch file like:
  228.     move \binkley\out\%1 %1
  229.     mime64 %1 %2 -e
  230.     del %1
  231.   where %1 is the base filename (no path) of the original file and %2 is
  232.   the name of the file to be created by the encoder program. Note that
  233.   uuencode and mime64 encoders, while freely available, must be downloaded
  234.   separately as they're not built into this version of SOUPbox.
  235.  
  236.   The <msgheader> is a small text file which is added to the encoded text
  237.   before it's sent as e-mail. It must (at a minimum) contain the From:,
  238.   To: and Subject: fields:
  239.     To: downlink@wherever.com
  240.     From: carlb@adan.kingston.net
  241.     Subject: fido-mail attached
  242.     Mime-Version: 1.0
  243.  
  244.   One "encode" line is included in SOUPbox.cfg for each downlink, ie:
  245.    Encode      encode.bat downlink.hdr c:\binkley\out\00012345.*
  246.  
  247. Decode      <program> <areaname>
  248.   (optional) this runs an external program to decode files attached to
  249.   incoming Internet messages in specified message areas. The program must
  250.   be one that removes message headers and plaintext, such as uudoall or
  251.   mime64 for os/2 users. These decoders are not included with SOUPbox.
  252.  
  253.   The external program is called with the *.msg filename and the name of
  254.   the message area (either EMAIL or a newsgroup name) as parameters, ie:
  255.  
  256.   Decode      decode.bat alt.binaries.
  257.  
  258.   where decode.bat (decode.cmd for os/2 users) contains:
  259.     uudecode %1
  260.  
  261.   If the original file is moved, renamed or deleted within this .bat file,
  262.   the messages for this area will not be gated to echomail at all. This may
  263.   be useful when processing alt.binaries.* posts where plaintext is ignored.
  264.  
  265. Replace <BBS e-mail address> <individual e-mail address>
  266. ReplaceAll <BBS e-mail address> <individual e-mail address>
  267. Alias <BBS e-mail address> <individual e-mail address>
  268.   (optional) These are used to indicate that a different address is to
  269.   be used for one SOUPbox user instead of the default first.lastname@domain
  270.  
  271.   This is useful if e-mail is being forwarded from individual userid's on
  272.   shell accounts (.forward), poboxes.com addresses (http://www.netforward.com)
  273.   or being picked up directly from a POP3 mailbox on an ISP or an Internet
  274.   presence provider such as softhome.net or usa.net
  275.  
  276.   The "To:" field on forwarded mail is that of the original message and
  277.   does not get changed by the Internet mail forwarding process. This means
  278.   that it's possible to forward many individual addresses from assorted
  279.   Internet sites to one individual POP3 mailbox, download all the mail at
  280.   once using SOUP, then have SOUPbox address it to individual usernames
  281.   based on the Internet address originally in the message's "To:" field.
  282.  
  283.   For instance, if the entire pausecafe.home.ml.org subdomain were forwarded
  284.   to carlb@adan.kingston.net, SOUPbox could be configured as:
  285.   Origin 1:249/116.1
  286.   Domain 1:249/116.0 pausecafe.home.ml.org
  287.   Replace carl.austin.bennett@pausecafe.home.ml.org carlb@adan.kingston.net
  288.   Replace sysop@pausecafe.home.ml.org carlb@adan.kingston.net
  289.  
  290.   This would cause e-mail "to: carlb@adan.kingston.net" to be converted in
  291.   the same way as e-mail "to: carl.austin.bennett@pausecafe.home.ml.org"
  292.   and become netmail from 1:249/116.1 to: Carl Austin Bennett 1:249/116.0
  293.  
  294.   There are three versions of this:
  295.   Replace      - uses the individual user's address on all e-mail (not news)
  296.   ReplaceAll   - uses the individual user's address on both e-mail and news
  297.   Alias        - only uses the individual user's address for incoming e-mail
  298.  
  299.   This is done so that SOUPbox can optionally be set to recognize forwarded
  300.   e-mail without having the individual user address appear on newsgroup
  301.   postings.
  302.  
  303.   It's unfortunate that this is needed, but newsgroup posts are the largest
  304.   source of e-mail addresses for "spammers" who gather your address to send
  305.   large quantities of unsolicited commercial e-mail. Some users simply do
  306.   not want their e-mail address in the From: field on usenet for this reason.
  307.  
  308. What Internet resources are available or needed?
  309.  
  310.   At a minimum, to use SOUPbox you'll need a connection to an Internet
  311.   service provider and a working VSOUP (os/2) SOUPER (dos) or WSOUP
  312.   (windows) installation to download e-mail and newsgroups.
  313.  
  314.   You'll most likely also want an e-mail address for each person who'll
  315.   be using SOUPbox; individual addresses may be obtained at netforward.com
  316.   and forwarded to an existing POP3 e-mail mailbox. There is a project
  317.   currently in beta test at ml.org to forward an entire subdomain (the
  318.   Monolith Mail Depot, not yet fully available) and this same service
  319.   may be available commercially from Internet presence providers as part
  320.   of a virtual domain hosting service.
  321.  
  322.   Individual POP3 mailboxes are available from usa.net and softhome.net
  323.  
  324.   Outbound e-mail (SMTP) servers are usually provided by Internet service
  325.   providers; if news (NNTP) isn't provided by your ISP, there are a limited
  326.   number of free servers listed in the NNTP FAQ available on the web.
  327.  
  328.   These "free servers" are well known for their unreliability but there
  329.   are also a few commercial NNTP servers available for a price. Please
  330.   resist the temptation to download thousands of groups from a server
  331.   just because it's there; this loads the system and interferes with others.
  332.  
  333.   There are a number of existing e-mail <-> netmail gateways on Fido and
  334.   other amateur networks; not all provide news and many object to routing
  335.   files and mailing lists, but using an existing gateway for ordinary
  336.   e-mail and SOUPbox for Usenet news can sometimes be a useful combination.
  337.  
  338.   Many resources have already been lost to the online community due to
  339.   abuse - everything from anon.penet.fi to the e-mail to news gateways
  340.   to the fidonet.org (1:1/31) gate are now only distant memories.
  341.  
  342.   Please be careful to use BBS and Internet resources with respect for
  343.   other users so as not to overload the few useful services that remain.
  344.  
  345. This is SOUPbox v0.0 beta; please send comments and bug reports to:
  346.  Carl Austin Bennett 1:249/116.0 (dl776@freenet.carleton.ca)
  347.  PO Box 21024 Kingston, Ontario K7L 5P5 Canada, eh?
  348.