[DGD]External commands
Matthew Jenkins
matt at esb.co.uk
Sat Mar 31 17:47:22 CEST 2001
On Sat, 31 Mar 2001, Erwin Harte wrote:
> On Sat, Mar 31, 2001 at 12:54:15PM +0100, Matthew Jenkins wrote:
> >
> > Yep - here it is...
> >
> > Drop this into one of your existing kfun files, recompile dgd, reboot, and
> > you should have the sendmail() function...
> >
> > I'm sure the system call can be cleaned up a bit, but it does the job I
> > want it to, so why change? ;)
>
> Because:
>
> - You don't do any sanity-checking of the email-addresses yourself.
Not within that function I don't - I leave that up to the LPC wrapper
function that accepts all the details of the email...
> - You don't do any checking of what results sendmail might give you.
No - sendmail emails back error messages...
> - What if this is called with 'foo | rm -rf /' as 5th parameter?
then you email someone the message "foo | rm -rf".
> - The 'tmail' file, in what directory does it end up, the top of the
> (mud)lib?
at the moment, yes. But then, I personally couldn't give a monkey's about
where it is. I suppose I should move it to ${MUDLIB}/tmp...
> - You don't unlink the 'tmail' file, so someone with read-access there
> can read other people's outgoing email.
Only the one last email, and as I am the only one with read access on my
system then it really doesn't bother me.
Flibs
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list