1. 04 Jan, 2019 1 commit
    • Kevin J. McCarthy's avatar
      Clean up code indentation. · 248c2ee8
      Kevin J. McCarthy authored
      These are mostly automated changes corresponding to the emacs
        (c-set-style "linux")
        (setq c-basic-offset 2)
        (c-set-offset 'case-label '+)
      Most of the code follows the convention:
        (add-to-list 'c-cleanup-list 'space-before-funcall)
      but this is not enforced by this indentation cleanup.
      Also, I personally dislike tabs, so I have:
        (setq-default indent-tabs-mode nil)
      in my own configuration.  However I have no desire to change every line
      just for that effect.  So this cleanup does nothing about the mix issue.
      Some of the secondary files (e.g. regex.c) have been skipped.
      I've also skipped crypt-gpgme.c, because I need to think about that
      file.  Werner Koch and the GnuPG team contributed most it, and it
      follows the Gnu indentation settings.  It should probably be made
      uniform with Mutt, but I don't want to discourage future GnuPG
      contribution to the file.
      I manually reverted a few unsightly cleanups, and added a few tweeks
      when I saw things that could be improved.
  2. 01 Jan, 2019 1 commit
    • Kevin J. McCarthy's avatar
      Remove trailing whitespace. · 443295ee
      Kevin J. McCarthy authored
      The result of
        find . -name "*.[ch]" -exec emacs -batch {} \
          --eval="(progn (delete-trailing-whitespace) (and (buffer-modified-p) (save-buffer)))" \;
  3. 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.
  4. 17 Jul, 2018 1 commit
    • Brandon Long's avatar
      Improve OAUTHBEARER support. · 98cc4236
      Brandon Long authored
      Move token refresh commands to their own config variables. Consolidate
      code for refreshing tokens and generating the SASL OAUTHBEARER
      argument in account.c. Add support for OAUTHBEARER to pop.
      Fix pop_auth_oauth() mutt_from_base64() call from 1.10.1 release.
  5. 01 Jun, 2017 1 commit
  6. 11 Oct, 2016 1 commit
  7. 10 Oct, 2016 1 commit
  8. 09 May, 2016 1 commit
    • Derek Martin's avatar
      Change M_* symbols to MUTT_* · 9cafb05c
      Derek Martin authored
      Changeset 23334e967dd7 created a workaround for a namespace conflict
      with Solaris and derivatives.  After some discussion, the team decided
      it would be best to move away from using the "M_" prefix for macros.
      This patch was automatically generated by running:
        perl -wpi -e 's/\bM_(\w+)\b/MUTT_$1/g' `find . -name '*.[ch]' -print`
      with the exception that sys_socket.h was exempted.  (That file will
      be backed out subsequent to this commit.)
      Thanks to Andras Salamon for supplying the perl script used to make
      this change.
  9. 19 Jan, 2016 1 commit
    • Kevin J. McCarthy's avatar
      Make sasl authentication buffers dynamically sized. (see #3804) · 1cab7de7
      Kevin J. McCarthy authored
      The reporter found that the current buffer of HUGE_STRING was
      insufficient in his case to encode the clientout response back to the
      server in imap_auth_sasl().
      Since sasl gives us the size of "clientout", we can dynamically malloc
      and resize the buffer as needed.  This patch uses max(LONG_STRING,
      (clientoutlen*2)).  This is sufficient to hold the base64 encoded
      value plus additional prefix/suffix needed in each protocol.
      The size is rechecked after each sasl_client_step() and resized as
      Similar code is in pop_auth_sasl() and smtp_auth_sasl(), so convert
      all three to use a dynamic buffer.
  10. 04 Oct, 2013 1 commit
  11. 23 Jul, 2013 1 commit
  12. 03 Dec, 2011 1 commit
    • Dan Fandrich's avatar
      Declare many structures const (closes #3552) · 05df9d08
      Dan Fandrich authored
      Many structs used in mutt are actually constant but are defined
      without the 'const' keyword. This can slow initialization (slightly)
      in some environments due to extra copying and increases the amount of
      writable RAM required at run-time, which can be significant on non-MMU
      systems. Using const can also increase the opportunities for compiler
      The attached patch marks many such structures as const. On my test x86
      build, this reduces the size of .data by over 50%.
  13. 06 Aug, 2010 1 commit
  14. 17 Mar, 2009 1 commit
  15. 27 Aug, 2007 1 commit
  16. 02 Apr, 2007 1 commit
  17. 08 Sep, 2006 1 commit
  18. 17 Sep, 2005 2 commits
  19. 01 Sep, 2005 1 commit
  20. 03 Feb, 2005 1 commit
  21. 10 Sep, 2003 1 commit
  22. 23 Jan, 2003 1 commit
  23. 10 Dec, 2002 1 commit
  24. 30 Aug, 2001 1 commit
  25. 22 Aug, 2001 1 commit
  26. 18 Jun, 2001 1 commit
  27. 13 Jun, 2001 2 commits
  28. 10 May, 2001 1 commit
  29. 15 Feb, 2001 1 commit
  30. 30 Jan, 2001 1 commit
  31. 08 Jan, 2001 1 commit
  32. 10 Oct, 2000 1 commit