Subj : Scanning for new messages
To   : All
From : MysticOne
Date : Tue Jan 01 2008 06:51 pm

Hi all, hopefully a fairly quick question.  I already ran this by Deuce in
#synchronet, but he wasn't quite sure and suggested I ask DM.  Rather than send
a message directly to DM, I figured I might as well use the echo!  Woooo!

Anyway, I've written my own shell in JavaScript.  For the option that users can
select to scan for new messages, I have it executing:

   bbs.scan_subs(SCAN_NEW, false);

This works great at scanning new messages, but, it fails to constrain the scan
to only the areas that are enabled in the new message scan config.  I looked at
the the other copies of the JavaScript shells (lbshell.js and whatever the
classic one is), and they're doing the same thing that I'm doing.  While
perusing the CVS repo, though, I noticed that lbshell.js had a change at one
time that didn't use bbs.scan_subs(), but actually went through a list of the
areas where the user had enabled new message scanning, and then scanned those
areas individually for new messages.  I'd like to avoid that if possible, but,
thought I'd toss it to the echo and see what you all think.

Thanks!

-- MysticOne

---
� Synchronet � :: The Realm of Dreams :: telnet://bbs.mysticone.com