• src/sbbs3/getmsg.cpp msgd

    From rswindell@VERT to CVS commit on Tuesday, July 24, 2018 05:15:00
    src/sbbs3 getmsg.cpp 1.73 1.74 msgdate.c 1.5 1.6 sbbs.h 1.481 1.482 scansubs.cpp 1.24 1.25 text_defaults.c 1.46 1.47 userdat.c 1.198 1.199
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv5685/sbbs3

    Modified Files:
    getmsg.cpp msgdate.c sbbs.h scansubs.cpp text_defaults.c
    Log Message:
    Singificantlly improve message scan pointer initialization (e.g. for new
    users) and adjusting scan ptrs by date or set to "Last msg" while online:
    - speed (on my system, reduced from 12 to < 2 seconds)
    This involved 2 enhancements: check msgbase index file timestamp (fast)
    before opening any files. When opening the msgbase, just open the index
    file (no other msgbase files) - required new smblib function: smb_open_index. - fixed off-by-one when setting by date (when setting the new-scan ptr to
    Jan-1-2018, you want that first message posted on/after Jan-1-2018 to be
    found as "new", not the first message posted *after* that date.
    - re-added the fixmsgptrs() call in putmsgptrs(), inadvertently removed
    in the .ixb -> .ini ptr storage update in rev 1.192 of userdat.c.

    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net