maven:
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-email</artifactId>
<version>23.2</version>
<classifier>jdk16</classifier>
</dependency>
code:
NotesStorageFacility nsf = new NotesStorageFacility("C:\\Users\\xujy1\\Desktop\\notes\\nuser01.nsf");
for (MailMessage eml : nsf.enumerateMessages()) {
String subject = eml.getSubject();
eml.save("1.eml");
}
subject encoding error:
Dingtalk_20230315201101.jpg (81.0 KB)
nsf:
nuser03.7z (3.0 MB)