Article View: news.software.readers
Article #35800Re: Mailing news
From: Greg Wooledge
Date: Thu, 14 Aug 1997 00:00
Date: Thu, 14 Aug 1997 00:00
34 lines
1718 bytes
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 ---
Technical Details
Message-ID:
<slrn5v4n2f.fgd.wooledge@phoenix.local>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<5sa1vh$b1c@fs7.ece.cmu.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrn5v4n2f.fgd.wooledge@phoenix.local> Subject: Re: Mailing news Date: Thu, 14 Aug 1997 00:00:00 +0000 From: wooledge@kellnet.com (Greg Wooledge) References: <5sa1vh$b1c@fs7.ece.cmu.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 264081920 Organization: homo sapiens Reply-To: wooledge@kellnet.com Newsgroups: news.software.readers