diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2002-09-23 12:08:43 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2002-09-23 12:08:43 +0000 |
commit | 0a124383851523fad0b360c0d9c64e0b65195ade (patch) | |
tree | 9d419cea58baf8581cfc17e36e5e8285a73cbde4 /buffy.c | |
parent | aef5a55dc7b9e5c8c94a499f2d95896eb6d797fc (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.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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--; } |