You could always simply store all the e-mails in a single files (eg. ../data/email.dat) and upon bootup, load the file into memory and store it in a linked list, maybe hash it based on the whatever.com if you have that many files. I'd suggest not stepping into threads if you haven't before (unless you want to learn, then all the power to ya!). It makes debugging a horrible, hair-removing experience ;). Then, upon entering the new e-mail, cycle through the list of e-mails you have loaded into memory and if it finds it, return false, or whatever. If you're worried about memory, well, I'm sure 1000 e-mails wouldn't be much more than a char *email (Hell, even char email[251]) and EMAIL *next wouldn't take up that much room. Assuming 251 and next, you'd only have like, 245kb-ish. And if you hash, you wouldn't need to search that many nodes, so it wouldn't be like parseing the entire char_list (mobs and all).
Davion -- A MudBytes Administrator http://www.mudbytes.net - A Code Repository -- ROM mailing list [email protected] Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom

