]> code.citadel.org Git - citadel.git/blobdiff - webcit/iconbar.c
new mail notification
[citadel.git] / webcit / iconbar.c
index 0df8c349d3830371b6b964df6bc4cb58028049db..cf14021835adebe2205a8a07f3f821ee1e21f89e 100644 (file)
@@ -114,6 +114,10 @@ void do_iconbar(void) {
                }
                if (ib_displayas != IB_PICONLY) {
                        wprintf(_("Mail"));
+                       if (WC->new_mail != WC->remember_new_mail) {
+                               wprintf(" <b>(%d)</b>", WC->new_mail);
+                               WC->remember_new_mail = WC->new_mail;
+                       }
                }
                wprintf("</A></li>\n");
        }