Using the following code and Aspose.Email 19.11 (it did it in 19.10 too) I get an exception. All the NSF files I have tried it on are quite old (circa 2008) so that might be a factor.
Code
private static void IterateUsingAspose(string diskPath)
{
using (var nsf = new NotesStorageFacility(diskPath))
{
foreach (var eml in nsf.EnumerateMessages())
{
Console.WriteLine(eml.Subject);
total++;
}
}
}
Exception
System.OverflowException
HResult=0x80131516
Message=Arithmetic operation resulted in an overflow.
Source=Aspose.Email
StackTrace:
at #=zlx_EBwCRJiaHW5IP8l1gMA8pnm5d.#=zeCTK8RYsdw17(Byte[] #=zddsGMuY=, Int32 #=zXhVXMy4=, #=zXuiFCJB8w0WtrZZeT_L9WKmjE8I$qk9utA== #=z9BBNnFM=)
at #=zlx_EBwCRJiaHW5IP8l1gMA8pnm5d.#=zs47TjwA=(Byte[] #=zN5VrMRI=, BinaryReader #=zsRtwXmY=, List`1 #=zF0UOxE2eRktt)
at #=zUbeY_exUIAbCvg6c7OwuIX7IVDRf.#=z8yl7gC8=(Int32 #=zIXhlN$WTiXxM, #=zTsQ3$szrdb9574aisJQjhzdNUnX4ORcjDA== #=zzjQm5xbBOHFB, BinaryReader #=zsRtwXmY=)
at #=zd5i4noQFy3unpAu23o$Orj6lA9BWx2xl1A==.#=z8yl7gC8=(Int32 #=zt8cGoNs=)
at #=zd5i4noQFy3unpAu23o$Orj6lA9BWx2xl1A==.#=zrN9tpOKenxzv.MoveNext()
at LotusNotesExtractor.Program.IterateUsingAspose(String diskPath) in C:\dev\edt\edt\Source\Utilities\LotusNotesExtractor\Program.cs:line 44
at LotusNotesExtractor.Program.Main(String[] args) in C:\dev\edt\edt\Source\Utilities\LotusNotesExtractor\Program.cs:line 25