I could solve some of my problems :
I am now able to retrieve mails from a JAMES mail server installed on my laptop 
with POP3 protocol. I had to comment code in method checkMail() of class 
MailCoreHelper :
...
                // Is IMAP connection
                if (IMAP.equals(protocolType)) {
                    properties.put("mail.imap.host", host);
                    properties.put("mail.imap.port", port);
                    properties.put("mail.imap.socketFactory.class",
                            "javax.net.ssl.SSLSocketFactory");
                    properties.put("mail.imap.socketFactory.fallback",
                            socketFactoryFallback.toString());
                    properties.put("mail.imap.socketFactory.port",
                            socketFactoryPort);
                    properties.put("mail.imap.starttls.enable",
                            starttlsEnable.toString());
                    properties.put("mail.imap.ssl.protocols", sslProtocols);
                } else {
                    // Is POP3 connection
                    properties.put("mail.pop3.host", host);
                    properties.put("mail.pop3.port", port);
                    /*
                    properties.put("mail.pop3.socketFactory.class",
                            "javax.net.ssl.SSLSocketFactory");
                    properties.put("mail.pop3.socketFactory.fallback",
                            socketFactoryFallback.toString());
                    properties.put("mail.pop3.socketFactory.port",
                            socketFactoryPort);
                            */
                }
...
in the case of a MS Exchange server and a web mail, I am getting an error in 
server.log during extraction of info from mail messages. Here are some errors I 
encountered :
2009-08-05 16:09:12,226 DEBUG 
[org.nuxeo.ecm.platfrom.mail.listener.action.ExtractMessageInformationAction] 
Transforming messageUndeliverable: [Nuxeo]Review started for Manning - Struts 
in Action

2009-08-05 16:09:12,257 DEBUG 
[org.nuxeo.ecm.platfrom.mail.listener.action.ExtractMessageInformationAction] 
Content type: text/plain;

        charset="utf-8"; charset: "utf-8"

2009-08-05 16:09:12,257 ERROR 
[org.nuxeo.ecm.platfrom.mail.listener.action.ExtractMessageInformationAction] 
java.io.UnsupportedEncodingException: "utf-8"



2009-08-05 16:10:48,199 DEBUG 
[org.nuxeo.ecm.platfrom.mail.listener.action.ExtractMessageInformationAction] 
Transforming message

2009-08-05 16:10:48,277 DEBUG 
[org.nuxeo.ecm.platfrom.mail.listener.action.ExtractMessageInformationAction] 
Content type: text/plain;

        charset="us-ascii"; charset: "us-ascii"

2009-08-05 16:10:48,293 ERROR 
[org.nuxeo.ecm.platfrom.mail.listener.action.ExtractMessageInformationAction] 
java.io.UnsupportedEncodingException: "us-ascii"




2009-08-05 16:13:38,283 DEBUG 
[org.nuxeo.ecm.platfrom.mail.listener.action.ExtractMessageInformationAction] 
Transforming messageMore New movies - Coming soon

2009-08-05 16:13:38,298 DEBUG 
[org.nuxeo.ecm.platfrom.mail.listener.action.ExtractMessageInformationAction] 
Content type: text/plain;

        charset="iso-8859-1"; charset: "iso-8859-1"

2009-08-05 16:13:38,298 ERROR 
[org.nuxeo.ecm.platfrom.mail.listener.action.ExtractMessageInformationAction] 
java.io.UnsupportedEncodingException: "iso-8859-1"





So, i'll continue my tests, then I will try with IMAP protocol.

Stay tuned.
--
Posted by "vdu" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: 
<http://www.nuxeo.org/discussions/thread.jspa?threadID=2709#7871>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to