-
-
Notifications
You must be signed in to change notification settings - Fork 2
Metadata
Ben Fortuna edited this page Mar 6, 2017
·
1 revision
The concept of metadata was introduced to support JavaMail features not available in the Mbox format. Metadata also serves as fast access message index .
Initially metadata in mstor was implemented via a simple custom XML binding framework. XML metadata can be enabled in three (3) ways:
- Session properties
Properties properties = new Properties(); properties.setProperty("mstor.mbox.metadataStrategy", "xml"); Session session = Session.getDefaultInstance(properties); Store store = session.getStore(new URLName("mstor:/some/path/to/store")); store.connect(); // further store operations..
- mstor.properties - add the following line to this file in your classpath:
mstor.mbox.metadataStrategy=xml
- System properties
java -Dmstor.mbox.metadataStrategy=xml <your_program>
Support for Yaml metadata