Thread View: news.software.readers
5 messages
5 total messages
Started by Andy Tenka
Tue, 14 Jun 1994 22:05
HELP!!!! Looking for an newsreader/e-mail software combo
Author: Andy Tenka
Date: Tue, 14 Jun 1994 22:05
Date: Tue, 14 Jun 1994 22:05
31 lines
1775 bytes
1775 bytes
I am looking for a news reader that can do the followings: 1. Automatically e-mail the articles in the subscribed newsgroups to a specified e-mail address. 2. Feature (1) may be invoked by using cron to run the reader on periodic basis. OR 1. Automatically e-mail the SUBJECTS of the articles in the subscribed newsgroups to a specified address. 2. Feature (1) may be had by using cron to run the reader on periodic basis. OR 1. Automatically COPY the articles in the subscribed newsgroups to a file. 2. Feature (1) may be used by using cron to run the reader on periodic basis. Please tell me where I can get this kind of newsreader, and where I can get the documentation of the reader. If this kind of reader doesn't exist, I will attempt to write one for my own use. Once again, I need the advice of the news gurus on the followings: 1. Where are the news article files usually stored in UNIX systems? 2. What is the format of these files? Thanks a bunch. andy
Re: HELP!!!! Looking for an newsreader/e-mail software combo
Author: Sven C. Dack
Date: Wed, 15 Jun 1994 00:33
Date: Wed, 15 Jun 1994 00:33
38 lines
1796 bytes
1796 bytes
Andy> I am looking for a news reader that can do the followings:
Andy> ...
Andy> Please tell me where I can get this kind of newsreader, and
Andy> where I can get the documentation of the reader.
Andy> If this kind of reader doesn't exist, I will attempt to write
Andy> one for my own use. Once again, I need the advice of the news
Andy> gurus on the followings:
Andy> 1. Where are the news article files usually stored in UNIX systems?
/usr/spool/news
Andy> 2. What is the format of these files?
plain ascii
A simple shell script to do the job could look like this:
#!/bin/sh
MAILTO=andy
GROUP=/usr/spool/news/foo/bar
LASTN=-1
while [ 0 ];
CURN=`ls $GROUP | egrep '^[0-9]+$' | tail -1`
while [ $LASTN < $CURN ]; then
mail
if [ $LASTN < $CURN ]; then
--
Sven C. Dack / GMD-IPSI, Dolivostr. 15, 64293 Darmstadt / dack@darmstadt.gmd.de
"If it doesn't fit, use a bigger hammer." - Chief Engineer Miles O'Brien
LOAD "VMUNIX",8,1
Re: HELP!!!! Looking for an newsreader/e-mail software combo
Author: Sven C. Dack
Date: Wed, 15 Jun 1994 00:48
Date: Wed, 15 Jun 1994 00:48
29 lines
1669 bytes
1669 bytes
Sorry, pressed thw wrong key ... so here is the complete script:
#!/bin/sh
MAILTO=andy
SUBJECT="automatic mail"
GROUP=/usr/spool/news/foo/bar
SLEEP=3600
LASTN=-1
while [ 0 ]; do
CURN=`ls $GROUP | egrep '^[0-9]+$' | tail -1`
while [ $LASTN -lt $CURN ]; do
if [ -f $GROUP/$LASTN ]; then
cat $GROUP/$LASTN | sed 's/^~/~~/' | Mail -s $SUBJECT $MAILTO
LASTN=`expr $LASTN + 1`
done
sleep $SLEEP
done
Ok, haven't tested it but it should give at least a hint how it could
be done using sleep(1) instead of cron (a cron script would make it
necessary to store the last mailed article's number).
--
Sven C. Dack / GMD-IPSI, Dolivostr. 15, 64293 Darmstadt / dack@darmstadt.gmd.de
"If it doesn't fit, use a bigger hammer." - Chief Engineer Miles O'Brien
LOAD "VMUNIX",8,1
Re: HELP!!!! Looking for an newsreader/e-mail software combo
Author: Steven King, Software Archaeolog...
Date: Wed, 15 Jun 1994 16:16
Date: Wed, 15 Jun 1994 16:16
56 lines
3039 bytes
3039 bytes
c22at@kocrsv01.delcoelect.com (Andy Tenka) publicly declared:
>I am looking for a news reader that can do the followings:
>1. Automatically e-mail the articles in the subscribed newsgroups to a
> specified e-mail address.
>OR
>1. Automatically e-mail the SUBJECTS of the articles in the subscribed
> newsgroups to a specified address.
>OR
>1. Automatically COPY the articles in the subscribed newsgroups to a file.
Trn can do all of the above via KILL files. The script included below
runs trn in unattended batch mode to process the KILL files for each
newsgroup. Simply set up commands in the KILL files to mail or save the
articles, et voila!
A sample KILL file command to mail all articles would be:
/./:s|mail -s "This is an article" user@site.domain
Read the trn man page for more information regarding KILL file commands
(also known as "Memorized Commands"). You can really do a heckuvalot
with them.
>Please tell me where I can get this kind of newsreader, and where I can
>get the documentation of the reader.
Trn is available on ftp.uu.net, and probably other sites as well.
---=== Cut Here ===--- ---=== Cut Here ===--- ---=== Cut Here ===---
#!/bin/sh
# trnkill - shell script to apply trn KILL files in the background
# 14 Mar 89 created by Jim Olsen <olsen@XN.LL.MIT.EDU>
# 10 Sep 93 modified for trn 3 (or 2) by Wayne Davison <davison@borland.com>
# Options: -d debug mode -- you see all gory action as it happens.
# Visit all newsgroups (if trn asks about anything else, just say no)
export TRNINIT TRNMACRO RNMACRO
TRNINIT='-q -s -T -t -x +X'
TRNMACRO=/tmp/trnkill$$
# support for trn 2.x
RNMACRO=$TRNMACRO
trap 'rm -f $TRNMACRO; exit' 1 2 3 15
echo "z %(%m=[nf]?.q^M:n)^(z^)" > $TRNMACRO
if test X$1 = X-d; then
echo "z" | trn
else
echo "z" | trn >/dev/null 2>&1
fi
rm -f $TRNMACRO
exit 0
---=== Cut Here ===--- ---=== Cut Here ===--- ---=== Cut Here ===---
--
----------------------------------------------<Steven King, king@cig.mot.com>--
A little inaccuracy sometimes saves tons of explanation.
(H. H. Munro [Saki])
Re: HELP!!!! Looking for an newsreader/e-mail software combo
Author: Larry W. Virden
Date: Wed, 15 Jun 1994 16:18
Date: Wed, 15 Jun 1994 16:18
19 lines
1842 bytes
1842 bytes
What system are you using? If you are using Unix, trn article selection files (kill files) can be used to send articles. A friend has entries like: /satellite/a|rnm kdm26 in his kill files, then has rnm in his $PATH which takes it's stdin and sends it in the mail (greping the Subject and Newsgroup and putting it into the Subject line). Even better, he runs trnkill (a command provided by Wayne in the past here in this group) from his cron so that when he get's in to work, the articles are all waiting him. Of course, if you have delivery, mailagent, procmail, etc. you can set those up to catch the incoming mail msgs and drop them into special mail boxes! -- :s Great net resources sought... :s Larry W. Virden INET: lvirden@cas.org :s Personal: 674 Falls Place, Reynoldsburg, OH 43068-1614 The task of an educator should be to irrigate the desert not clear the forest.
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