Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, for more info) to build successfully.

  1. 12 Nov, 2020 2 commits
    • Rob Swindell's avatar
      Fix crashing bug introduced in previous commit of this file · 6dd2aedb
      Rob Swindell authored
      Don't pass NULL to strcasestr().
    • Rob Swindell's avatar
      Improved parsing of "charset" parameter in MIME Content-Type header. · ad79c591
      Rob Swindell authored
      In Issue #177, the reported problem message header was "Content-Type: text/plain; charset=utf-8; format=flowed"
      The fact that the "charset" value was not quoted and not space delimited means the charset would have been parsed as "utf-8;", which would not provide an exact match (against "utf-8") in smb_msg_is_utf8() and thus the message body would not be considered to be utf-8 encoded.
      The solution is to terminate the "charset" parameter value at the semicolon, if it exists, and the value was not quoted.
      Also, for good measure, only search for " charset" or ";charset" to avoid false-positive parameter matches,  like "notcharset".
  2. 06 Nov, 2020 1 commit
    • Rob Swindell's avatar
      Replace ctype.h function calls with new MSVC-safe XPDEV macros · 8a7b7308
      Rob Swindell authored
      I'm fed-up with MSVC assertions in ctype functions (e.g. isdigit, isprint, isspace, etc.) when called with out-of-range (e.g. negative) values.
      This problem only affects MSVC debug builds, but if you run them (like I do), these things are like little time bombs that can drive you crazy (knocking your board out of service).
      The new macros names are bit more descriptive as well.
  3. 16 Aug, 2020 1 commit
  4. 19 Nov, 2019 1 commit
  5. 29 Jun, 2019 1 commit
  6. 06 May, 2019 1 commit
    • rswindell's avatar
      MIME header fields are case-insensitive. <sigh> · 7c0dbbb4
      rswindell authored
      So replace some strstr() calls with either (new local function) strStartWith_i()
      or strcasestr(), depending.
      strStartWith_i() return length of the matched word, so no need to sprinkle
      about magic numeric constants everywhere. The extra calls to strlen() are worth
      the code clarity / reliability, methinks.
      TODO: find out if there's a way to calculate the length of string-constants at
      compile-time (?).
  7. 05 May, 2019 1 commit
  8. 04 May, 2019 3 commits
  9. 30 Apr, 2019 1 commit
  10. 28 Apr, 2019 1 commit
    • rswindell's avatar
      Correctly detect a "last boundary delimeter": · 1cbfce29
      rswindell authored
      Without this change, some attachment (e.g. from gmail) would not be correctly
      decoded because gmail would not insert any blank lines between the end of the
      nested multipart/alternative part and the beginning of the attachment part:
      Content-Type: image/jpeg;
      Content-Disposition: attachment;
      Content-Transfer-Encoding: base64
      It looks (from RFC2046) like boundary delimeters should actually be:
      "\r\n--<boundary>", but I'll look into that later.
  11. 11 Apr, 2019 2 commits
  12. 10 Apr, 2019 4 commits
  13. 08 Aug, 2018 2 commits
  14. 20 Feb, 2018 1 commit
  15. 28 Nov, 2017 2 commits
  16. 27 Nov, 2017 3 commits
  17. 26 Nov, 2017 1 commit
  18. 25 Nov, 2017 1 commit
  19. 29 Nov, 2016 2 commits
  20. 18 Nov, 2016 1 commit
    • rswindell's avatar
      Introduced 2 new poll concepts: · 5ea459df
      rswindell authored
      - Closures (polls can be closed for new voting by the pollster)
      - Results can have configurable visibility:
        a. Only to voters (and the pollster) - the default
        b. Everyone
        c. Everyone once the poll has closed
        d. Only the pollster
      Changes to smb_getmsgtxt():
      Main change: poll questions can now be quoted when replying to a posted poll
      (the results cannot be quoted).
      Also: there's now automatically a blank line inserted between comment header
      fields and poll answers or the msg body text.
      Also: upon any malloc failure, the function now returns NULL.
      New functions: smb_msg_is_from() and smb_addpollclosure().
  21. 04 Dec, 2015 1 commit
  22. 26 Nov, 2015 1 commit
    • rswindell's avatar
      Long requested feature: · bc9b40c4
      rswindell authored
      smb_getmsgtxt() can now return *just* the plain-text part of a multipart MIME
      encoded message by setting the GETMSGTXT_PLAIN bit in the mode argument.
      This is useful for reading (many) MIME encoded emails via the Terminal server.
      The full MIME body text is left in place for those message viewing methods
      which can nicely handle (e.g. display) non-plain-text parts.
  23. 22 Aug, 2015 1 commit
  24. 23 Oct, 2012 1 commit
  25. 12 Aug, 2007 1 commit
  26. 10 Jul, 2007 1 commit
    • deuce's avatar
      64-bit · f2aff08b
      deuce authored
      The CRC headers now include gen_defs.h
  27. 30 Sep, 2005 1 commit
  28. 17 Dec, 2004 1 commit