internal void CheckForStatusUpdates(ImapResponseReader reader)
{
StatusUpdateReceivedEventArgs e = null;
while (true) {
if (!reader.IsStatusUpdate) {
break;
}
if (e == null) {
e = new StatusUpdateReceivedEventArgs(SelectedMailbox);
}
e.MailboxInfo.InjectLine(reader.CurrentLine);
reader.ReadNextLine();
continue;
}
if (e != null) {
InvokeStatusUpdateReceived(e);
}
}