summaryrefslogtreecommitdiffstats
path: root/buffy.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2002-09-23 12:08:43 +0000
committerThomas Roessler <roessler@does-not-exist.org>2002-09-23 12:08:43 +0000
commit0a124383851523fad0b360c0d9c64e0b65195ade (patch)
tree9d419cea58baf8581cfc17e36e5e8285a73cbde4 /buffy.c
parentaef5a55dc7b9e5c8c94a499f2d95896eb6d797fc (diff)
A variant of buffy notification. Note: If you folks don't like
this, we can return to the old version.
Diffstat (limited to 'buffy.c')
-rw-r--r--buffy.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/buffy.c b/buffy.c
index 601c338b..ac740044 100644
--- 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--;
}