1. 19 Apr, 2018 2 commits
    • Kevin J. McCarthy's avatar
      3ec02fbc
    • Kevin J. McCarthy's avatar
      Add $browser_abbreviate_mailboxes. · 69959820
      Kevin J. McCarthy authored
      This allows '=' and '~' mailboxes shortcuts to be turned off in the
      browser mailbox list.
      
      The default $sort_browser value of "alpha" uses strcoll(3), which
      ignores some punctuation.  When using multiple accounts with
      dynamically changing values of $folder, this can lead to an
      unintuitive sorting order.  (See issue #22 for an example.)
      
      This problem came about because of commit 8328ce68, which enabled
      mutt_pretty_mailbox() calls for IMAP and POP mailboxes too.  The
      commit had a valid point about consistency and too-wide mailbox
      listings, so I don't really want to revert it.
      
      This option provides an alternative to completely enable/disable the
      shortcuts for those who run into an issue.
      69959820
  2. 12 Jan, 2018 1 commit
    • Olaf Hering's avatar
      examine_directory: set directory/symlink size to zero · 5619de2b
      Olaf Hering authored
      The size of a directory or symlink in the folder browser is not meaningful.
      For directories it means just how many blocks were allocated to hold all
      entries. It does not mean that the entries are still present in the directory.
      For symlinks its the size of the target.
      Set both to zero to simplify the folder browser output.
      Signed-off-by: Olaf Hering's avatarOlaf Hering <olaf@aepfle.de>
      5619de2b
  3. 20 Sep, 2017 1 commit
  4. 11 Aug, 2017 1 commit
    • Kevin J. McCarthy's avatar
      Change helpers functions to pass actx. (see #3728) · 3433587a
      Kevin J. McCarthy authored
      Change the pager, compose, recvattach and recvcmd to pass the actx
      instead of the individual idx and idxlen parameters.
      
      Separate out the compose menu exit logic to first free the BODY data
      and then call the shared actx free function at the bottom.
      3433587a
  5. 27 Mar, 2017 2 commits
  6. 12 Mar, 2017 1 commit
    • Dmitri Vereshchagin's avatar
      Add shortcuts for IMAP and POP mailboxes in the file browser · 8328ce68
      Dmitri Vereshchagin authored
      Mailbox list may not be properly displayed in a standard 80-column
      terminal window if the $folder variable contains a long URL.  In such
      a case only left part of each entry name can be visible with the default
      value of $folder_format.  What's worse, this visible part may not be
      enough to distinguish between the entries.
      
      Thus in this case mutt_pretty_mailbox() will be just as useful as for
      local mailboxes.
      8328ce68
  7. 02 Sep, 2016 1 commit
  8. 23 Aug, 2016 1 commit
    • Kevin J. McCarthy's avatar
      Remove the $locale configuration variable. · deb6db77
      Kevin J. McCarthy authored
      $locale was only used to set the LC_TIME locale.  Unfortunately, Mutt
      previously defaulted to using "C".  This overrode the user's locale
      setting and forced them to re-specify their locale inside their
      .muttrc.
      
      Remove $locale and instead use the locale specified by the
      environment.  Mutt still allows "C locale" dates by using a leading
      "!" in $date_format, ${}, etc.
      
      Another use of $locale was to customize attribution dates using hooks.
      The next commit will introduce $attribution_locale, which can be used
      for this instead.
      
      Thanks to Derek Martin for the original patch!
      deb6db77
  9. 30 Jul, 2016 1 commit
    • Kevin J. McCarthy's avatar
      Add unread and total message count format strings to $folder_format. · c8c9bbd1
      Kevin J. McCarthy authored
      %n will show the unread message count in the mailbox.  %m will show
      total message count.  Except for %n with IMAP, these both require
      $mail_check_stats to be set, which puts these counts inside BUFFY.
      
      Since the imap_mboxcache is never fresher than the value in BUFFY,
      remove the special imap_mailbox_state() call.  Instead, just update
      from the current Context for all mailboxes.
      
      Remove the logic that overrode the %N format string to show unread
      count for IMAP mailboxes.  If they want to see unread count, they will
      have to change the $folder_format.
      
      Although it doesn't look possible to reuse browser_state.entry slots,
      change the OP_DELETE_MAILBOX to memset(0) the deleted slot.  Then, we
      can change to logic in add_folder() so it doesn't need to zero-out
      unset values.
      c8c9bbd1
  10. 17 Jun, 2016 1 commit
    • Olaf Hering's avatar
      folder_file: remove struct stat · f35f2c98
      Olaf Hering authored
      Add and use new flag to indicate the folder is on local filesystem.
      Add and use new gid, uid and nlink member.
      Use existing ->mode member instead of stat->st_mode.
      Use existing ->size member instead of stat->st_size.
      Use existing ->mtime member instead of stat->st_mtime.
      Remove struct stat, the used values were already duplicated in the struct.
      This reduces memory usage.
      f35f2c98
  11. 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.
      9cafb05c
  12. 28 Apr, 2016 1 commit
    • Kevin J. McCarthy's avatar
      Add cols parameter to mutt_FormatString() · c9223a12
      Kevin J. McCarthy authored
      Continuing with the conversion to using windows for screen drawing,
      mutt_FormatString() was directly using COLS for right justification
      and similar formatting.  Instead pass in a parameter, cols.
      
      This change involved seeding the parameter through callback functions
      too, as many of them call mutt_FormatString() back.
      c9223a12
  13. 01 Jan, 2016 1 commit
    • Kevin J. McCarthy's avatar
      Update copyright notices. · 1b329ffe
      Kevin J. McCarthy authored
      This patch only updates existing copyright notices in the source
      files, using commit dates since the last copyright update in commits
      e3af935cdb1a and f8fd60d8d3f2.
      
      Add a notice to the COPYRIGHT file to refer to our mercurial
      repository for the full commit history.
      
      Add myself to the COPYRIGHT file and smime_keys.pl file.
      1b329ffe
  14. 04 Oct, 2015 1 commit
    • Kevin J. McCarthy's avatar
      Create a separate macro/push/exec event buffer. (closes #3779) · 53900afa
      Kevin J. McCarthy authored
      Currently, the SSL and TLS certficate prompts turn on
      OPTUNBUFFEREDINPUT, (to prevent macros and such from running right
      through the dialog).  Unfortunately, the menu dialog processing in
      menu_dialog_dokey() is using mutt_ungetch() to forward non-dialog keys
      on to standard menu processing.  With OPTUNBUFFEREDINPUT set, those keys
      never make it to the menu and are buffered until after the menu dialog.
      
      This patch creates a new event buffer, separate from the standard
      "unget" buffer, for use by macros, exec, and push events.  These events
      can be temporarily ignored by setting OPTIGNOREMACROEVENTS (renamed
      from OPTUNBUFFEREDINPUT), while continuing to allow unget events to be
      processed.
      
      Since the "push" and "unget" functions now go to different buffers,
      function names were slightly renamed, to make it less easy to
      unintentionally use the wrong function at the wrong time.
      53900afa
  15. 11 Apr, 2013 1 commit
  16. 10 Apr, 2013 1 commit
  17. 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
      optimization.
      
      The attached patch marks many such structures as const. On my test x86
      build, this reduces the size of .data by over 50%.
      05df9d08
  18. 23 May, 2011 1 commit
  19. 24 Aug, 2010 1 commit
  20. 06 Aug, 2010 2 commits
  21. 03 Aug, 2010 1 commit
  22. 11 Jun, 2009 1 commit
  23. 29 Apr, 2009 1 commit
    • Rocco Rutte's avatar
      Fix maildir times in mailboxes browser. Closes #626. · 21df7c80
      Rocco Rutte authored
      Instead of using the (pointless) mtime of the top-level maildir folder,
      use the latest mtime of the "new" and "cur" subdirectories. Maildir
      folders in the mailboxes list can now be properly sorted by date. This
      does not affect the directory browser. Also see #2421.
      21df7c80
  24. 17 Mar, 2009 1 commit
  25. 05 Jan, 2009 2 commits
  26. 04 Jan, 2009 1 commit
    • Brendan Cully's avatar
      Update copyrights. Closes #3016. · ecad84f5
      Brendan Cully authored
      I went through the logs of each file with a copyright header and
      updated the years for the authors in the headers for any non-comment
      changes they introduced. What a pain!
      ecad84f5
  27. 30 Nov, 2008 1 commit
    • Rocco Rutte's avatar
      Manage last search pattern outside of menu lifecycle · 30541be3
      Rocco Rutte authored
      Previously, the pattern was thrown away during menu destruction.
      For the next search, mutt then can't provide a good suggestion.
      The new behaviour is to manage the pattern outside the lifecyle
      to always provide the last pattern as suggestion.
      30541be3
  28. 02 Jul, 2008 1 commit
  29. 05 Sep, 2007 1 commit
  30. 13 Apr, 2007 1 commit
  31. 12 Apr, 2007 1 commit
  32. 09 Apr, 2007 1 commit
  33. 03 Apr, 2007 1 commit
  34. 20 Mar, 2007 1 commit
    • Rocco Rutte's avatar
      Enlarge help string buffers · 64f58f42
      Rocco Rutte authored
      Even on 80x25 terminals, SHORT_STRING (128 byte) may not be enough so use
      LONG_STRING (1k) as STRING (256 byte) may well be too short for wider
      terminals. Closes debian #4152777.
      64f58f42
  35. 05 Aug, 2006 1 commit
  36. 06 Oct, 2005 1 commit