• src/sbbs3/readmsgs.cpp

    From rswindell@VERT to CVS commit on Sat May 2 00:29:09 2015
    src/sbbs3 readmsgs.cpp 1.70 1.71
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv914

    Modified Files:
    readmsgs.cpp
    Log Message:
    Optimize listmsgs() for SCAN_NEW mode (no need to read headers).
    Removed extra smb_freemsgmem() stuff in listmsgs() loop (leftover?).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Mon May 4 23:20:40 2015
    src/sbbs3 readmsgs.cpp 1.72 1.73
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv1371

    Modified Files:
    readmsgs.cpp
    Log Message:
    For the "Scan Msgs" mod, pass the sub-board internal code rater than the 'subnum' as the first command-line argument.
    Also, set the current sub-board value used for ARS comparisons before passing control to a Scan Msgs mod (if there is one), just in case the mod uses ARS (e.g. bbs.compare_ars) to check for access.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From deuce@VERT to CVS commit on Fri Aug 21 23:16:58 2015
    src/sbbs3 readmsgs.cpp 1.73 1.74
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv29010

    Modified Files:
    readmsgs.cpp
    Log Message:
    Fix warning, but if j is at UINT32_MAX+1, you're still going to have a
    Bad Time{tm}.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Sun Dec 6 19:41:20 2015
    src/sbbs3 readmsgs.cpp 1.78 1.79
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv3811

    Modified Files:
    readmsgs.cpp
    Log Message:
    Changes to sbbs_t::msghdr() - used by (H)eader command:
    Display translated to/from/reply net-type (from numeric to string).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Tue Dec 15 22:55:11 2015
    src/sbbs3 readmsgs.cpp 1.79 1.80
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv11835

    Modified Files:
    readmsgs.cpp
    Log Message:
    Fix bug introduced in rev 1.74 of this file (Aug-22-2015, by Deuce):
    The "Start with message number" prompt for the [F]ind text command would
    always start searching at message #64 due to typo (i=64 rather than i=i64). Maybe 'i64' isn't a good variable name.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Sun Nov 13 03:31:40 2016
    src/sbbs3 readmsgs.cpp 1.83 1.84
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv22089

    Modified Files:
    readmsgs.cpp
    Log Message:
    Fix typo (wrong number of bytes) in malloc error msg.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Tue Nov 22 23:40:35 2016
    src/sbbs3 readmsgs.cpp 1.90 1.91
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv547

    Modified Files:
    readmsgs.cpp
    Log Message:
    - It was very awkward to delete a poll (now you will be prompted to delete the
    poll if you answer No to the "Close Poll" question.
    - Display the "votes" msg header value for the sysop 'H'eader command.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Wed Nov 23 13:02:07 2016
    src/sbbs3 readmsgs.cpp 1.91 1.92
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv22209

    Modified Files:
    readmsgs.cpp
    Log Message:
    Zero-out the entire message (not just the total_hfields member).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Fri Dec 2 00:02:32 2016
    src/sbbs3 readmsgs.cpp 1.93 1.94
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv19292

    Modified Files:
    readmsgs.cpp
    Log Message:
    New command available to users while reading msgs: 'H'
    displays the 20 highest ranked messages in the sub-board based on up/downvotes and replies.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From DesotoFireflite@VERT/VALHALLA to rswindell on Fri Dec 2 07:46:55 2016
    Re: src/sbbs3/readmsgs.cpp
    By: rswindell to CVS commit on Fri Dec 02 2016 12:02 am

    New command available to users while reading msgs: 'H'
    displays the 20 highest ranked messages in the sub-board based on up/downvotes and replies.

    Awesome Feature

    SysOp: C.G. Learn, AKA: DesotoFireflite
    Valhalla Home Services! - (Synchronet) - bbs.valhallahomeservices.com:2323 Valhalla II! - (GAP) - bbs.valhallahomeservices.com
    A Gamers Paradise - Over 150 Registered Online Game Doors!

    --- Don't eat the yellow snow!
    þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.net
  • From rswindell@VERT to CVS commit on Mon Dec 5 04:15:40 2016
    src/sbbs3 readmsgs.cpp 1.95 1.96
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv13287

    Modified Files:
    readmsgs.cpp
    Log Message:
    Address a couple GCC warnings.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Tue Dec 6 09:05:53 2016
    src/sbbs3 readmsgs.cpp 1.96 1.97
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    readmsgs.cpp
    Log Message:
    Fixed use of smb_get_first_in_thread().


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Tue Dec 6 10:48:55 2016
    src/sbbs3 readmsgs.cpp 1.97 1.98
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv24231

    Modified Files:
    readmsgs.cpp
    Log Message:
    Beautified/colorized the thread listing a bit.
    Make sure pause ([Hit a key]) prompt doesn't appear on the same line as the Reading prompt.
    The '?' command now turns off "Thread View Mode".
    Backspace is now treated the same as '-' (move backwards through sub).
    When in Thread View mode, moving backwards now first searches for a thread
    with a lower thread ID and if that fails, look for any thread with a different ID.
    New Thread Nav command: Home (move to first msg in thread) and End (move
    to last message in thread). Last in this context means the last reply to last reply to the original message (not necessarily the newest reply). This is most obvious how this works when in Thread View mode.
    Moving forward through the sub (+ or <CR>) while in Thread View Mode now searches first for a thread with a higher thread ID, and if that fails, then any thread with a different ID.

    I experimented with not clearing the screen (homing the cursor and using clear to end of screen to remove old data), to avoid the "flash" while browing a thread, but both Netrunner and mTelnet appear to not support the <ESC>[J terminal escape sequence (clear to end of screen) correctly.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Mro@VERT/BBSESINF to rswindell on Tue Dec 6 16:31:17 2016
    Re: src/sbbs3/readmsgs.cpp
    By: rswindell to CVS commit on Tue Dec 06 2016 10:48 am

    browing a thread, but both Netrunner and mTelnet appear to not support the <ESC>[J terminal escape sequence (clear to end of screen) correctly.


    J is clear screen; K is erase line.

    how do they not handle it correctly? on my bbs i use esc[K all the time.
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::
  • From echicken@VERT/ECBBS to Mro on Tue Dec 6 17:57:29 2016
    Re: src/sbbs3/readmsgs.cpp
    By: Mro to rswindell on Tue Dec 06 2016 16:31:17

    <ESC>>[J terminal escape sequence (clear to end of screen) correctly.

    J is clear screen; K is erase line.

    ESC[2J is "clear entire screen".
    ESC[J is VT100 "clear to end of screen from cursor down".

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Digital Man@VERT to Mro on Tue Dec 6 16:01:33 2016
    Re: src/sbbs3/readmsgs.cpp
    By: Mro to rswindell on Tue Dec 06 2016 04:31 pm

    Re: src/sbbs3/readmsgs.cpp
    By: rswindell to CVS commit on Tue Dec 06 2016 10:48 am

    browing a thread, but both Netrunner and mTelnet appear to not support the <ESC>[J terminal escape sequence (clear to end of screen) correctly.


    J is clear screen; K is erase line.

    No, <ESC>[J (same as <ESC>[0J) is "clear to end of screen". You're thinking of <ESC>[2J which is "clear entire screen".

    how do they not handle it correctly?

    They both do different things. mTelnet deletes the current line (entire line), for example.

    on my bbs i use esc[K all the time.

    I wasn't talking about <ESC>[K.


    digital man

    Synchronet "Real Fact" #43:
    Synchronet added Baja/PCMS support with v2.00a (1994).
    Norco, CA WX: 58.7øF, 71.0% humidity, 8 mph ESE wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Mon Nov 6 19:35:18 2017
    src/sbbs3 readmsgs.cpp 1.100 1.101
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv6756

    Modified Files:
    readmsgs.cpp
    Log Message:
    Fix bug in listsub(): if there were polls posted in the sub-board the message numbers displayed could be wrong since the poll-messages were not loaded
    (or counted).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sat Nov 11 03:25:07 2017
    src/sbbs3 readmsgs.cpp 1.101 1.102
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv14808

    Modified Files:
    readmsgs.cpp
    Log Message:
    Send MailOnSystemListHdr text string before msg details that match search string (just like we do for other search-types).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wed Oct 3 21:03:01 2018
    src/sbbs3 readmsgs.cpp 1.106 1.107
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv6050

    Modified Files:
    readmsgs.cpp
    Log Message:
    Search message tags as well as body-text and subjects when searching for
    text.
    Use strcasestr() for message body/header-field text searches (simplify
    the code) - not sure why we needed strip_ctrl(), so removed.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tue Jan 22 23:48:54 2019
    src/sbbs3 readmsgs.cpp 1.108 1.109
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv28867

    Modified Files:
    readmsgs.cpp
    Log Message:
    The reply in (M)ail command has been somewhat broken since Mar-13-2018 when smb_netaddr_type() was changed to *never* return NET_NONE. Locally-posted messages would result in a (M)ail reply trying to go to a invalid Internet mail addres (the user's name/alias).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thu Jan 31 20:27:43 2019
    src/sbbs3 readmsgs.cpp 1.109 1.110
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv8995

    Modified Files:
    readmsgs.cpp
    Log Message:
    Include group and sub-board numbers when listing messsages in a sub-board
    (e.g. as the result of a search for text or messages to you).


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Fri Feb 1 00:31:00 2019
    src/sbbs3 readmsgs.cpp 1.110 1.111
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv17328

    Modified Files:
    readmsgs.cpp
    Log Message:
    Created a "Delete a range of posts" sys/sub-op command from the [O]perator sub-board of the "Reading" prompt. This allows a sysop or sub-board
    operator to quickly delete a range of messages from a message base. e.g. for easier clean-up of msg-net hiccups or intentional spamming of subs.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sat Feb 2 15:21:24 2019
    src/sbbs3 readmsgs.cpp 1.111 1.112
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv3148

    Modified Files:
    readmsgs.cpp
    Log Message:
    When printing the CantDeleteMsg text line, incude the message number.
    The (O)perator (D)elete message (range) command will now skip permanent msgs. Fixed bug with (L)ist msgs command while in (S)earch for Your Messages mode (the msg numbers listed did not match the msg numbers used by the Read prompt).


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sat Feb 16 19:14:00 2019
    src/sbbs3 readmsgs.cpp 1.113 1.114
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    readmsgs.cpp
    Log Message:
    When deleting a message from the Read prompt, make it clear (red/flashing)
    as it is easy for a sysop to accidentally hit [D]elete and not realize it.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tue Apr 2 00:29:59 2019
    src/sbbs3 readmsgs.cpp 1.117 1.118
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv874

    Modified Files:
    readmsgs.cpp
    Log Message:
    Always display a no/yes prompt before deleting msgs with the 'D' key
    (use the sysop 'D'elete command to quickly delete a range of messages).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tue Apr 9 23:57:43 2019
    src/sbbs3 readmsgs.cpp 1.118 1.119
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv30519

    Modified Files:
    readmsgs.cpp
    Log Message:
    sprintf() -> SAFEPRINTF replacements.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Mon Apr 22 22:34:26 2019
    src/sbbs3 readmsgs.cpp 1.120 1.121
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv26059

    Modified Files:
    readmsgs.cpp
    Log Message:
    When scanning for messages "to you", include messages from you and to you
    (i.e. posted to yourself). It's confusing when testing the scan for messages "to you" if messages also *from* you aren't listed. :-)


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wed Oct 2 20:49:58 2019
    src/sbbs3 readmsgs.cpp 1.124 1.125
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    readmsgs.cpp
    Log Message:
    If DeletePostQ text.dat string is blank, default to delete msg without prompt.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thu Mar 19 01:12:53 2020
    src/sbbs3 readmsgs.cpp 1.127 1.128
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv14317

    Modified Files:
    readmsgs.cpp
    Log Message:
    Delete unused binstr() function.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wed May 13 20:04:51 2020
    src/sbbs3 readmsgs.cpp 1.132 1.133
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv7549

    Modified Files:
    readmsgs.cpp
    Log Message:
    For alterego (ALTERANT):
    make "No" the default for the "Add this sub-board to your new-scan list?" question

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Tue Mar 1 22:43:08 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/74edb9c279474cfbd8564e41
    Modified Files:
    src/sbbs3/readmsgs.cpp
    Log Message:
    Fix private message header field parsing/filtering

    CID 350294
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Wed Jul 6 18:23:10 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/3160fa3b8720aae5786c2632
    Modified Files:
    src/sbbs3/readmsgs.cpp
    Log Message:
    Fix: message numbers listed with 'H' reading msgs command

    Broken in commit 082a9fce 3 years ago, the 'H' (highest ranked) message listing was showing the rank of the message (e.g. 1-20) instead of the message number itself.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Fri Dec 1 19:43:53 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/5775e602eb549936b0da1664
    Modified Files:
    src/sbbs3/readmsgs.cpp
    Log Message:
    Don't prompt about *deleted* moderated messages
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Fri Dec 29 17:10:27 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/580e8724287b4755676f929b
    Modified Files:
    src/sbbs3/readmsgs.cpp
    Log Message:
    Fix CID 462297: always initialize msg.idx_offset in loadmsgs()

    Even though smb_getmsghdr() just saves and restores the msg.idx_offset value (not actually using it, but triggering this Coverity issue), this does seem like better behavior and more consistent with the loadfiles() implementation. ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Thu Feb 15 23:02:56 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/af0a37a82bf09fab2d9bb305
    Modified Files:
    src/sbbs3/readmsgs.cpp
    Log Message:
    Add missing #include of utf8.h
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sat Mar 1 19:27:28 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/80337c04492659e2ae5ef5ec
    Modified Files:
    src/sbbs3/readmsgs.cpp
    Log Message:
    Save/reuse path where messages are saved (per sub-board) to data/user/*.ini

    This is a sysop time saver when saving multiple posts to a local text file (using the Operator->Save message text command).

    This is pretty much a copy/paste from readmail.cpp, but uses a different .ini section name.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Mon Mar 3 18:07:00 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/70de9efb9205d641bcc984c9
    Modified Files:
    src/sbbs3/readmsgs.cpp
    Log Message:
    Update data/user/*.ini section name for storing recent save path for msg sub ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Tue May 13 19:13:06 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/01b5315d76f27c9db9dca99f
    Modified Files:
    src/sbbs3/readmsgs.cpp
    Log Message:
    Don't prompt to add sub to new-scan when scalling for polls (i.e. to vote on) ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Tue May 13 19:56:49 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/91ea951d35e0941f99c2560d
    Modified Files:
    src/sbbs3/readmsgs.cpp
    Log Message:
    Break scan loop on abort (Ctrl-C)

    Fixes issue #926
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Tue May 20 20:29:15 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/6c98e2878d226ccc502fa264
    Modified Files:
    src/sbbs3/readmsgs.cpp
    Log Message:
    Fix issue introduced in commit 91ea951d with Ctrl-C aborting read msgs prompt

    When hitting Ctrl-C at the PostTo prompt (for example), the read msgs prompt shouldn't be aborted, so clear the abort flag after handling any command key. ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net