🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
1 messages
1 total messages Started by Greg Wooledge Thu, 14 Aug 1997 00:00
Re: Mailing news
#35800
Author: Greg Wooledge
Date: Thu, 14 Aug 1997 00:00
34 lines
1718 bytes
On 6 Aug 1997 14:33:21 GMT, Lou Anschuetz <lou@zaphod.ece.cmu.edu> wrote:

>We have a user who does not wish to invoke a newsreader to read
>news, but wants to have all new articles in certain groups mailed
>to him.

If you're willing to grant this request, I'd probably do so with a simple
shell program.  Keep a datestamp file in his home directory, and use
something like this:

cd /var/spool/news/some/group
ls | while read art
do
	if [ $art -nt $HOME/.datestamp.some.group ]; then
		mailx -s "some.group $art" his@mail.address < $art
	fi
done
touch $HOME/.datestamp.some.group

You may want to add some error checking before "cd"....  Run from news's
cron or some other appropriate place.  Be aware that doing this may place
a significant load on your mail system, on your outgoing SMTP if his
address isn't local, etc.

>Please e-mail responses if you would. Thanks!

Posted & mailed.
-- 
------------                  Greg Wooledge                  -------------
-------                   wooledge@kellnet.com                     -------
---              http://kellnet.com/wooledge/main.html                 ---

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