Set Newscan Date Module
The set_newscan_date module allows setting newscan dates for message conferences and areas, the file base, or a global newscan floor. The behaviour depends on the target configured for the menu entry.
| Target | What it does |
|---|---|
message | Finds the message ID at the given date and writes it to user_message_area_last_read for the selected area(s). This is a direct pointer move — it can go backwards or forwards. |
file | Moves the file base last-viewed pointer to the file ID at the given date. |
floor | Stores the date as the user’s newscan_min_timestamp property — a non-destructive floor. Per-area read pointers are untouched; the newscan engine uses MAX(per-area pointer, id@floor) as the effective starting point for each area, except private mail, which the floor never affects. See Configure Newscan for the full floor date concept. |
Configuration
Section titled “Configuration”Configuration Block
Section titled “Configuration Block”Available config block entries:
target:message,file, orfloor. Defaults tomessage.scanDateFormat: Format for the date entered by the user. Must match the output of the%ME1MaskEditView. Defaults toYYYYMMDD(matches mask####/##/##).allowClear:floortarget only. Whentrue(the default), submitting a blank date removes the user’snewscan_min_timestampproperty, so there is no floor, and returns to the previous menu. Whenfalse, a blank date is an error as it is for the other targets. Has no effect onmessageandfile, where a blank date is always an error. A partly entered date is invalid either way.
Theming
Section titled “Theming”Message Conference & Areas (target: message)
Section titled “Message Conference & Areas (target: message)”The following itemFormat fields are available on MCI 2 (%SM2) for selecting the target conf/area:
conf: An object containing:confTag: Conference tag.name: Conference name. Also available as{text}.desc: Conference description.
area: An object containing:areaTag: Area tag.name: Area name. Also available as{text}.desc: Area description.
File Base (target: file) and Floor (target: floor)
Section titled “File Base (target: file) and Floor (target: floor)”No %SM2 is used — only the %ME1 date input field is required.
When target is floor, the date field is pre-populated with the user’s current floor date (if one is set), making it easy to review and adjust. To clear the floor, the user empties the field (Ctrl-Y or backspace) and submits it blank.
Submit Actions
Section titled “Submit Actions”The submit action must map to @method:scanDateSubmit and include scanDate in the form data. For target: message, targetSelection (an index into the conf/area list) must also be provided.