Subj : Reading the scan_ptr for the 'mail sub' To : Digital Man From : Nightfox Date : Mon Mar 23 2015 09:35 pm Re: Reading the scan_ptr for the 'mail sub' By: Digital Man to Nightfox on Mon Mar 23 2015 20:11:26 > DM>> Users can read their mail out-of-order, so the concept of > DM>> "lastReadMsgIdx" doesn't really apply here. >> Users can read messages on sub-boards out of order too though.. The >> message read prompt lets users enter a message number and it will jump >> directly to that message. A user could jump around messages in a >> sub-board that way. DM> Right, but we don't store a separate "message read" flag for every message DM> for every user. That's why we use a single "highest message number read" DM> pointer for each user for each sub-board. Email uses a different method. I see what you're saying. Conceptually, they seem different but also slightly similar. For personal email, if you want to point the user to the first unread message (similar to a newscan in a sub-board), you could iterate through personal messages to the user, starting with the first, and look for the first message that doesn't have the "message read" flag set. The user could read their messages out of order, but that would still get them to an unread personal email. I think that's what Khelair was going for. Nightfox --- þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.com .