• src/sbbs3/writemsg.cpp

    From rswindell@VERT to CVS commit on Friday, October 03, 2014 01:33:46
    src/sbbs3 writemsg.cpp 1.103 1.104
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv16545

    Modified Files:
    writemsg.cpp
    Log Message:
    Bugfix:
    Don't allow a message title input prompt to exceed the width of the terminal (noticed when uploading a file to be emailed from the terminal server).
    This really should be a generic solution in getstr(), which I'll get right on.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Sunday, June 21, 2015 19:21:28
    src/sbbs3 writemsg.cpp 1.104 1.105
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv3753

    Modified Files:
    writemsg.cpp
    Log Message:
    Enhancement: if a message editor creates the file "editor.tag" in the node's temp directory (system.temp_dir in JS), sbbs will read in this file and append it to the message body *after* the user's .sig file (if there is one).
    Bug-fix: don't append .sig files when editing extended file descriptions.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Accession@VERT/PHARCYDE to rswindell on Sunday, June 21, 2015 22:59:00
    Hello rswindell,

    On 21 Jun 15 19:21, rswindell wrote to CVS commit:

    Modified Files:
    writemsg.cpp
    Log Message:
    Enhancement: if a message editor creates the file "editor.tag" in the node's temp directory (system.temp_dir in JS), sbbs will read in this
    file and append it to the message body *after* the user's .sig file
    (if there is one).
    Bug-fix: don't append .sig files when editing extended file
    descriptions.

    That very well may be just what we need! Thanks Rob!

    Regards,
    Nick

    --- GoldED+/LNX 1.1.5-b20130910
    * Origin: thePharcyde_ telnet://bbs.pharcyde.org (Wisconsin) (723:1/701)
    þ Synchronet þ thePharcyde_ telnet://bbs.pharcyde.org (Wisconsin)
  • From Psi-Jack@VERT/DECKHVN2 to Accession on Monday, June 22, 2015 12:30:27
    Re: Re: src/sbbs3/writemsg.cpp
    By: Accession to rswindell on Sun Jun 21 2015 10:59 pm

    Bug-fix: don't append .sig files when editing extended file
    descriptions.

    That very well may be just what we need! Thanks Rob!

    Indeed. :)
    -
    [Psi-Jack -//- Decker]
    -

    ---
    þ Synchronet þ Decker's Heaven -//- bbs.deckersheaven.com
  • From Nightfox@VERT/DIGDIST to rswindell on Monday, June 22, 2015 20:47:01
    Re: src/sbbs3/writemsg.cpp
    By: rswindell to CVS commit on Sun Jun 21 2015 19:21:28

    Enhancement: if a message editor creates the file "editor.tag" in the node's temp directory (system.temp_dir in JS), sbbs will read in this file and append it to the message body *after* the user's .sig file (if there is one). Bug-fix: don't append .sig files when editing extended file descriptions.

    Thanks for the update. I've updated SlyEdit accordingly, and it appears to be working.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Monday, June 22, 2015 23:44:14
    Re: src/sbbs3/writemsg.cpp
    By: Nightfox to rswindell on Mon Jun 22 2015 08:47 pm

    Re: src/sbbs3/writemsg.cpp
    By: rswindell to CVS commit on Sun Jun 21 2015 19:21:28

    Enhancement: if a message editor creates the file "editor.tag" in the node's temp directory (system.temp_dir in JS), sbbs will read in this file and append it to the message body *after* the user's .sig file (if there is one). Bug-fix: don't append .sig files when editing extended file descriptions.

    Thanks for the update. I've updated SlyEdit accordingly, and it appears to be working.

    Sure. As for advertising the capability, a drop file might be the best place to
    do that. Does SlyEdit read any of the drop-files created by Synchronet (e.g. editor.inf)?

    digital man

    Synchronet "Real Fact" #84:
    The ZMODEM file transfer protocol is limited to files of 4 gigabytes or smaller.
    Norco, CA WX: 68.0øF, 65.0% humidity, 1 mph SE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Tuesday, June 23, 2015 07:32:16
    Re: src/sbbs3/writemsg.cpp
    By: Digital Man to Nightfox on Mon Jun 22 2015 23:44:14

    Sure. As for advertising the capability, a drop file might be the best place to do that. Does SlyEdit read any of the drop-files created by Synchronet (e.g. editor.inf)?

    SlyEdit reads msginf (QuickBBS format).

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Thursday, June 25, 2015 19:12:36
    Re: src/sbbs3/writemsg.cpp
    By: Nightfox to Digital Man on Tue Jun 23 2015 07:32 am

    Re: src/sbbs3/writemsg.cpp
    By: Digital Man to Nightfox on Mon Jun 22 2015 23:44:14

    Sure. As for advertising the capability, a drop file might be the best place to do that. Does SlyEdit read any of the drop-files created by Synchronet (e.g. editor.inf)?

    SlyEdit reads msginf (QuickBBS format).

    One idea would be to add a 7th line to the MSGINF file which includes the full path tot the editor.tag file. If the editor doesn't find that line in the MSGINF file, it could assume the BBS doesn't support that feature/file.

    I'm trying to dig up whatever reference I originally had for the MSGINF file format. I want to make sure there wasn't actually a 7th line already defined. If you have a reference document, that might help.

    The EDITOR.INF file is a "newer" drop file format for editors, but contains less information. Was there something you needed specifically from the MSGINF file that you couldn't get from the EDITOR.INF file?

    digital man

    Synchronet "Real Fact" #8:
    The name "DOVE-Net" comes from: The Beast's DOmain / VErtrauen network.
    Norco, CA WX: 81.5øF, 46.0% humidity, 7 mph SE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Thursday, June 25, 2015 22:30:16
    Re: src/sbbs3/writemsg.cpp
    By: Digital Man to Nightfox on Thu Jun 25 2015 19:12:36

    One idea would be to add a 7th line to the MSGINF file which includes the full path tot the editor.tag file. If the editor doesn't find that line in the MSGINF file, it could assume the BBS doesn't support that feature/file.

    I'm trying to dig up whatever reference I originally had for the MSGINF file format. I want to make sure there wasn't actually a 7th line already defined. If you have a reference document, that might help.

    I don't have a reference document. Also, wouldn't that mean adding something non-standard to the drop file?

    The EDITOR.INF file is a "newer" drop file format for editors, but contains less information. Was there something you needed specifically from the MSGINF file that you couldn't get from the EDITOR.INF file?

    I remember looking at MSGINF vs. another format (I think the other was the format that WWIV uses) and decided on MSGINF because it did have some piece of information that the other didn't. I don't remember specifically what that piece of information was now, but I'm wondering if it may have been the message area name/description.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Friday, July 03, 2015 15:44:52
    Re: src/sbbs3/writemsg.cpp
    By: Nightfox to Digital Man on Thu Jun 25 2015 10:30 pm

    Re: src/sbbs3/writemsg.cpp
    By: Digital Man to Nightfox on Thu Jun 25 2015 19:12:36

    One idea would be to add a 7th line to the MSGINF file which includes the full path tot the editor.tag file. If the editor doesn't find that line in the MSGINF file, it could assume the BBS doesn't support that feature/file.

    I'm trying to dig up whatever reference I originally had for the MSGINF file format. I want to make sure there wasn't actually a 7th line already defined. If you have a reference document, that might help.

    I don't have a reference document. Also, wouldn't that mean adding something non-standard to the drop file?

    Yes, but adding additional lines is how drop files are "extended". And "standard" in the BBS community just means that how someone decided to do it and others depend on that behavior.

    The EDITOR.INF file is a "newer" drop file format for editors, but contains less information. Was there something you needed specifically from the MSGINF file that you couldn't get from the EDITOR.INF file?

    I remember looking at MSGINF vs. another format (I think the other was the format that WWIV uses) and decided on MSGINF because it did have some piece of information that the other didn't. I don't remember specifically what that piece of information was now, but I'm wondering if it may have been the message area name/description.

    I can confirm, the EDITOR.INF (at least the version created by Synchronet) does
    not contain the message area name/description.

    digital man

    Synchronet "Real Fact" #66:
    SEXYZ is as a 32-bit replacement for [F]DSZ, CE-XYZ and other protocol drivers. Norco, CA WX: 86.6øF, 36.0% humidity, 16 mph ESE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Friday, July 03, 2015 17:19:41
    Re: src/sbbs3/writemsg.cpp
    By: Digital Man to Nightfox on Fri Jul 03 2015 15:44:52

    One idea would be to add a 7th line to the MSGINF file which
    includes the full path tot the editor.tag file. If the editor
    doesn't find that line in the MSGINF file, it could assume the
    BBS doesn't support that feature/file.

    If you decide to update Synchronet to do that, I suppose I could update SlyEdit to check for that in the MSGINF file.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From rswindell@VERT to CVS commit on Saturday, July 04, 2015 16:43:36
    src/sbbs3 writemsg.cpp 1.105 1.106
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv10342

    Modified Files:
    writemsg.cpp
    Log Message:
    Create a 7-line MSGINF file which includes the full path to the tag file,
    in scenarios where the tagfile may be used (e.g. not editing extended file descriptions). This should allow SlyEdit and other extenal message editors
    to detect the support for the editor.tag file dynamically rather than by
    using the Synchronet version number. If the 7th line is blank or non-existent, then the external editor tag file is not supported.
    Overhauled editor_inf() to use a file stream/fprintf.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Digital Man@VERT to Nightfox on Saturday, July 04, 2015 16:47:29
    Re: src/sbbs3/writemsg.cpp
    By: Nightfox to Digital Man on Fri Jul 03 2015 05:19 pm

    Re: src/sbbs3/writemsg.cpp
    By: Digital Man to Nightfox on Fri Jul 03 2015 15:44:52

    One idea would be to add a 7th line to the MSGINF file which
    includes the full path tot the editor.tag file. If the editor
    doesn't find that line in the MSGINF file, it could assume the
    BBS doesn't support that feature/file.

    If you decide to update Synchronet to do that, I suppose I could update SlyEdit to check for that in the MSGINF file.

    I think that's a better method (rather than basing it on the Synchronet version
    number). I'm not sure if you tested scenarios where a tag file shouldn't be used (e.g. when editing an existing message), but now, in those scenarios, the tag file path will *not* be in the MSGINF file (the 7th line will be blank), indicating that you should not enable that support in your editor either.

    I was not successful in finding a reference for the MSGINF file format. I don't
    remember what I used for the initial implementation in Synchronet. Maybe I just
    had sysops email me some examples? Anyway, QuickBBS has been defunct for so long that I doubt any more lines (beyond the 6 supported by Synchronet) were ever added.

    digital man

    Synchronet "Real Fact" #3:
    Synchronet version 3 is written mostly in C, with some C++, x86 ASM, and Pascal.
    Norco, CA WX: 80.0øF, 53.0% humidity, 10 mph SE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Sunday, July 05, 2015 11:53:28
    Re: src/sbbs3/writemsg.cpp
    By: Digital Man to Nightfox on Sat Jul 04 2015 16:47:29

    One idea would be to add a 7th line to the MSGINF file which
    includes the full path tot the editor.tag file. If the editor
    doesn't find that line in the MSGINF file, it could assume the DM>>> BBS doesn't support that feature/file.


    I think that's a better method (rather than basing it on the Synchronet version number).

    I agree. I've updated SlyEdit to make use of the 7th line in MSGINF if that line is there.

    I'm not sure if you tested scenarios where a tag file
    shouldn't be used (e.g. when editing an existing message), but now, in those scenarios, the tag file path will *not* be in the MSGINF file (the 7th line will be blank), indicating that you should not enable that support in your editor either.

    I forgot about that scenario; I've made an update to SlyEdit to account for that. Even if MSGINF doesn't include the 7th line, I still want to support tag lines (the tagline would appear in the message above the user's signature though). So in the case of editing an existing message, I've updated SlyEdit to see if the user is editing MSGTMP (I noticed the subject will be "MSGTMP"), and in that case, SlyEdit won't allow adding a tagline.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From deuce@VERT to CVS commit on Sunday, November 01, 2015 19:16:20
    src/sbbs3 writemsg.cpp 1.108 1.109
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv353

    Modified Files:
    writemsg.cpp
    Log Message:
    Log a forwarded message as "E+" (sent email) in the node log, not "E"
    (read email)



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Friday, January 12, 2018 14:23:55
    src/sbbs3 writemsg.cpp 1.118 1.119
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv10070

    Modified Files:
    writemsg.cpp
    Log Message:
    Removed unused variable.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Friday, March 09, 2018 22:19:47
    src/sbbs3 writemsg.cpp 1.120 1.121
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv17743

    Modified Files:
    writemsg.cpp
    Log Message:
    Fix warning.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Friday, March 09, 2018 22:20:47
    src/sbbs3 writemsg.cpp 1.121 1.122
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv17886

    Modified Files:
    writemsg.cpp
    Log Message:
    And another of the same warnings.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sunday, October 28, 2018 23:36:55
    src/sbbs3 writemsg.cpp 1.127 1.128
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv2442

    Modified Files:
    writemsg.cpp
    Log Message:
    Addressed issue introduced in last commit:
    File not found.
    d:\sbbs\text\menu/msgtabs.asc


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thursday, November 08, 2018 16:32:47
    src/sbbs3 writemsg.cpp 1.129 1.130
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    writemsg.cpp
    Log Message:
    Every get disconnected in the middle of writing a message (post or email)
    and maybe lose all that eloquent prose you've painstakingly written? Well, Synchronet will now save your unsaved draft (assuming your editor saves it before exiting due to disconnetion) and will give you the option of
    restoring that draft when you attempt to email or post again within 48
    hours. The message's subject is saved/restored along with the draft body
    text as well. Drafts older than 48 hours are just ignored. This duration
    is currently hardcoded, but that could easily be changed.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to rswindell on Thursday, November 08, 2018 17:18:08
    Re: src/sbbs3/writemsg.cpp
    By: rswindell to CVS commit on Thu Nov 08 2018 04:32 pm

    writemsg.cpp
    Log Message:
    Every get disconnected in the middle of writing a message (post or email) and maybe lose all that eloquent prose you've painstakingly written? Well, Synchronet will now save your unsaved draft (assuming your editor saves it before exiting due to disconnetion) and will give you the option of restoring that draft when you attempt to email or post again within 48 hours. The message's subject is saved/restored along with the draft body text as well. Drafts older than 48 hours are just ignored. This duration is currently hardcoded, but that could easily be changed.

    It sounds like the editor would need to support saving a user's message in order to enable this feature? Are there any details on how that is to be implemented in a message editor?

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Thursday, November 08, 2018 18:02:54
    Re: src/sbbs3/writemsg.cpp
    By: Nightfox to rswindell on Thu Nov 08 2018 05:18 pm

    Re: src/sbbs3/writemsg.cpp
    By: rswindell to CVS commit on Thu Nov 08 2018 04:32 pm

    writemsg.cpp
    Log Message:
    Every get disconnected in the middle of writing a message (post or email) and maybe lose all that eloquent prose you've painstakingly written? Well, Synchronet will now save your unsaved draft (assuming your editor saves it before exiting due to disconnetion) and will give you the option of restoring that draft when you attempt to email or post again within 48 hours. The message's subject is saved/restored along with the draft body text as well. Drafts older than 48 hours are just ignored. This duration is currently hardcoded, but that could easily be changed.

    It sounds like the editor would need to support saving a user's message in order to enable this feature? Are there any details on how that is to be implemented in a message editor?

    The editor, if it detects disconnection, just needs to save the currently edited file before exiting (and returning a non-zero error level/exit code). fseditor.js just needed a minor tweak to support this. I'm not sure about all the other external editors out there.

    digital man

    Synchronet/BBS Terminology Definition #46:
    NUL = ASCII 0
    Norco, CA WX: 69.1øF, 10.0% humidity, 2 mph NE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thursday, November 08, 2018 19:19:14
    src/sbbs3 writemsg.cpp 1.130 1.131
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv18887

    Modified Files:
    writemsg.cpp
    Log Message:
    Store the draft message creation time stamp (just informational for now) and log a message when a draft message is saved.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thursday, November 08, 2018 21:52:50
    src/sbbs3 writemsg.cpp 1.131 1.132
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv3438

    Modified Files:
    writemsg.cpp
    Log Message:
    Don't save/restore 0-byte draft-messages.
    More log output when saving/restoring drafts of if there is an error doing so.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Friday, November 09, 2018 10:02:17
    Re: src/sbbs3/writemsg.cpp
    By: Digital Man to Nightfox on Thu Nov 08 2018 06:02 pm

    The editor, if it detects disconnection, just needs to save the currently edited file before exiting (and returning a non-zero error level/exit code). fseditor.js just needed a minor tweak to support this. I'm not sure about all the other external editors out there.

    I'll have to see how fseditor.js is implementing it. Does this feature support multiple save files? For instance, in case a user logs on and starts replying to one message and gets disconnected, then logs in again and starts replying to a different message and gets disconnected. Or is it just whatever message got saved last?

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Friday, November 09, 2018 15:25:34
    Re: src/sbbs3/writemsg.cpp
    By: Nightfox to Digital Man on Fri Nov 09 2018 10:02 am

    Re: src/sbbs3/writemsg.cpp
    By: Digital Man to Nightfox on Thu Nov 08 2018 06:02 pm

    The editor, if it detects disconnection, just needs to save the currently edited file before exiting (and returning a non-zero error level/exit code). fseditor.js just needed a minor tweak to support this. I'm not sure about all the other external editors out there.

    I'll have to see how fseditor.js is implementing it.

    This is pretty much it:

    if(!bbs.online) {
    save_file();
    return 1; // aborted
    }

    Does this feature
    support multiple save files? For instance, in case a user logs on and starts replying to one message and gets disconnected, then logs in again and starts replying to a different message and gets disconnected. Or is it just whatever message got saved last?

    It'll save one draft per user per sub (or mail). I've contemplated even making the "to" name part of the saved-draft naming, but haven't gone that far. This is all invisible to the message editor (it just sees/edits the normal input.msg file or whatever).

    digital man

    Synchronet "Real Fact" #56:
    Synchronet Terminal Server introduced SecureShell (SSH) support w/v3.14a (2006).
    Norco, CA WX: 74.5øF, 6.0% humidity, 6 mph ENE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Friday, November 09, 2018 17:09:03
    Re: src/sbbs3/writemsg.cpp
    By: Digital Man to Nightfox on Fri Nov 09 2018 03:25 pm

    It'll save one draft per user per sub (or mail). I've contemplated even making the "to" name part of the saved-draft naming, but haven't gone that far. This is all invisible to the message editor (it just sees/edits the normal input.msg file or whatever).

    SlyEdit currently doesn't save on disconnection, so I'll have to make an update for it to do that when I have some time to do so.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Friday, November 09, 2018 21:21:45
    Re: src/sbbs3/writemsg.cpp
    By: Nightfox to Digital Man on Fri Nov 09 2018 05:09 pm

    Re: src/sbbs3/writemsg.cpp
    By: Digital Man to Nightfox on Fri Nov 09 2018 03:25 pm

    It'll save one draft per user per sub (or mail). I've contemplated even making the "to" name part of the saved-draft naming, but haven't gone that far. This is all invisible to the message editor (it just sees/edits the normal input.msg file or whatever).

    SlyEdit currently doesn't save on disconnection, so I'll have to make an update for it to do that when I have some time to do so.

    It seems most editors don't save changes on disconnect. Oh well,

    digital man

    This Is Spinal Tap quote #37:
    David St. Hubbins: We are Spinal Tap from the UK - you must be the USA!
    Norco, CA WX: 59.9øF, 15.0% humidity, 0 mph WSW wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Friday, December 07, 2018 14:39:19
    src/sbbs3 writemsg.cpp 1.132 1.133
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    writemsg.cpp
    Log Message:
    Always delete the quotes file (e.g. QUOTES.TXT) before deciding if we are
    going to recover a draft message or quote a source message or whatever. Lingering QUOTES.TXT files interferred with recovering draft messages.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Friday, December 07, 2018 14:53:23
    src/sbbs3 writemsg.cpp 1.133 1.134
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    writemsg.cpp
    Log Message:
    Fix the previous commit: the original message is quotes (and QUOTES.TXT created) before this funciton is called, so we can't *always* delete
    the quote file. Delete it if restoring a draft or if quoting is disabled
    only.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wednesday, December 19, 2018 19:03:50
    src/sbbs3 writemsg.cpp 1.135 1.136
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    writemsg.cpp
    Log Message:
    Remove trailing whitespace off the end of original messages when creating
    quote files (ain't nobody got time for that!).



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Saturday, December 29, 2018 22:50:03
    src/sbbs3 writemsg.cpp 1.136 1.137
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv20423

    Modified Files:
    writemsg.cpp
    Log Message:
    Re-factored the internal text/message editor (msgeditor) to use the str_list_t data-type and API. This works better for terminals < 80 cols in width and has some other improvements with inserting/deleting lines using the arrow keys,
    but still not great.
    No longer does tab-expansion on text read from a file - may want to add that back in <shrug>.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sunday, December 30, 2018 22:39:07
    src/sbbs3 writemsg.cpp 1.137 1.138
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    writemsg.cpp
    Log Message:
    Fixed GCC warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t'



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tuesday, January 15, 2019 13:22:33
    src/sbbs3 writemsg.cpp 1.138 1.139
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv31805

    Modified Files:
    writemsg.cpp
    Log Message:
    Internal message editor needs to recount the lines when saving. This
    is the likely cause of missing lines or "Aborted" messages upon saving
    with the internal editor.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Monday, January 21, 2019 01:20:06
    src/sbbs3 writemsg.cpp 1.139 1.140
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv14967

    Modified Files:
    writemsg.cpp
    Log Message:
    Added support for the standard "Delete line" control keys (Ctrl-Y/X) to the
    the internal message editor. It doesn't redraw the lines below the deleted
    line or do anything terribly fancy, but at least it behaves more as one
    would expect.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sunday, July 07, 2019 21:26:01
    src/sbbs3 writemsg.cpp 1.155 1.156
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv23003

    Modified Files:
    writemsg.cpp
    Log Message:
    When the created message is UTF-8, translate (from CP-437 to UTF-8) any
    user signature (.sig file) or editor created message tag (editor.tag file) contents before adding to message base.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Monday, July 08, 2019 22:27:32
    src/sbbs3 writemsg.cpp 1.157 1.158
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv6392

    Modified Files:
    writemsg.cpp
    Log Message:
    Use enum values from (new file) cp437defs.h



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Saturday, July 20, 2019 12:06:44
    src/sbbs3 writemsg.cpp 1.161 1.162
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    writemsg.cpp
    Log Message:
    Always check for the existence of RESULT.ED file after using an external
    editor even if the editor was configured for QuickBBS/MSGINF drop files.
    Don't use the subject line from RESULT.ED when the read-only subject mode
    is used.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to rswindell on Sunday, July 21, 2019 11:21:34
    Re: src/sbbs3/writemsg.cpp
    By: rswindell to CVS commit on Sat Jul 20 2019 12:06 pm

    Modified Files:
    writemsg.cpp
    Log Message:
    Always check for the existence of RESULT.ED file after using an external editor even if the editor was configured for QuickBBS/MSGINF drop files. Don't use the subject line from RESULT.ED when the read-only subject mode is used.

    It looks like that works. Thanks!

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Monday, July 22, 2019 00:35:45
    Re: src/sbbs3/writemsg.cpp
    By: Nightfox to rswindell on Sun Jul 21 2019 11:21 am

    Re: src/sbbs3/writemsg.cpp
    By: rswindell to CVS commit on Sat Jul 20 2019 12:06 pm

    Modified Files:
    writemsg.cpp
    Log Message:
    Always check for the existence of RESULT.ED file after using an external editor even if the editor was configured for QuickBBS/MSGINF drop files. Don't use the subject line from RESULT.ED when the read-only subject mode is used.

    It looks like that works. Thanks!

    Cool. I see you added your version details to line 3 as well:

    Editor SlyEdit 1.67 Beta (2019-07-19)

    Nice!

    digital man

    Synchronet/BBS Terminology Definition #73:
    Telenet = Proprietary packet switched network (variant on X.75)
    Norco, CA WX: 66.6øF, 82.0% humidity, 4 mph SE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Monday, July 22, 2019 10:09:32
    Re: src/sbbs3/writemsg.cpp
    By: Digital Man to Nightfox on Mon Jul 22 2019 12:35 am

    It looks like that works. Thanks!

    Cool. I see you added your version details to line 3 as well:

    Editor SlyEdit 1.67 Beta (2019-07-19)

    Nice!

    Yep, I figured I might as well have it write that too.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Monday, July 22, 2019 13:53:47
    Re: src/sbbs3/writemsg.cpp
    By: Nightfox to Digital Man on Mon Jul 22 2019 10:09 am

    Re: src/sbbs3/writemsg.cpp
    By: Digital Man to Nightfox on Mon Jul 22 2019 12:35 am

    It looks like that works. Thanks!

    Cool. I see you added your version details to line 3 as well:

    Editor SlyEdit 1.67 Beta (2019-07-19)

    Nice!

    Yep, I figured I might as well have it write that too.

    It's helpful when reporting issues or diagnosing problems. Appreciated.

    digital man

    Synchronet/BBS Terminology Definition #82:
    XPDEV = Cross-platform Development
    Norco, CA WX: 89.7øF, 43.0% humidity, 5 mph ESE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tuesday, July 23, 2019 22:05:44
    src/sbbs3 writemsg.cpp 1.163 1.164
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    writemsg.cpp
    Log Message:
    Address printf precision arg warning.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thursday, July 25, 2019 03:55:02
    src/sbbs3 writemsg.cpp 1.164 1.165
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv25255

    Modified Files:
    writemsg.cpp
    Log Message:
    We're storing the charset of locally created messages in the (new) SMB hfield: FIDOCHARSET, no longer FIDOCTRL.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thursday, July 25, 2019 22:18:35
    src/sbbs3 writemsg.cpp 1.165 1.166
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv24329

    Modified Files:
    writemsg.cpp
    Log Message:
    process_edited_text():
    When message text contains an invalid or possibly dangerous Ctrl-A code, convert the Ctrl-A to an '@' char.
    Only Ctrl-A *attribute* codes will be allowed in message text
    (e.g. not ^AP, ^AL, ^A", etc.).



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Friday, July 26, 2019 00:20:04
    src/sbbs3 writemsg.cpp 1.166 1.167
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv6418

    Modified Files:
    writemsg.cpp
    Log Message:
    Capture/use the "NOTE:" FTN-kludge added by external message editors.
    Correctly support CR-terminated FTN-kludge lines (per spec, no LF is required). Save the revision of this source file as the editor details for raw (writemsg) and internal (msgeditor) created messages.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Friday, August 02, 2019 04:53:02
    src/sbbs3 writemsg.cpp 1.167 1.168
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv18198

    Modified Files:
    writemsg.cpp
    Log Message:
    Auto-detect ZMODEM upload of message text in internal line editor.
    Discards any previously quoted/typed text, but remains in the editor with the uploaded text available for append or edit.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Friday, August 02, 2019 06:53:31
    src/sbbs3 writemsg.cpp 1.168 1.169
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv8142

    Modified Files:
    writemsg.cpp
    Log Message:
    Add a /UPLOAD command which works with any/all configured protocols
    (in addition to the auto-ZMODEM upload detection). Using an evil "goto" for code reuse.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sunday, August 04, 2019 16:48:56
    src/sbbs3 writemsg.cpp 1.170 1.171
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv28822

    Modified Files:
    writemsg.cpp
    Log Message:
    Converted quoted UTF-8 message text and message subjects to CP437 for external editors that do not support UTF-8 (all of them, currently).


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tuesday, May 12, 2020 23:40:20
    src/sbbs3 writemsg.cpp 1.173 1.174
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv11411

    Modified Files:
    writemsg.cpp
    Log Message:
    Use binary mode when creating quotes.txt to eliminate excessive carriage return characters on Windows.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sunday, May 24, 2020 12:34:02
    src/sbbs3 writemsg.cpp 1.174 1.175
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv28131

    Modified Files:
    writemsg.cpp
    Log Message:
    Fix heap corruption resulting from use of internal message editor "/E" (edit line) command when extended a line of text to a length longer than what was allocated.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Wednesday, October 21, 2020 18:32:09
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/eb209e8495db39e7732696fc
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    Do not remove trailing white-space from lines in .sig files

    This allows a .sig file to contain "\n-- \n", the "standard" USENET signature delimiter, as requested by Tracker1.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Wednesday, December 09, 2020 02:02:49
    https://gitlab.synchro.net/main/sbbs/-/commit/97ac3bbf7720b3940d3f3198
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    Parse/separate forward-to-netmail name from address

    Only do the local user notification when appropriate.
    Signal the FTN netmail semaphore when appropriate.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Friday, March 05, 2021 20:41:25
    https://gitlab.synchro.net/main/sbbs/-/commit/3e999815c58affc0eefcf7fb
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    Don't allow subject to be changed when forwarding file attachments

    Since the filename is in the subject, we can't allow the user to change the subject (duh). Also, don't bother with the "Fwd:" prefix thing as that could potentially cause problems in other places where the filename (only) is assumed to be in the subject.

    Also, make sure to create the destination directory when moving file attachments. These changes fix issue #230 reported by Keyop.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Saturday, March 13, 2021 12:48:15
    https://gitlab.synchro.net/main/sbbs/-/commit/5b044471b7f5dd69840fcb04
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    Fix error removing INPUT.MSG introduced in Commit 0c441424

    remove() is expected to fail in this scenario sometimes depending
    on how writemsg() is used - in the error case, the user was trying
    to edit his .plan file with the ;plan command:
    term Node 10 <Deuce> !ERROR 11 (Resource temporarily unavailable) in writemsg.cpp line 1232 (editfile) removing "/sbbs/node10/temp/INPUT.MSG" access=0

    Thanks for the bug report!

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Wednesday, March 31, 2021 23:56:36
    https://gitlab.synchro.net/main/sbbs/-/commit/1f805a5d3f87786be3c576cd
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    Fix editmsg() always fails bug introduced in commit 0c441424

    Another Coverity-issued-fixed-introduced-bug.

    Failure to remove a non-existant file is not reason for failure.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sunday, April 25, 2021 19:36:21
    https://gitlab.synchro.net/main/sbbs/-/commit/1139cfe5ab831096a0b94cef
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    Fix double close (fnopen doesn't leave the descriptor open)

    Fixes CID 33724.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Tuesday, August 17, 2021 23:49:55
    https://gitlab.synchro.net/main/sbbs/-/commit/4d01818374e0bb40b1fa15ba
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    When writing/reading quotes.txt, ignore first 2 lines if WWIV-type

    WWIV writes 2 lines of metadata to the beginning of its quotes.txt file created for external message editors. Its not clear yet what these lines should contain, but the first line apparently should contain a '#' character since BREdit checks for this character before deciding to throw-away/ignore these lines (don't use them for quoted text). Thanks mlong for this tip!

    So if the external editor is set to "WWIV CHAIN.TXT" in SCFG (even if the door doesn't need/use it), then the quotes.txt file created by Synchronet will contain the extra 2 lines. We're just writing a # to the first line and the second line is blank.

    This fixes reported issue #188.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Wednesday, March 02, 2022 13:25:51
    https://gitlab.synchro.net/main/sbbs/-/commit/b47b97c2602bdd784b0f63dc
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    Detect smb_[f]allocdat() failure in editmsg()

    CID 319091

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Wednesday, March 02, 2022 18:14:50
    https://gitlab.synchro.net/main/sbbs/-/commit/bb18309c7f0cde12745b44ff
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    Fix CID 33239: Argument cannot be negative

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sunday, March 13, 2022 00:18:52
    https://gitlab.synchro.net/main/sbbs/-/commit/da406c0a793ce998e982dd88
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    Fix CID 33235: Argument cannot be negative

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sunday, July 03, 2022 15:55:50
    https://gitlab.synchro.net/main/sbbs/-/commit/2db618ae2da445cf21a420c5
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    Fix smb.subnum corruption in writemsg()

    Fix issue introduced 9 years ago that could cause a crash after replying to a post via email or netmail and then displaying the header of a poll message or a normal message with votes:

    Program terminated with signal SIGSEGV, Segmentation fault.
    #0 0x00007f9f9569a317 in sbbs_t::show_msg (this=0x7f9f70c56880,
    smb=0x7f9f70c5e4e0, msg=0x7f9ebadf08b0, p_mode=4, post=0x7f9f18071a24)
    at getmsg.cpp:255
    255 ,cfg.sub[smb->subnum]->misc&SUB_ NAME ? useron.name : useron.alias, NET_NONE, NULL);
    [Current thread is 1 (Thread 0x7f9ebadf3700 (LWP 23279))]
    (gdb) print smb->subnum
    $1 = 4294967295
    (gdb) bt
    #0 0x00007f9f9569a317 in sbbs_t::show_msg (this=0x7f9f70c56880,
    smb=0x7f9f70c5e4e0, msg=0x7f9ebadf08b0, p_mode=4, post=0x7f9f18071a24)
    at getmsg.cpp:255
    #1 0x00007f9f957b2aee in sbbs_t::scanposts (this=0x7f9f70c56880, subnum=9,
    mode=2, find=0x7f9ebadf1270 "") at readmsgs.cpp:670
    #2 0x00007f9f957bb75a in sbbs_t::scanallsubs (this=0x7f9f70c56880, mode=2)
    at scansubs.cpp:219
    #3 0x00007f9f9568c948 in sbbs_t::exec_msg (this=0x7f9f70c56880,
    csi=0x7f9f70c64768) at execmsg.cpp:315
    #4 0x00007f9f95683129 in sbbs_t::exec_function (this=0x7f9f70c56880,
    csi=0x7f9f70c64768) at execfunc.cpp:422
    #5 0x00007f9f95679450 in sbbs_t::exec (this=0x7f9f70c56880,
    csi=0x7f9f70c64768) at exec.cpp:1199
    #6 0x00007f9f9577d742 in node_thread (arg=0x7f9f70c56880) at main.cpp:4364

    writemsg() was changing the global smb.subnum and when writing an email or netmail, that subnum value is -1 (since it's not a sub-board) and then later show_msg() is using the smb.subnum as a index into scfg.sub[] when determining if the current user already voted on the message being displayed and then: bang, crash, fall down, go boom.

    Simply saving and restoring the smb.subnum when executing an external editor is all that was needed here. And this is the first use of the C++ "auto" keyword in Synchronet!

    ---
    þ 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 Tuesday, February 07, 2023 18:11:57
    https://gitlab.synchro.net/main/sbbs/-/commit/208cc78b54ac851645e8cbd1
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    Don't save draft messages upon disconnect for Guest or "no one" (user #0)

    Fix issue #508

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows)@VERT to Git commit to main/sbbs/master on Thursday, April 13, 2023 18:45:54
    https://gitlab.synchro.net/main/sbbs/-/commit/ff3864002e9a51e98b1c83f5
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    Bounds-check the buffer being written in msgeditor()

    Replace the suspicious strcpy/strcat's in msgeditor(), the built-in line editor, with bounds-enforced snprintf() calls.
    Also, properly define MAX_LINE_LEN to account for the trailing \r\n on each line. It appears we've been under allocating the total possible message buffer size (by 2 bytes per line) for a while now.
    These 2 changes together should fix issue #547: apparent heap corruption due
    to 'buf' overflow in msgeditor().
    Also added a line count check/cap-enforcement with logged error message if exceeded (should never happen).

    Also fixed in this commit: off-by-one when enforcing max message length in msgeditor().

    Also added checks that the 'cols' (used in MAX_LINE_LEN) are reasonable values (40+), 2 was below the threshold of what would be expected to work since
    there is logic that deducts 4 from cols, for example.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows)@VERT to Git commit to main/sbbs/master on Thursday, April 13, 2023 18:45:54
    https://gitlab.synchro.net/main/sbbs/-/commit/2d9f8a32c55c82016b13d0a1
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    When writing messages with a 'top' in raw-input-mode, don't add excessive CRLF

    If the top already ends in a blank line, no additional CRLF is warranted (between the 'top' and the raw-input message 'body').

    ---
    þ 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 Thursday, April 13, 2023 18:47:22
    https://gitlab.synchro.net/main/sbbs/-/commit/84527be03f4d728bafe58f10
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    Fix new GCC warning in printf format string.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows)@VERT to Git commit to main/sbbs/master on Friday, April 14, 2023 20:37:52
    https://gitlab.synchro.net/main/sbbs/-/commit/4f9a8b209a160d8fac1fc4a3
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    Address a couple of Coverity-reported defects

    CID 452331
    CID 452330

    ---
    þ 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 Thursday, December 21, 2023 12:38:45
    https://gitlab.synchro.net/main/sbbs/-/commit/daf8fa55aa08b39bf8b4fc6e
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    Fix internal line editor buffer overflow (heap corruption)

    ... wasn't accounting for length of the 'top' buffer (when supplied).

    Also, for raw input mode:
    - flush the input buffer (stray LF) before accepting input
    - turn off raw input mode if run out of bytes (max lines/length reached)

    I was investigating the reported error by Nelgin:
    !ERROR in writemsg.cpp line 1214 (msgeditor) checking
    "max lines (20) exceeded" access=46
    which I was unable to reproduce, when I encountered the issues addressed
    in this commit.

    ---
    þ 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 Tuesday, December 26, 2023 16:04:06
    https://gitlab.synchro.net/main/sbbs/-/commit/3057bcc20148e3d93d1052a5
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    Insure uploaded text ends in a new-line

    We were appending .sig files to uploaded text, which may not have ended
    in an LF or CRLF sequence. This fixes that.

    ---
    þ 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 Friday, December 29, 2023 17:10:28
    https://gitlab.synchro.net/main/sbbs/-/commit/ee5e3e8ee949f73113909680
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    Fix an error path FILE* leak (CID 462238)

    Go ahead and fix false-positive CID 33482 by adding a NULL check to quotestr()

    ---
    þ 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 Tuesday, January 23, 2024 18:37:49
    https://gitlab.synchro.net/main/sbbs/-/commit/1321d7f537df2b0eb0c99f33
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    When editing a message, pass the proper to/from/subj/area to drop file

    Fixes issue #704 - not just for JS bbs.edit_msg(), but for all uses of the underlying sbbs_t::editmsg() function.

    Replaced one specific comparison of subnum == INVALID_SUB with call to is_valid_subnum() just to be consistent. No functional change there.

    ---
    þ 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 Tuesday, February 13, 2024 20:37:50
    https://gitlab.synchro.net/main/sbbs/-/commit/00afb97cc670fdf3e11aa839
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    Improvements to UTF-8 capable external editor support

    1. Add an 8th line to MSGINF (for SlyEdit): the character set expected
    (either "CP437", the default, or "UTF-8") based on the SCFG configuration
    2. Don't apply "Soft-CR" (0x8D) stripping/expansion for UTF-8 editors

    ---
    þ 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 Thursday, February 15, 2024 19:24:53
    https://gitlab.synchro.net/main/sbbs/-/commit/0dc20c1f9bf66ae376b0f22d
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    If the quotes.txt file doesn't exist with the right case, try any case

    (but prefer the proper/configured case, based on config in SCFG).

    Works around a problem where DDMsgReader always creates QUOTES.TXT (never quotes.txt), but SBBS tries to read in the file with the case it expects.
    This wouldn't be a problem on case-insensitive file systems (Windows).

    Resolves the writemsg.cpp error reported by Nelgin

    ---
    þ 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 Thursday, February 15, 2024 21:37:00
    https://gitlab.synchro.net/main/sbbs/-/commit/f894f62108ad3251bfcba84c
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    Fix bug in previous commit to this file

    I'm surprised this didn't create a warning somewhere: treating char* as a
    bool!

    ---
    þ 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 Tuesday, February 20, 2024 23:57:53
    https://gitlab.synchro.net/main/sbbs/-/commit/f754ad9057b0cd076bcf57b1
    Modified Files:
    src/sbbs3/writemsg.cpp
    Log Message:
    Allow UTF-8 sequences in message subjects (passing K_UTF8 to getstr)

    This was the behavior for all string input in SBBS until recently
    (Commit 55ccda6294f82506), with this change, an exception is being
    made for message subjects, but the vast majority of other string
    input is still limited to single-byte (i.e. US-ASCII or CP437)
    characters.

    This should fix issue #720

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