We have a couple of TNEF formatted mails that raise an “Offset or count were out of bounds” exception. This is at the point of reading in the file
MailMessage msg = MailMessage.load(args[0]);
Using \aspose-email-22.5-jdk16.jar
OffsetException.zip (195.6 KB)
Caught: class com.aspose.email.system.exceptions.ArgumentException: Offset or count were out of bounds
com.aspose.email.internal.ak.zd.a(Unknown Source)
com.aspose.email.internal.b.zd.a(Unknown Source)
com.aspose.email.internal.b.zd.a(Unknown Source)
com.aspose.email.zbik.a(SourceFile:992)
com.aspose.email.zbik.a(SourceFile:1073)
com.aspose.email.zbik.d(SourceFile:794)
com.aspose.email.MailMessage.b(SourceFile:5127)
com.aspose.email.MailMessage.d(SourceFile:4431)
com.aspose.email.MailMessage.a(SourceFile:4245)
com.aspose.email.MailMessage.a(SourceFile:3808)
com.aspose.email.MailMessage.a(SourceFile:249)
com.aspose.email.MailMessage.(SourceFile:244)
com.aspose.email.MailMessage.a(SourceFile:1511)
com.aspose.email.MailMessage.c(SourceFile:1429)
com.aspose.email.MailMessage.a(SourceFile:1339)
com.aspose.email.MailMessage.load(SourceFile:1316)