stason.org logo lotus


previous page: 9.3) AXSHpage up: AmigaUUCP FAQnext page: 9.5) News and Mail Gateways

9.4) Archiving Newsgroups.

 Books
 TULARC
















Description

This article is from the AmigaUUCP FAQ, by Marc SCHAEFER, with numerous contributions by others.

9.4) Archiving Newsgroups.

Archiving newsgroups can be automatically done with the following steps:

a) Edit S:CronTab and add the following lines. This will launch a script at 00:30 each day.

	    30 00 * * * UUArchive-Newsgroups

b) Edit UULIB:Sys and add

# dummy node(s) for archiving news, will never be batched since not in L.Sys
uuarchive:alt.sys.amiga.alphanet,alphanet.*

c) Create S:UUArchive-Newsgroups. Note you need an TRASH: assign to some temporary directory. We use LHA as an archiver. We could also first join the article and then LHA them (it would be more efficient).

--- cut here ---
Echo "UUArchive-Newsgroups(4)"
; What follows to prevent forgetting articles.
; Convert "." format to "/" format (1.16D)
; Does not prevent from being launched twice, however.
  
CD UUNEWS:
  
; ALPHANET newsgroups
IF EXISTS UUSPOOL:BATCH/UUArchive
  Delete TRASH:#?UUArchive
  Rename UUSPOOL:BATCH/UUArchive TRASH:_UUArchive      ; Needed for batchnews multitasking.
  ConvertNewsgroup TRASH:_UUArchive TRASH:UUArchive
  LhA -iTRASH:UUArchive a ARCHIVES:Newsgroups/ALPHANET_NEWSGROUPS
EndIF
--- cut here ---

d) Create S:ConvertNewsgroup which converts "." syntax to "/" syntax as used in UUCP V1.16d and above. Note we use SED (Stream Editor). It can be found on fish disks. Probably the use of the Amiga stream editor "edit" would be possible.

--- cut here ---
.key source,dest
.bra {
.ket }
  
Sed < {source} > {dest} -fS:Sed-Newsgroup-Script
--- cut here

e) Create S:Sed-Newsgroup-Script, which is the SED macro itself

--- cut here ---
y%.%/%
--- cut here ---

 

Continue to:


Share and Enjoy

Bookmark this story so others can enjoy it:
  • digg
  • Reddit
  • del.icio.us
  • Furl
  • Wists

Tags

amiga, pc, hardware, AmigaUUCP







TOP
previous page: 9.3) AXSHpage up: AmigaUUCP FAQnext page: 9.5) News and Mail Gateways