*BSD News Article 95523


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.mel.aone.net.au!news.mira.net.au!pumpkin.pangea.ca!eru.mt.luth.se!newsfeed2.luth.se!news.luth.se!newsfeed.sunet.se!news99.sunet.se!news00.sunet.se!sunic!mn6.swip.net!seunet!news2.swip.net!nike.volvo.se!cyklop.volvo.se!peter
From: peter@cyklop.volvo.se (peter hakanson)
Newsgroups: comp.mail.sendmail,comp.unix.bsd.freebsd.misc
Subject: Re: mail status check?
Followup-To: comp.mail.sendmail,comp.unix.bsd.freebsd.misc
Date: 16 May 1997 15:30:36 GMT
Organization: Volvo Corp.
Lines: 47
Message-ID: <5lhuis$l0b@nike.volvo.se>
References: <01bc61f8$fb494d00$6330fa9e@org-qsar2.chem.msu.su>
NNTP-Posting-Host: cyklop.volvo.se
X-Newsreader: TIN [version 1.2 PL2]
Xref: euryale.cc.adfa.oz.au comp.mail.sendmail:40903 comp.unix.bsd.freebsd.misc:41049

Eugene,
i made a cgi-script to execute "mailq".

(providing you start a httpd on the mailserver, but
it's really nice to give users a possibility to check
status, change passwords and redirect their mail)

here it is:
#!/bin/sh

#       BSDI    $Id: uptime,v 1.1.1.1 1995/01/11 01:04:36 polk Exp $

CMD=/usr/bin/mailq

echo Content-type: text/plain
echo
echo "Mail queue status at `date`"

if [ -x $CMD ];  then
        $CMD
	else 
	echo "Something wrong"
fi


Eugene Radchenko (genie@qsar.chem.msu.su) wrote:
: Hi!
: Can somebody point me (no click, please) to some way of checking the status
: of mail messages for non-shell users (who cannot run a mailq to verify that
: message was indeed sent). Mail robot program or WWW script would be nice.
: Ability to leave just the latest sending attempt from the log would be
: great.

: Thanks in advance		Genie

: -- 
: #########################################################
: Eugene V. Radchenko              Research associate, Computer Chemistry
: E-mail: genie@qsar.chem.msu.su               http://org.chem.msu.su/~genie
: ===================================================
: Once installed, CD-ROM can be connected to Internet via your 
: computer's modem    ----  TV Commercial, Intel Corp. Russia

--
--
<peter.devnull@cyklop.volvo.se> (remove ".devnull" before use!)
Peter Hakanson  VolvoData Dep 2580 phone +46 31 66 74 27