onUntaggedResponse method

void onUntaggedResponse(
  1. ImapResponse imapResponse
)

Handles an untagged response from the server

Implementation

void onUntaggedResponse(ImapResponse imapResponse) {
  final task = _currentCommandTask;
  try {
    if (task == null || !task.parseUntaggedResponse(imapResponse)) {
      log('untagged not handled: [$imapResponse] by task $task');
    }
  } catch (e, s) {
    // malformed untagged data must not abort the processing of the
    // remaining server responses
    logApp('Unable to parse untagged response [$imapResponse]: $e $s');
  }
}