Skip to content
Snippets Groups Projects
  1. Dec 17, 2020
    • Kayz's avatar
      Improvements to linux dosemu support · 52487ec4
      Kayz authored and Rob Swindell's avatar Rob Swindell committed
      The hardcoded external.bat file has been moved to a templated
      /exec/external.bat which can be modified by the sysop. ENV
      vars are in there to be able to customize as needed. emusetup.bat
      is no longer needed, but still supported. The actual dosemu command line
      is now stored in /exec/dosemulaunch.ini and can be customized for
      fossil or i/o command lines. the keystroke is now only sent for i/o, and
      only sent as \n instead of \r which would trigger undesired behavior in
      certain programs. The above 2 files can also be placed in door dirs
      to override. ansi.com has been removed as it was not needed. default
      external.bat includes cmd lines for share, x00, etc. (user will still
      need to provide these in xtrn/dosutils).
      52487ec4
  2. Dec 14, 2020
  3. Dec 13, 2020
  4. Dec 12, 2020
  5. 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
  6. 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
      Include comment headers in smb_getmsgtxt() returned buffer · e7698942
      Rob Swindell authored
      even when GETMSGTXT_PLAIN mode flag is used and the message contains a MIME-encoded plain-text portion. Obviously the GETMSGTXT_NO_HFIELDS exception still applies.
      
      The fixed problem was when forwarding a MIME-encoded email, the forwarding information (and user comment, if supplied) could be suppressed/lost.
      e7698942
    • 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
  7. Dec 09, 2020
    • Rob Swindell's avatar
      Parse/separate forward-to-netmail name from address · be8851e8
      Rob Swindell authored
      Only do the local user notification when appropriate.
      Signal the FTN netmail semaphore when appropriate.
      be8851e8
    • Rob Swindell's avatar
      Support forwarding of local email msg to networked mail. · 14a12612
      Rob Swindell authored
      Closes #83, #108, #141.
      Still to do: expose via JS (e.g. for use in msglist.js).
      14a12612
    • Rob Swindell's avatar
      Some message attributes (auxiliary and network) weren't shown · 9de1b02f
      Rob Swindell authored
      Copy some code from atcodes.cpp to show all the aux and network attributes.
      
      Also, the MsgAttr text.dat string only contains 17 %s's but we were passing 18, so the last attribute (KillSent) would never be shown.
      
      Instead, split this into 3 strings and just pass those 3 strings to the MsgAttr format string along with a ton of blank strings. So we don't have to keep updating the MsgAttr text.dat string every time we add more attribute flags (that was kind of ridiculous).
      9de1b02f
    • Rob Swindell's avatar
      Dump the "forwarded" header field date/time nicely · 5d27f8c8
      Rob Swindell authored
      Use ctime_r() to dump the forwarded date/time.
      Correct some other unsafe uses of ctime() here (replace with cime_r).
      Fix the accidental reference to the GPL license (it's actually LGPL for smblib).
      5d27f8c8
    • Rob Swindell's avatar
      When a message has been forwarded, invalidate the "to" ext/net ptrs · c76148b6
      Rob Swindell authored
      The convenience pointers to_ext and to_net need to be invalidated (nullified) if we are going to allow forwarding from local email boxes to network mail and keep all the original message header fields in tact.
      
      The "Forwarded" field must now be added *before* any new recipient information (local user extension or network address of the forwarding destination).
      
      This is part of the solution to request #83, #108, and #141.
      c76148b6
    • Rob Swindell's avatar
      Make read/unread mail-waiting stats easier to access · fee51099
      Rob Swindell authored
      New JS User.stats properties:
      - read_mail_waiting
      - unread_mail_waiting
      - spam_waiting
      
      New @-codes:
      - MAILR (read mail waiting)
      - MAILU (unread mail waiting)
      
      And the corresponding MAILR# and MAILU# codes (for non-current user's stats).
      
      Addresses feature request #191.
      fee51099
  8. Dec 08, 2020
  9. Dec 07, 2020
Loading