Arbeiten mit IBM Notes

Über IBM Notes

IBM Notes ist der Client und IBM Domino der Server einer kollaborativen Client‑Server‑Softwareplattform. IBM Notes bietet Kollaborationsfunktionen wie E‑Mail, Kalender, Aufgabenlisten, Kontaktverwaltung usw. Die von IBM Notes verwendete Datenbankdatei wird im Notes Storage Facility (NSF)‑Format gespeichert.

Erkennen, ob eine Datei im NSF‑Format vorliegt

Das nachstehende Code‑Beispiel zeigt, wie Sie das NSF‑Dateiformat erkennen:

// Returns FileFormatType.Nsf for an NSF storage file
int formatType = FileFormatUtil.detectFileFormat("storage.nsf").getFileFormatType();

if (formatType == FileFormatType.Nsf) {
    System.out.println("The file is in the NSF format.");
}

Nachrichten aus NSF‑Speicherdatei lesen

Aspose.Email provides the NotesStorageFacility class to read NSF storage files. The NotesStorageFacility class provides the EnumerateMessages Methode, die über die Nachrichten in der NSF‑Speicherdatei iteriert. Der folgende Beispielcode demonstriert die Verwendung von NotesStorageFacility class and the EnumerateMessages Methode zum Lesen von Nachrichten aus der NSF‑Speicherdatei.

// For complete examples and data files, please go to https://github.com/aspose-email/Aspose.Email-for-Java
// The path to the resource directory.
String dataDir = "data/";

NotesStorageFacility nsf = new NotesStorageFacility(dataDir + "SampleNSF.nsf");
try {
    for (MailMessage eml : nsf.enumerateMessages()) {
        System.out.println(eml.getSubject());
    }
} finally {
    nsf.dispose();
}