@ -2681,7 +2681,7 @@ function rcube_webmail()
}
// set unread count to window title
if (set_title && document.title)
if ((set_title || mbox==this.env.mailbox) && document.title)
{
var doc_title = String(document.title);
reg = /^\([0-9]+\)\s+/i;