Subj : Unique e-mail addy?
To   : Uberhund
From : PistolGrip
Date : Mon May 28 2001 02:00 pm

RE: Unique e-mail addy?
BY: Uberhund to All on Mon May 28 2001 08:49 pm

> Got a bit of a poser here.  I'm trying to rewrite PG's validation by email
> module, and I'm attempting to dtermine if the email address that the user
> entered is unique .  I figure that this will require parsing the user DB and
> doing a substring match on all the entered email addresses (sort of like the
> finduser function, except for netmail addresses).  Can anybody point me in t
> right direction of something that might approximate this behavoir?  I've tri
> looking for "example" code, but I haven't found anything that smacks of what
> want to do.

Easy, just open the user.dat manually and compare the email address to every
record.  You just have to write the code to keep track of the file position
and record size.

Not the easiest thing to do with BAJA, but I've done it several times in
various mods.  Be careful to open the user.dat read-only.

I'm not going to give you the code as you are trying to copy my mod :-)

PG

---
� Synchronet � WasteLand BBS � telnet://wasteland.darktech.org