|
|
@ -3246,8 +3246,10 @@ class Core {
|
|
|
|
for (Response response : responses)
|
|
|
|
for (Response response : responses)
|
|
|
|
if (response.isBYE())
|
|
|
|
if (response.isBYE())
|
|
|
|
return new MessagingException("UID FETCH", new IOException(response.toString()));
|
|
|
|
return new MessagingException("UID FETCH", new IOException(response.toString()));
|
|
|
|
else if (response.isNO() || response.isBAD())
|
|
|
|
else if (response.isNO())
|
|
|
|
return new MessagingException(response.toString());
|
|
|
|
return new CommandFailedException(response);
|
|
|
|
|
|
|
|
else if (response.isBAD())
|
|
|
|
|
|
|
|
return new BadCommandException(response);
|
|
|
|
return new MessagingException("UID FETCH failed");
|
|
|
|
return new MessagingException("UID FETCH failed");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|