1. 01 Dec, 2018 2 commits
  2. 30 Nov, 2018 2 commits
  3. 27 Nov, 2018 1 commit
    • Kevin J. McCarthy's avatar
      Fix QRESYNC crash after a large number of VANISHED messages. · 41816374
      Kevin J. McCarthy authored
      When handling QRESYNC vanished, imap_expunge_mailbox() was called to
      empty out the messages.  Various counters, including vcount are
      updated by the mx_update_tables() after the expunge.
      
      These counters need to be reset, because mx_update_context() will do
      so once again at the end of reading new headers.  This can cause an
      out of bounds access in v2r.
      41816374
  4. 25 Nov, 2018 2 commits
  5. 24 Nov, 2018 3 commits
  6. 23 Nov, 2018 1 commit
  7. 22 Nov, 2018 1 commit
  8. 18 Nov, 2018 1 commit
  9. 17 Nov, 2018 2 commits
  10. 15 Nov, 2018 1 commit
  11. 14 Nov, 2018 2 commits
  12. 10 Nov, 2018 1 commit
  13. 07 Nov, 2018 2 commits
  14. 06 Nov, 2018 5 commits
  15. 31 Oct, 2018 3 commits
    • Kevin J. McCarthy's avatar
      Always print mutt_buffer_pool_free() size debug output. · e6059484
      Kevin J. McCarthy authored
      So I can easily see the resulting size of the pool at the end of a
      run.
      e6059484
    • Kevin J. McCarthy's avatar
      Add a flag for dynamic date range evaluation in patterns. · 5de55f85
      Kevin J. McCarthy authored
      By default, Mutt evaluates relative date patterns, such as "~d<1d"
      against the date when the pattern is compiled.
      
      For index-format-hook, we need to pattern match against a message
      based on the current date/time, so that for example, conditional date
      format patterns correctly match after Mutt has been open for many
      days/weeks.
      
      Add a flag, MUTT_PATTERN_DYNAMIC, that changes ~d and ~r evaluation to
      reevaluate the min/max range with each match.
      
      This will of course be slower, but for the index, where a screenful of
      messages at a time are evaluated, is an acceptable tradeoff against
      accurate pattern matching.
      5de55f85
    • Kevin J. McCarthy's avatar
      Add index-format-hook and expando. · 7ebb6205
      Kevin J. McCarthy authored
      index-format-hook is used to allow dynamic insertion/evaluation of
      format strings into $index_format.
      
      It can be used, for example, to implement date formatting based on the
      age of the message.
      
      Add a new %@name@ expando to $index_format, which evaluates the
      matching index-format-hooks with "name".
      7ebb6205
  16. 30 Oct, 2018 1 commit
  17. 23 Oct, 2018 1 commit
    • Peter Wu's avatar
      Fix memleaks of saslconn on error paths · 7c6d3851
      Peter Wu authored
      If mutt_sasl_client_new returns an error, the callers would ignore the
      allocated saslconn resource from sasl_client_new. Be sure to release
      these with sasl_dispose as documented in sasl.h. Likewise, let callers
      (POP/IMAP) dispose the resource on their error paths. SMTP was already
      taken care of. Found with LeakSanitizer in IMAP.
      7c6d3851
  18. 17 Oct, 2018 2 commits
    • Kevin J. McCarthy's avatar
      Minor syntactic cleanup in mutt_print_attachment(). · 420226ce
      Kevin J. McCarthy authored
      Converting a return to a rc assignment accidentally left an extra
      parenthesis.
      420226ce
    • Kevin J. McCarthy's avatar
      Ensure a resized empty buffer is null-terminated. · 42481bda
      Kevin J. McCarthy authored
      The new buffer code is using the pool, which ensures its buffers are
      null-terminated.
      
      However, if a "new" buffer from another part of the code were passed
      to one of the temporary interfaces that resizes the buffer, it's
      possible a non-terminated string might end up being passed through.
      
      It's reasonable to expect mutt_b2s() for a "new" buffer should be the
      same as after it is resized larger.  So ensure the resulting buf->data
      is properly terminated to avoid surprises.
      42481bda
  19. 16 Oct, 2018 1 commit
    • Kevin J. McCarthy's avatar
      Remove conversion of nbsp to space. · dd1e0ea4
      Kevin J. McCarthy authored
      Keep the behavior of it not line-breaking, but don't change it to a
      space character when displaying.  This is so copy-paste from the pager
      will preserve the nbsp, which is semantically important in some
      locales.
      dd1e0ea4
  20. 15 Oct, 2018 6 commits