Skip to content

New Scan Module

The new_scan module looks for new messages, conference by conference and area by area (private mail first), and shows each area with something new in a message list. When the message base is done it looks for new files and shows them in a file list. The stock login sequence runs it as fullLoginSequenceNewScan, after asking the caller whether to (callers on their first call are not asked).

What counts as new follows the caller’s last-read pointers, their newscan area selection and their newscan floor date (see Configure Newscan).

Available config block entries:

ItemDefaultDescription
newScanMessageListnewScanMessageListMenu that shows an area’s new messages (a msg_list menu). It is given the area as extraArgs.messageAreaTag.
newScanActivityPubListnewScanActivityPubListMenu used instead for an ActivityPub area.
newScanFileBaseListnewScanFileBaseListMenu that shows the new files (a file_area_list menu).
skipFileBasefalsetrue scans the message base only: the file base is not scanned, its menu is never entered, and the caller’s file base “last viewed” position is left as it was.
skipMessageBasefalsetrue scans the file base only: the message base is not scanned and newScanMessageList is never entered. The mirror of skipFileBase; with both set there is nothing to scan and the module finishes at once, going to next.
omitMessageAreaTagsnoneMessage area tags (a string or an array) not to scan.
omitFileAreaTagsnoneFile area tags not to scan.
scanStartFmtScanning {confName} - {areaName}...Status text while an area is scanned. {confName}, {confDesc}, {areaName} and {areaDesc} are available.
scanCompleteMsgFinished newscanStatus text when the scan is done: after the message base, or after the file base in a skipMessageBase scan.

The status text goes to %TL1, which the menu’s art must have.

skipFileBase is for menu trees that have no file base menus, for example the PETSCII and ATASCII starter menus, or for a “new messages” entry on a message menu:

messageBaseNewScan: {
desc: New Scan
module: new_scan
art: NEWSCAN
config: {
skipFileBase: true
}
}

skipMessageBase is for a board where something else, such as a mod’s message reader, does the message part of the login new scan, and callers still get the file base scan. Chain a files-only entry after the reader (the reader’s login entry has next: fullLoginSequenceFileScan), keeping the stock next so login carries on to System Stats:

fullLoginSequenceFileScan: {
desc: New Files
module: new_scan
art: NEWSCAN
config: {
skipMessageBase: true
}
next: fullLoginSequenceSysStats
}

A scan saved before the option was set, for example one left in the message base, carries on at the file base.

When the scan finishes, the menu goes to its next, or back to the previous menu when it has none. A caller who leaves a message list with the full exit key (fullExit in msg_list) ends the whole scan.