]> granicus.if.org Git - neomutt/commitdiff
A variant of buffy notification. Note: If you folks don't like
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 23 Sep 2002 12:08:43 +0000 (12:08 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 23 Sep 2002 12:08:43 +0000 (12:08 +0000)
this, we can return to the old version.

buffy.c

diff --git a/buffy.c b/buffy.c
index 601c338b65a2b4c20c334d9a9316e6aef359bad0..ac7400443688af2abc4f0062c1302b01107a9a7c 100644 (file)
--- a/buffy.c
+++ b/buffy.c
@@ -432,6 +432,8 @@ int mutt_buffy_list (void)
   int pos;
   int first;
 
+  int have_unnotified = BuffyNotify;
+  
   pos = 0;
   first = 1;
   buffylist[0] = 0;
@@ -439,7 +441,7 @@ int mutt_buffy_list (void)
   for (tmp = Incoming; tmp; tmp = tmp->next)
   {
     /* Is there new mail in this mailbox? */
-    if (!tmp->new)
+    if (!tmp->new || (have_unnotified && tmp->notified))
       continue;
 
     strfcpy (path, tmp->path, sizeof (path));
@@ -450,11 +452,11 @@ int mutt_buffy_list (void)
     
     if (!first)
       pos += strlen (strncat(buffylist + pos, ", ", sizeof(buffylist)-1-pos));
-    
+
     /* Prepend an asterisk to mailboxes not already notified */
     if (!tmp->notified)
     {
-      pos += strlen (strncat(buffylist + pos, "*", sizeof(buffylist)-1-pos));
+      /* pos += strlen (strncat(buffylist + pos, "*", sizeof(buffylist)-1-pos)); */
       tmp->notified = 1;
       BuffyNotify--;
     }