From 0a124383851523fad0b360c0d9c64e0b65195ade Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Mon, 23 Sep 2002 12:08:43 +0000 Subject: A variant of buffy notification. Note: If you folks don't like this, we can return to the old version. --- buffy.c | 8 +++++--- 1 file 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--; } -- cgit v1.2.3