Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
module:newslink [2010/02/24 15:32] – created digitalman | module:newslink [2024/11/12 22:05] (current) – A new logo (picture from an airport newstand) digital man | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== NewsLink ====== | + | ====== NewsLink |
+ | {{: | ||
+ | ====== Background ====== | ||
+ | |||
+ | NewsLink is an external module for Synchronet BBS Software v3.1+. | ||
+ | It is used to link one or more Synchronet sub-boards (aka message areas) | ||
+ | with one or more USENET (or other NNTP network) newsgroups on one or | ||
+ | more News Servers. | ||
+ | |||
+ | News Servers use the Network News Transfer Protocol (NNTP) to transfer | ||
+ | messages to and from a News Client (aka newsreader). Popular News Clients | ||
+ | include Microsoft Outlook Express, Netscape Communicator, | ||
+ | Xnews, and many others. NewsLink emulates a News Client based on the NNTP | ||
+ | standard. News Servers normally listen for incoming connections on TCP | ||
+ | port 119 and usually require an authenticated user login. | ||
+ | |||
+ | NewsLink is written in 100% JavaScript and the source code (if you' | ||
+ | interested) is contained in the file '' | ||
+ | Synchronet '' | ||
+ | |||
+ | |||
+ | ====== Step-by-Step Installation/ | ||
+ | |||
+ | If you have installed Synchronet v3.10 or v3.11 from scratch (not an upgrade | ||
+ | from an earlier version), then some of the following steps may have already | ||
+ | been completed for you. | ||
+ | |||
+ | |||
+ | 1. Go into [[: | ||
+ | for NewsLink (if one doesn' | ||
+ | |||
+ | | ||
+ | 1: Internal Code | ||
+ | 2: Start-up Directory | ||
+ | 3: Command Line ?newslink | ||
+ | 4: Enabled | ||
+ | 5: Execution Node 1 | ||
+ | 6: Execution Days of Month Any | ||
+ | 7: Execution Days of Week All | ||
+ | 8: Execution Frequency | ||
+ | 9: Requires Exclusive Execution | ||
+ | 10: Force Users Off-line For Event No | ||
+ | 11: Native (32-bit) Executable | ||
+ | 12: Use Shell to Execute | ||
+ | 13: Background Execution | ||
+ | 14: Always Run After Init/ | ||
+ | |||
+ | You may change the Execution Frequency to suit your needs. | ||
+ | |||
+ | 2. Go into SCFG-> | ||
+ | | ||
+ | |||
+ | | ||
+ | 1: Long Name USENET Newsgroups | ||
+ | 2: Short Name | ||
+ | 3: Internal Code Prefix | ||
+ | 4: Access Requirements | ||
+ | |||
+ | Note: At this point you may want to login to your News Server with a regular | ||
+ | News Client (aka newsreader), | ||
+ | and make a list of the newsgroups you would like linked into your | ||
+ | BBS's message areas. | ||
+ | An alternate option is to use the provided '' | ||
+ | $ jsexec getnewsgrouplist.js user password news.example.com > newsgroup.lst | ||
+ | (Note: the '' | ||
+ | |||
+ | |||
+ | 3. Now go into SCFG-> | ||
+ | sub-boards to link to newsgroups on the News Server. Example: | ||
+ | |||
+ | | ||
+ | 1: Long Name alt.bbs.allsysop | ||
+ | 2: Short Name | ||
+ | 3: QWK Name | ||
+ | 4: Internal Code USENET_ALLSYSOP | ||
+ | 5: Newsgroup Name | ||
+ | 6: Access Requirements | ||
+ | 7: Reading Requirements | ||
+ | 8: Posting Requirements | ||
+ | 9: Operator Requirements | ||
+ | 10: Moderated Posting User | ||
+ | 11: Maximum Messages | ||
+ | 12: Purge by Age | ||
+ | 13: Duplicate Checking | ||
+ | |||
+ | An alternate option here would be to import the '' | ||
+ | |||
+ | 4. For each NewsLinked sub-board, confirm Network Options-> | ||
+ | |||
+ | 5. Edit your '' | ||
+ | |||
+ | * Change the " | ||
+ | * If you wish to use TLS/SSL, uncomment the " | ||
+ | * If the News Server requires an authenticated user login, change the " | ||
+ | * For each sub-board you configured in step 3, add an " | ||
+ | Example: '' | ||
+ | (An alternate option here is to use the '' | ||
+ | * By default, NewsLink will only import articles (aka messages) posted *after* the first scan of the newsgroups (i.e. it will not import *any* articles during the first run). If you want NewsLink to import | ||
+ | * Remove or comment-out (with a semicolon) on the '' | ||
+ | |||
+ | 6. Now you may force the NEWSLINK timed event to run. In SBBSCTRL (Win32 GUI), | ||
+ | you can do this by clicking BBS-> | ||
+ | console or NT services versions of Synchronet, you can touch or create the | ||
+ | file data/ | ||
+ | |||
+ | 7. Watch your events log for the NewsLink execution progress and details. | ||
+ | Remember, if the ' | ||
+ | in your '' | ||
+ | during the first run and only newly-posted articles will be imported on | ||
+ | subsequent runs. | ||
+ | |||
+ | ====== Area Flags ====== | ||
+ | Each " | ||
+ | "flag characters" | ||
+ | be specified globally (for all linked areas) using the " | ||
+ | |||
+ | The supported flags characters are: | ||
+ | |||
+ | x do not add tearlines & taglines to exported messages | ||
+ | n do not add "From Newsgroup" | ||
+ | t do not add tearline to imported messages | ||
+ | a | ||
+ | r | ||
+ | b | ||
+ | i | ||
+ | s no subject filtering (do not check against text/ | ||
+ | |||
+ | To specify one or more flag characters for a specific area, you must use the | ||
+ | following " | ||
+ | |||
+ | AREA < | ||
+ | |||
+ | where: | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * [attachment_dir] is the optional destination directory for decoded binary file attachments (only used with the ' | ||
+ | |||
+ | Examples: | ||
+ | |||
+ | AREA USENET_ALLSYSOP alt.bbs.allsysop nib / | ||
+ | AREA USENET_ALLSYSOP - asr | ||
+ | |||
+ | |||
+ | ====== Multiple Servers/ | ||
+ | |||
+ | '' | ||
+ | specify the path to a different file on the ''? | ||
+ | will use that configuration file instead. This allows you to have multiple | ||
+ | NewsLink timed events configured with different configurations for different | ||
+ | News Servers. | ||
+ | |||
+ | |||
+ | ====== Command-line Options ====== | ||
+ | |||
+ | Other supported NewsLink command-line options: | ||
+ | |||
+ | ^ Option ^ Description ^ | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | |||
+ | ====== Controlling SPAM ====== | ||
+ | |||
+ | Most SPAM messages on public NNTP networks (e.g. USENET) are directed at | ||
+ | multiple newsgroups. For this reason, the newslink.cfg file supports a | ||
+ | '' | ||
+ | |||
+ | If you find NewsLink is filtering valid messages with an error in the log like: | ||
+ | !Too many newsgroups (7) | ||
+ | try increasing this value. | ||
+ | |||
+ | If you find NewsLink is allowing SPAM through that is addressed to multiple | ||
+ | newsgroups, try reducing this value. Set '' | ||
+ | disable this feature. | ||
+ | |||
+ | NewsLink also uses the '' | ||
+ | articles with specific text in the subject and the '' | ||
+ | ignore messages from specific users or domains. | ||
+ | |||
+ | |||
+ | ====== Yielding ====== | ||
+ | |||
+ | |||
+ | NewsLink will yield time-slices based on the '' | ||
+ | and '' | ||
+ | |||
+ | If you find NewsLink is consuming | ||
+ | a large portion of your CPU cycles, try decreasing the '' | ||
+ | value or increasing the '' | ||
+ | |||
+ | |||
+ | ====== Stopping NewsLink ====== | ||
+ | |||
+ | NewsLink can be stopped by " | ||
+ | |||
+ | |||
+ | ====== JSexec ====== | ||
+ | With Synchronet v3.11, it is also possible to run NewsLink externally from | ||
+ | Synchronet (or as a background timed event) by using [[util: | ||
===== See Also ===== | ===== See Also ===== | ||
+ | * [[config: | ||
+ | * [[util: | ||
+ | * [[: | ||
+ | * [[network: | ||
* [[: | * [[: | ||
+ | {{tag> |