1. 08 Oct, 2018 1 commit
  2. 29 Jun, 2018 1 commit
  3. 18 Jun, 2018 1 commit
    • Kevin J. McCarthy's avatar
      Convert context and buffy to use nanosecond timestamps. · 120f63a9
      Kevin J. McCarthy authored
      The inotify interface has an unfortunate side effect of making Mutt
      react too quickly to new mail.  Sometimes, the mail is only
      half-delivered when the mailbox is checked.  Because Mutt is using the
      stat mtime - seconds resolution - this means it won't realize there
      are more messages delivered during the same second.
      
      Nanosecond resolution fields were standardized in POSIX.1-2008, so
      check for and use those if they are available.
      120f63a9
  4. 03 Jun, 2018 1 commit
  5. 01 Jun, 2018 1 commit
  6. 29 Nov, 2017 1 commit
  7. 01 Apr, 2017 1 commit
  8. 05 Aug, 2016 1 commit
  9. 22 Jul, 2016 1 commit
  10. 23 Jun, 2016 1 commit
    • Kevin J. McCarthy's avatar
      Change sidebar to consistently use realpath for context and buffy comparison. · 149eb79e
      Kevin J. McCarthy authored
      The original sidebar patch contained a half-implemented attempt to use
      realpath() mailbox paths for comparison.  (Presumably so the open mailbox
      remains highlighted despite symlink issues).
      
      Add realpath to the Context, and set it when opening a mailbox.
      Remove sidebar ifdef for the buffy member, and always set it there too.
      
      Change the sidebar to use the realpath for comparison everywhere.
      
      mutt_buffy_check() is using stat device and inode for comparison.
      Perhaps this can be changed to use realpath instead, but that's beyond
      the scope of this patch.
      149eb79e
  11. 17 Jun, 2016 1 commit
    • Kevin J. McCarthy's avatar
      Combine the basic and extended buffy functions. · 4bf01a88
      Kevin J. McCarthy authored
      Add a check_stats parameter to the mbox, maildir, and mh buffy
      functions.  Use that parameter to determine whether to also count
      total, new, and flagged messages.
      
      This makes the functions a bit more complicated, but improves
      efficiency (for maildir and mh).
      
      Also includes the following cleanup/fixes:
      * Move the orig-value counter reset to the beginnining of the loop,
        (before tmp->new is set to 0).
      
      * Change trashed maildir messages to not be counted in msg_count
      
      * Remove an incorrect setting of mailbox->new based on msg_count in
        maildir.  (I missed this one for 1f840760e6e0)
      
      * Change mbox to use the context->mtime for stats_last_checked,
        removing a race condition.
      
      * Fix mh to actually count the messages in order to generate msg_count.
        mh_sequences only covers the range of messages with some sort of
        flag.
      4bf01a88
  12. 07 Jun, 2016 1 commit
    • Kevin J. McCarthy's avatar
      Make extended buffy independent of the sidebar. · 04a6356b
      Kevin J. McCarthy authored
      Add new boolean option $mail_check_stats (default off) and
      $mail_check_stats_interval.  The first turns extended buffy on.  The
      second sets the amount of time in between extended buffy checks
      (defaulting to 60 seconds).
      
      Remove the option $sidebar_refresh_time.
      
      Change mutt_buffy_check() to only notify the sidebar to redraw if a
      mailbox buffy value changes.
      
      Remove the #ifdefs around the extended buffy functions.  The next
      patch will merge these functions with the basic functions and pass a
      parameter instead.
      
      Imap is a special case, because it sends out the status in one batch.
      Change this to perform the comparisons inside cmd_parse_status() and
      flag the sidebar there.  It was previously directly assigning the
      status counters (unsigned int) to the buffy->new (short).  Change this
      to assign 1/0.
      04a6356b
  13. 04 Jun, 2016 4 commits
    • Kevin J. McCarthy's avatar
      Start to fix sidebar buffy modifications. · 1c904be6
      Kevin J. McCarthy authored
      The extended buffy for mh had incorrect placement of the loop
      brackets.  The counters weren't being incremented in the loop.
      
      Fix extended buffy for maildir to count a maildir message as new if it
      doesn't have the info delimeter.
      
      Remove shortcircuits added to the basic buffy stating there is new
      mail when (msg_unread > 0).  This is not necessarily true, depending
      on $mail_check_recent.
      
      Note: the extended buffy still needs more fixes, which will be done
      when it is refactored into its own option.
      1c904be6
    • Kevin J. McCarthy's avatar
      Add "mutt_" prefix to global sidebar functions. · 2ffbb3b8
      Kevin J. McCarthy authored
      Also, remove unused sb_init declaration.
      2ffbb3b8
    • Kevin J. McCarthy's avatar
      Sidebar clean up: building and drawing logic. · 086a5b80
      Kevin J. McCarthy authored
      Fix the autoconf/makefile.am changes to be consistent.
      
      Create a global SidebarNeedsRedraw to indicate a redraw is needed,
      instead of putting sb_draw() everywhere in the code.
      
      Create a menu_redraw_sidebar() function and use the REDRAW_SIDEBAR
      flag instead of piggy-backing it inside the index loop.
      
      Fix curs_main.c and pager.c to be a bit cleaner by using the global and
      REDRAW_SIDEBAR.
      
      Start to clean up some of the buffy code, but this needs to refactored
      and fixed.
      086a5b80
    • Richard Russon's avatar
      Add neomutt version of sidebar patch. (closes #3829) · 389c74bb
      Richard Russon authored
      This is the patch from neomutt; branch 'devel/win-sidebar'; commit
      c796fa85f9cacefb69b8f7d8545fc9ba71674180 with the following changes:
      
        - move the sample muttrc and vimrc to contrib.
        - remove the README.sidebar.
        - empty out the PATCHES file.
      389c74bb
  14. 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
  15. 28 Apr, 2016 1 commit
  16. 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
  17. 18 Jul, 2015 1 commit
  18. 23 Jan, 2013 1 commit
  19. 13 Sep, 2010 1 commit
  20. 06 Aug, 2010 1 commit
  21. 09 Aug, 2009 3 commits
  22. 06 Jul, 2009 1 commit
  23. 17 Jun, 2009 1 commit
  24. 02 Jun, 2009 2 commits
  25. 21 Apr, 2009 3 commits
  26. 11 Apr, 2009 1 commit
  27. 18 Mar, 2009 1 commit
  28. 15 Mar, 2009 1 commit
  29. 29 Aug, 2008 1 commit
    • YONETANI Tomokazu's avatar
      Only consider empty files non-existent for buffy's purpose. · 75142320
      YONETANI Tomokazu authored
      According to SUS, the st_size member of struct stat is undefined
      for directories. In case a system reports 0, the newly_created
      flag will be set for a directory and the magic will be cleared.
      
      If the folder type is cleared, mutt won't check the folder for
      new mail and thus will ignore MH and Maildir type folders on
      such a fs completely (e.g. the HAMMER fs on DragonFly BSD).
      75142320
  30. 02 Jul, 2008 1 commit
  31. 21 May, 2008 1 commit
  32. 20 Mar, 2007 1 commit