Mbox

From Mstor Wiki
Jump to: navigation, search

Mstor uses the mbox file format to store email messages. Whilst there is no offical specification for mbox, it may be described as simply a concatenation of email messages, separated by a message separator (i.e. the From_ line).

Connect to an mbox store

The easiest way to connect to an mbox store is to use a URLName:

Properties properties = new Properties();
// add optional configuration properties..

Session session = Session.getDefaultInstance(properties);

Store store = session.getStore(new URLName("mstor:/some/path/to/store"));
store.connect();

// further store operations..
Personal tools