Skip to content
Snippets Groups Projects
  1. Dec 12, 2020
  2. Dec 11, 2020
    • Rob Swindell's avatar
      Use term_supports() rather than useron.misc for drop file terminal caps · 554c2ca3
      Rob Swindell authored
      Always use the return value of term_supports(), which correctly supports pre-logon and auto-terminal-capability-detection, rather than useron.misc for all door drop file generation.
      
      This should resolve the issue recently discussed in #synchronet with regards to a user getting non-ANSI output from door games even when using an ANSI-capable terminal.
      554c2ca3
    • Rob Swindell's avatar
      Support forwarding of single-part HTML emails, add "Fwd:" subject prefix · bb303fa4
      Rob Swindell authored
      When forwarding a single-part MIME-encoded HTML email, the preamble (original message header info) and any user comments, need to be HTML-encoded.
      
      Add the commonly-used "Fwd: " prefix to the default message subject, when forwarding.
      
      This required that smb_getplaintext() no longer always-NULLify the message's text_subtype (e.g. "html"). For single-part messages, this element was getting freed and NULLed.
      
      Add/use a new SMBLIB convenience function to add a string header field, but only if non-NULL: smb_hfield_string()
      bb303fa4
  3. Dec 10, 2020
    • Rob Swindell's avatar
      Display message comment headers without relying on smb_getmsgtxt() · 5adbdc7e
      Rob Swindell authored
      Since we're calling smb_getplaintext() manually here, and its not going to return the comment headers as part of the plain-text (the way smb_getmsgtxt() can), so we need to display find/display the comment headers first.
      5adbdc7e
    • Rob Swindell's avatar
      Allow subject to be changed when forwarding mail, support fwd-to QWKnet · d8e03849
      Rob Swindell authored
      The new messages subject may be passed into forwardmail(). If it isn't, it'll be prompted for (defaulting to the original message subject).
      
      Also, fix forwarding to QWKnet (look-up full-route/to-user-number).
      d8e03849
    • Rob Swindell's avatar
      Address GCC warning · 0cebd95a
      Rob Swindell authored
      ‘%s’ directive writing up to 255 bytes into a region of size between 103 and 128
      reported by Nelgin.
      0cebd95a
    • Rob Swindell's avatar
      Don't repeate mail "comment" headers in exported netmail msgs · 33568d12
      Rob Swindell authored
      smb_getmsgtxt() returns any "comment" headers as part of the message body text, and has since 2003.
      When I added mail->netmail (stored message) export support to SBBSecho v3, I duplicated this logic, so comment headers were added *twice* to exported netmail messages. Oops. I didn't notice until today when playing with forwarding-to-netmail (FTN).
      
      Also noticed and fixed: any comment headers in posted messages (unlikely/uncommon) would not be exported to EchoMail messages. Use the correct smb_getmsgtxt() mode flags ("NO_TAILS" instead of "BODY_ONLY") - I know, not great names.
      33568d12
    • Rob Swindell's avatar
      Overhauled message forwarding, allow comments · 657ba52d
      Rob Swindell authored
      No longer derive the new message header from the original - too many problems. Simplified the forwarding support smblib (multiple SENDER* and RECIPIENT* header fields no longer expected/supported). Technically, the FORWARDED header field really serves no important purpose now.
      A comment can be passed into forwardmail() or (if NULL), will be prompted for. There is an issue where the added comment can be obscured by the receiving mail program if the original message is a multi-part MIME message. Not sure the best solution for that. Still a WIP in that regard.
      657ba52d
  4. Dec 09, 2020
  5. Dec 08, 2020
  6. Dec 07, 2020
  7. Dec 06, 2020
    • Rob Swindell's avatar
      More @-codes for bigger units of free disk space · 66aef8a6
      Rob Swindell authored
      - FREESPACEM - Mebibytes
      - FREESPACEG - Gibibytes
      - FREESPACET - Tebibytes
      
      Mr. Millionaire's request.
      66aef8a6
    • Rob Swindell's avatar
      Don't print a CRLF in printfile() (called by menu) if no file exists · 0286b97e
      Rob Swindell authored
      printfile() assumes you want the file displayed starting in column 0, so will send a CRLF to insure that it does (unless the P_NOCRLF mode flag is specified). But this CRLF printing was happening before the file was opened and when the P_NOERROR mode flag is specified, this should be a silent failure with no print output. So move the CRLF printing to *after* the file is opened.
      
      This expose an issue in the latest xtrn_sec.js where it makes several calls to bbs.menu() with the P_NOERROR mode flag set, expecting nothing to happen if/when the optional display files (e.g. xtrn*_tail.*) don't exist.
      
      Reported by JC via IRC.
      0286b97e
    • Rob Swindell's avatar
      Fix null pointer deref (crash) in new_user() when "client" object is invalid · e67fe56e
      Rob Swindell authored
      When system.new_user() was called but the current "client" object is uninitialized (e.g. has NULL protocol, host or IP address fields because there is no active client, e.g. because is was called from a timed event with active user online) - this code would dereference a NULL pointer and crash the b0rad. Reported by Mortifis.
      e67fe56e
    • Rob Swindell's avatar
      New @-codes for current message thread info · 7acd5931
      Rob Swindell authored
      - MSG_THREAD_ID
      - MSG_THREAD_BACK
      - MSG_THREAD_NEXT
      - MSG_THREAD_FIRST
      
      for John (JCBBS). Not sure what you're going to use these for, but there you have them. <shrug> :-)
      7acd5931
  8. Dec 04, 2020
    • Rob Swindell's avatar
    • Rob Swindell's avatar
      ZMODEM Window Management support · 829627b9
      Rob Swindell authored
      The default is still full-streaming mode. The default can be changed by
      setting [ZMODEM] MaxWindowSize in sexyz.ini to a maximum window size to
      use by default (e.g. "100K"). Additionally, a [ZMODDEM] TargetWindowSize
      can be set to a duration (e.g. 60s) to dynamically adjust the maximum
      window size to match the through-put rate while keeping the outstanding data
      in-flight to an estimated "duration". When TargetWindowSize is used, the
      MaxWindowSize only specifies the *initial* maximum window size.
      
      The new '-w' command-line option can be used to control Window Management
      support (e.g. over-riding the .ini set default) - by using '-w' or '-w0',
      Window Management won't be used or by using '-w<max-size>', a maximum window
      size will be imposed (subject to the TargetWindowSize setting mentioned
      above). <max-size> can be specified in bytes or multiples (e.g. "-w100K").
      Ths option is similar to the [l]sz '-w' option except no space is expected
      between '-w' and the (optional) max-size value.
      
      Also new, when receiving [ZMODEM] FullDuplex can be set to FALSE to disable
      streaming mode: if the RecvBufSize is not set (0), the sender should use the
      subpacket data length (block size, e.g. 1K) as the segment size. Otherwise,
      setting FullDuplex=FALSE should produce the same behavior as setting the
      RecvBufSize would before (the result being the use of "segmented ZMODEM"
      instead of "streaming ZMODEM").
      
      All sexyz command-line options are case-sensitive now (not just the 'cmds').
      A lot of code clean-up in zmodem.c.
      
      Incremented zmodem.c rev to 2.0.
      Incremented sexyz version to 3.0.
      829627b9
    • Rob Swindell's avatar
      Change rev to 2.0. · 61b0bde8
      Rob Swindell authored
      61b0bde8
  9. Dec 03, 2020
  10. Dec 02, 2020
  11. Dec 01, 2020
  12. Nov 30, 2020
  13. Nov 29, 2020
Loading