[comp.sys.amiga] Mailchk for Dnet

duncan@csd4.csd.uwm.edu (Shan D Duncan) (02/28/90)

I occasionally use dnet for its multiterminal capability.  One
difficulty though was fterm did not support mail notification
programs such as biff.  There is a workaround... opening another
fterm window as 8193 - you lose resizing but gain talk abilities.
Thanks to Kent Polk for reminding me of this. (rlogining would
also work but adds another loop).

Recently  Stephane LAROCHE provided MAILCHK (in
comp.sources.amiga).  A server that allows on to read mail on
your amiga using your favorite viewer that supports Dpipe.  Nice.
A window pops up and lets you know when you have new mail, lets
you select a message read it then it sits back down and is quiet
until more mial arrives.  However, Mailchk would not work on our
system for two reasons.

1) Our stdio does not have cuserid, though my book on unix C says
it is part of the "standard" i/o.  Rats!  Stephane to the rescue:



 replacement for cuserid(buf)  is

                   'strcpy(buf,(char *) getenv("USER"))'

Yes,  Works.  WEll... sortof.  Our mail package does not support
the mail -H option but the header information is correct

(i.e   |N  1  duncan@csd4.csd.uwm.edu Sun Feb 25 15:05   75/2152  smailchk -|)

 so I got rid of Mail -H and compiled it with just  mail.(no -H option)
(Yuck I know).

So it works now but doesn't get the message count correct.  It
does view mail and delete mail correclty, pops up when it should
and stays silent So...


Thanks to Stephen for his help and his program, Kent for his
advice, Matt for his help and Dnet.

-Shan