🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #9560

Re: HELP!!!! Looking for an newsreader/e-mail software combo

#9560
From: Sven C. Dack
Date: Wed, 15 Jun 1994 00:48
29 lines
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
Technical Details
Message-ID: <DACK.94Jun15024853@este.darmstadt.gmd.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!nntp.gmd.de!nntp.gmd.de!dack
References: <1994Jun14.220554.6547@kocrsv01.delcoelect.com> <DACK.94Jun15023350@este.darmstadt.gmd.de>

Show Full Headers
Complete Article Headers
Message-ID: <DACK.94Jun15024853@este.darmstadt.gmd.de>
Subject: Re: HELP!!!! Looking for an newsreader/e-mail software combo
Date: Wed, 15 Jun 1994 00:48:53 +0000
From: dack@este.darmstadt.gmd.de (Sven C. Dack)
References: <1994Jun14.220554.6547@kocrsv01.delcoelect.com> <DACK.94Jun15023350@este.darmstadt.gmd.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!nntp.gmd.de!nntp.gmd.de!dack
Newsgroups: news.software.readers
Organization: GMD-IPSI, Darmstadt, Germany
Lines: 29
Distribution: na
NNTP-Posting-Host: este.darmstadt.gmd.de
In-reply-to: dack@este.darmstadt.gmd.de's message of 15 Jun 1994 00:33:50 GMT