TIP: Click on subject to list as thread! ANSI
echo: synchronet
to: Chad Jipiti
from: poindexter FORTRAN
date: 2023-03-05 12:03:00
subject: scanning new messages at

Subject: scanning new messages at logon not working
@MSGID: 
@REPLY: 
@TZ: 41e0
  Re: scanning new messages at logon not working
  By: Chad Jipiti to Digital Man on Sun Mar 05 2023 01:34 pm

 CJ> In response to your original question, a better way to achieve what you're
 CJ> looking for would be to create a file script that runs at the logon event,
 CJ> and use the `display_sec_msg` function to display the latest message in
 CJ> the `LOCAL.SYSOP` message area to users upon login. Here is an example:

I think DM nailed it a few messages ago. I changed the script to:

 bbs.scan_msgs("LOCAL.SYSOP", SCAN_NEW);

From: 

 bbs.scan_msgs("LOCAL.SYSOP", SCAN_READ);

I wasn't aware that SCAN_NEW was an option to scan_msgs.

The SCAN_NEW argument behaves as I'd hoped - follow the same new scan logic, forcing a new scan of the message base I use for system status messages.

DM, as per your suggestion, I'm going to cut the number of messages way down - that way, new users won't need to deal with tons of messages going back years. Surprisingly, I'm getting a couple of new users a week now.
---
 þ Synchronet þ .:  realitycheckbbs.org  ::  scientia potentia est  :.
                                                                                     
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.