Thread View: news.software.readers
2 messages
2 total messages
Started by Judy Tassell
Sun, 02 Jan 1994 22:56
Alternative to Yarn
Author: Judy Tassell
Date: Sun, 02 Jan 1994 22:56
Date: Sun, 02 Jan 1994 22:56
9 lines
1186 bytes
1186 bytes
I'm looking for an offline Newsreader (you know, like BlueWave, Slimer...) that can read packets saved from an RN type newsreader with the .-$:s file command (save all messages to file) I have found one called readmail which does it, but it's, well, pathetically featureless. I've looked at YARN and liked it, but I don't know how to creat the type of packet it wants. Any info which could help me (how to save in YARN's packets, alternatives to readmail) would be very much appretiated. -Charles Tassell >Gridpoint (902) 628-1230
Re: Alternative to Yarn
Author: Frank McNeil
Date: Mon, 03 Jan 1994 07:43
Date: Mon, 03 Jan 1994 07:43
346 lines
11032 bytes
11032 bytes
In article <2g7jfn$pqr@atlas.cs.upei.ca>, Judy Tassell wrote:
>I've looked at YARN and
>liked it, but I don't know how to creat the type of packet it wants. Any
>info which could help me (how to save in YARN's packets, alternatives to
>readmail) would be very much appretiated.
>-Charles Tassell
>>Gridpoint (902) 628-1230
Hello Charles Tassell,
I'm glad you like Yarn. It's at version 0.53 and seems to improve each
month.
You can get YARN's packets by running the program uqwk on your UNIX
host. You can down load this from ftp.gte.com: /pub/uqwk/uqwk1.7.tar.Z.
There may be other helpful items in that directory.
I compiled version 1.7 of uqwk on my Unix host and use it in the
scripts below. The scripts you use could be much smaller than mine by
using uqwk switches and removing all the commented code I've put in it (
I use this makepack.csh to make other scripts ).
Please post a follow up question if uqwk doesn't work for you.
(I changed the line #define MAILER_PATH .?. to MAILER_PATH "pine"
in uqwk.h and it compiled fine for me after I typed make.)
I've pasted in the scripts I actually use (after I removed my password)
to illustrate one way of interacting with Yarn, uqwk and USENET. I would
like to improve these scripts, so anyone feel free to correct, improve
them, or flame me (publicly) for putting such lengthy, neophyte scripts on
USENET. [Better yet, I wish I could see other people scripts.]
Vty, Frank
============================================================================
I am just learning UNIX and ASPECT, so IMO there are much better ways to
do what I do below. I just don't know what they are yet. Since only I
use them, they aren't professional. They just work for me.
============================================================================
I. This is used by the procom script in III below
=======================================================================
This is the script I used to get your usenet article into a SOUP packet
=======================================================================
#!csh
# makepack.csh; 12/28/93; ftmexpat@crl
# download SOUP packets from uqwk to be used with yarn 0.50
# my user name is ftmexpat ($user) and the host is crl.com
# see uqwk.cat zip.man and sz.man for switch documentation
# zipnews and bluewavenv var aren't in this file.
# set up options
# Honor Xref header lines in news articles; potentially dangerous
# to the reader. If 1 only the first crossposted article will be packed.
# UQ_XRF_MODE 1
setenv UQ_HDPF_MODE 1 # SOUP mode
#set the variables that change the most
setenv UQ_DO_MAIL 1 # process the mail
setenv UQ_DO_NEWS 1 # process the news
setenv UQ_MAX_BLKS 12000 # maximum blocks
#make mail and news packets using .newsrc
# 128 X 12000 = 1,536,000 ==> max limit in system is 3,465,000 or
# there may be extra charge.
#file locations
setenv UQ_MAIL_FILE "$home/temp/mail.uqwk" # mail file location
setenv UQ_NRC_FILE "$home/.newsrc.lin" # .newsrc file location
# this won't work for
# ~/.newsrc.lin
#optional flags for testing
setenv UQ_PRT_OPTS 0 # print run-time options and stop
setenv UQ_READ_ONLY 0 # don't update mail and news files
#user information
#setenv UQ_USER_NAME $user
#setenv UQ_HOME_DIR $home
# system variables
#setenv U_TRN_FILE
# news group name translation table
#setenv U_ACT_FILE "/var/local/news/active"
#set these to use us file
#setenv UQ_SUM_FILE "sum.uqwk" #summary file;exec in summary mode
#setenv UQ_SEL_FILE "select.uqwk" #section file;exec in selection mode
#qwk packet options
#setenv UQ_XPRT_MODE 1 #set expert mode
#setenv UQ_INC_HDRS 1 #include headers
# this is where the user's mail files are
set dirmail="/var/spool/mail/$user"
cd ~
# backup up the .newsrc.lin file
cp ~/backup/newsrc.lin ~/backup2/newsrc.lin
cp ~/.newsrc.lin ~/backup/newsrc.lin
echo .newsrc.lin file copied to $home/backup
cp ~/backup/mail.bak ~/backup2/mail.bakk
cp ~/temp/mail.uqwk ~/backup/mail.bak
cp $dirmail ~/temp/mail.uqwk
cp ~/.ftmexpat.blank $dirmail
echo Starting uqwk . . .
uqwk
# mv $user.nw1;2cws tmpfile
# tr '\032' '\040' <tmpfile >$user.nws
# rm tmpfile
zip -m $user.hel AREAS *.MSG
sz -bn $user.hel # $user.hel can no exist on current machine
echo Packet download complete.
rm $user.hel
II. Uploading to Unix
=============================================================================
This is the script I use to transmit news and mail articles to my UNIX host
with procom plus 2.01 for dos. I will change this in the future because
I don't have enough error checking and I don't like using command switches
for scripts I will forget about. Note this script would be much smaller
without out all the procom plus error checking.
=============================================================================
;***********************************************************************
;* *
;* crlsend.ASP *
;* 12/16/93; ftmexpat@crl.com *
;* An ASPECT script for logging on to an crl Internet connections *
;* And transmitting SOUP messages *
;* *
;***********************************************************************
;
;***********************************************************************
;
define RBBS_ENTRY "9" ; entry on procom
define LOGIN_NAME "ftmexpat" ; my login name
define PASSWORD "xxxx" ; my crl password
proc main
; if not fromddir
dial RBBS_ENTRY
; endif
waitfor "crl login: " ;6 ; wait for first prompt
pause 1
if waitfor
transmit LOGIN_NAME ; send your first name
transmit "^M" ; followed by a carriage return
waitfor "Password:" ; end of password prompt
pause 1
if waitfor
transmit PASSWORD ; send your password
transmit "^M" ; followed by a carriage return
if waitfor
waitfor "TERM = (vt100) "
pause 1
transmit "^M"
waitfor "%"
pause 1
if waitfor
transmit "cd ~"
transmit "^M"
else
call error
endif
waitfor "%"
pause 1
if waitfor
transmit "echo Prepare to upload $user.pst"
transmit "^M"
else
call error
endif
waitfor "%"
pause 1
if waitfor
transmit "rz"
transmit "^M"
else
call error
endif
SENDFILE ZMODEM "ftmexpat.pst"
waitfor "%"
pause 1
if waitfor
transmit "unzip -aoU $user.pst"
transmit "^M"
else
call error
endif
waitfor "%"
pause 1
if waitfor
transmit "rm *.pst"
transmit "^M"
else
call error
endif
; don't download mail or news, <-m,-n>
; process SOUP info in REPLIES, <+L, -RREPLIES>
; crl.com is the unix host, <-dcrl.com>
waitfor "%"
pause 1
if waitfor
transmit "uqwk -m -n +L -dcrl.com -RREPLIES"
transmit "^M"
else
call error
endif
waitfor "%"
pause 1
if waitfor
transmit "echo uqwk post to crl.com complete!"
transmit "^M";
else
call error
endif
else ; error on tset = vt100
call error
endif
else ; error on password
call error
endif
else ; error on login
call error
endif
endproc
proc error
alarm 2
terminal
endproc
;============================================================================
III. The procom plus script I use to run the first csh script makepack.csh
=============================================================================
;***********************************************************************
;* *
;* crlnewge.ASP *
;* 12/16/93; ftmexpat@crl.com *
;* An ASPECT script for logging on to an crl Internet connections *
;* getting USENET articles and exiting *
;* *
;***********************************************************************
;
;***********************************************************************
;
define RBBS_ENTRY "9" ; entry on procom
define LOGIN_NAME "ftmexpat" ; my login name
define PASSWORD "xxxx" ; my crl password
proc main
; if not fromddir
dial RBBS_ENTRY
; endif
waitfor "crl login: " ;10 ; wait for first prompt
pause 1
if waitfor
transmit LOGIN_NAME ; send your first name
transmit "^M" ; followed by a carriage return
waitfor "Password:" ; end of password prompt
pause 1
if waitfor
transmit PASSWORD ; send your password
transmit "^M" ; followed by a carriage return
if waitfor
waitfor "TERM = (vt100) "
pause 1
transmit "^M"
else
call error
endif
else
call error
endif
else
call error
endif
waitfor "%"
pause 1
if waitfor
transmit "getnews" ; does source makepack.csh
transmit "^M"
else
call error
endif
;logout and leave procom plus
waitfor "Packet download complete." ;10
pause 1
if waitfor
transmit "logout" ; send your password
transmit "^M" ; followed by a carriage return
transmit "disconnecting"
quit
else
call error
endif
endproc;main
proc error
alarm 2
terminal
endproc
+------------------------------------------------------------------------+
| Frank McNeil | The Foolish man doesn't learn from his mistakes. |
| ftmexpat@crl.com | The Average man learns from his mistakes. |
| Tax Code Junkie | The Wise man learns from other peoples mistakes. |
+------------------------------------------------------------------------+
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads