# HG changeset patch
# User Derek Schrock <der...@lifeofadishwasher.com>
# Date 1491762748 14400
#      Sun Apr 09 14:32:28 2017 -0400
# Node ID 50278723ff9f425aef5ebc29f8c7ecd27f0fb9f1
# Parent  29239b1a6d50c1afc571959d7207af1b26f1a256
Add option $beep_new_buffy that controls if mutt should beep for buffy 
notifications.

diff -r 29239b1a6d50 -r 50278723ff9f UPDATING
--- a/UPDATING  Sat Apr 08 14:21:15 2017 -0700
+++ b/UPDATING  Sun Apr 09 14:32:28 2017 -0400
@@ -8,6 +8,9 @@
 The keys used are:
   !: modified feature, -: deleted feature, +: new feature
 
+default (unreleased):
+  + option $beep_new_buffy controls if mutt beeps for buffy notificatons.
+
 1.8.0 (2017-02-24):
 
   - $locale has been removed.  Mutt now respects the LC_TIME setting
diff -r 29239b1a6d50 -r 50278723ff9f curs_main.c
--- a/curs_main.c       Sat Apr 08 14:21:15 2017 -0700
+++ b/curs_main.c       Sun Apr 09 14:32:28 2017 -0400
@@ -656,7 +656,7 @@
        if (mutt_buffy_notify())
        {
          menu->redraw |= REDRAW_STATUS;
-         if (option (OPTBEEPNEW))
+         if (option (OPTBEEPNEW) && option (OPTBEEPNEWBUFFY))
            beep();
        }
      }
diff -r 29239b1a6d50 -r 50278723ff9f init.h
--- a/init.h    Sat Apr 08 14:21:15 2017 -0700
+++ b/init.h    Sun Apr 09 14:32:28 2017 -0400
@@ -316,6 +316,12 @@
   ** notifying you of new mail.  This is independent of the setting of the
   ** $$beep variable.
   */
+  { "beep_new_buffy",  DT_BOOL, R_NONE, OPTBEEPNEWBUFFY, 1 },
+  /*
+  ** .pp
+  ** When this variable and beep_new are \fIset\fP, mutt will beep whenever it
+  ** prints a message notifying you of new mail from a buffy mailbox.
+  */
   { "bounce",  DT_QUAD, R_NONE, OPT_BOUNCE, MUTT_ASKYES },
   /*
   ** .pp
diff -r 29239b1a6d50 -r 50278723ff9f mutt.h
--- a/mutt.h    Sat Apr 08 14:21:15 2017 -0700
+++ b/mutt.h    Sun Apr 09 14:32:28 2017 -0400
@@ -338,6 +338,7 @@
   OPTAUTOTAG,
   OPTBEEP,
   OPTBEEPNEW,
+  OPTBEEPNEWBUFFY,
   OPTBOUNCEDELIVERED,
   OPTBRAILLEFRIENDLY,
   OPTCHECKMBOXSIZE,

Reply via email to