When i listMessages it cause Value does not fall within the expected range

When i listMessages it cause Value does not fall within the expected range.
I delete the email whic cause this exception.It working successfully.
Java - aspose-email-17.9 -jdk16.jar

@Goran_Zhou,

Please try it with the latest version of the API i.e. Aspose.Email for Java 17.10. If the issue still persists, please share your sample problematic message file with us for further investigation at our end.