The attached patch makes wmbiff update its mail count immediately after the mail reader (launched by a mouse click) exits. This is useful if the check interval is high and you don't want an outdated count hanging around long after all new messages have been marked as read.
You might want to make this configurable.
2007-10-01 11:00:42 UTC in WMBiff