Skip to content

New Message Scan Routine

Damon Getsman edited this page Aug 17, 2015 · 2 revisions

This page is for documenting the control flow for the process of scanning for new messages.

  1. ddoc2.js - entry point found in primary flow control; any of the appropriate keystrokes will be passed on via msg_base.entry_level.handler(uchoice);
  2. dmbase.js - msg_base.entry_level.handler() passes off control (for the keystroke n) to msg_base.readNew() (which has been moved to within msg_base.read_cmd)
  3. dmbase.js - msg_base.readNew() passes off control to scanSub(), provided msg_area.sub[bbs.cursub_code].scan_ptr < mBase.last_msg; NOTE that this is potentially causing issues when the last message is deleted or null
  4. dmbase.js - msg_base.readNew(), after scanSub() has completed its task, calls docIface.nav.findNew()
  5. ddoc2.js - docIface.nav.findNew()