Skip to content
Ben Fortuna edited this page Mar 6, 2017 · 1 revision

Q. What character encoding does mstor use?

A. Mstor will default to explicitly using ISO-8859-1. This is because all data written to an mbox file is essentially a concatenation of RFC822 messages, which should always be encoded in US-ASCII (JavaMail seems to prefer ISO-8859-1). Note that there is a System Property setting to allow the overriding of this default.

Q. I cannot find the answer to my question. What should I do now?

A. If you cannot find what you need on this Wiki, the next best thing is to post a question in the forums.

Q. I have not been able to fetch mails using mstor. I have already put mstor, jdom, common-logging and xstream jar file in my classpath. still i am not able to get mbox provider of Javamail. Do i need to do something else also for this??

Code that i checked with is:

Session session = Session.getDefaultInstance(new Properties());
Provider[] providers = session.getProviders();
Provider provider = null;
System.out.println(providers.length);
for (int i = 0; i <providers.length; i++){
        Provider p = providers[i];
        System.out.println(p.getProtocol());
        if(p.getProtocol().equals("mbox"))
        	System.out.println("Mbox provider is available");
}

A. The mstor provider name is "mstor", not "mbox".

Clone this wiki locally