Subj : RE: Nav To : All From : RUBEN FIGUEROA Date : Thu Jan 31 2019 19:12:49 Date: Mon, 13 Sep 1999 16:41:40 -0400 From: RUBEN FIGUEROA To: EARL BORAH Subject: RE: Nav Newsgroups: win.navigator Message-ID: <1036424799.34.937240059@winserver.com> X-Mailer: Wildcat! Interactive Net Server v7.0.454.5 Lines: 38 -> Here's the code I use in the custom htmlutil-msg I made for WMP: -> // MY ADDITION - check for unread messages -> if SearchMessageById(c, GetLastRead(c), msg) then -> if msg.id > GetLastRead(c) then -> // Last read was deleted, but there's a newer message -> TemplateSetVariable("confnew", str(TRUE)) -> else // Last read found, look for next -> TemplateSetVariable("confnew", str(GetNextMessage(msg))) -> end if -> else // Last read was deleted, can't find newer message -> TemplateSetVariable("confnew", str(FALSE)) -> end if -> // END ADDITION Just a clarification. The theory is that this code wouldn't slow down things too much more than they are now. There are a maximum of 3 server calls (GetLastRead, SearchMessageById, and GetNextMessage) in the code. The GetNextMessage isn't called under all circumstances, so often there are only 2 server calls. From the way wcNav behaves I assume you're already doing two calls (GetLastRead and GetHighMessageNumber), so it's really a maximum of one extra call to the server. I'm not sure how much load SearchMessageById and GetNextMessage generate compared to just GetHighMessageNumber, so all things may not be equal, but it's still a pretty compact piece of code. I intentionally made this as compact as possible, with as few server calls as possible. What do you think? --- Platinum Xpress/Win/WINServer v3.1 * Origin: Prison Board BBS Mesquite Tx //telnet.RDFIG.NET www. (1:124/5013) .