[Qualipso-a4] Probando un provider de mbox en Java Mail
Jose Gato Luis
jgato en gsyc.es
Vie Feb 1 11:17:09 CET 2008
genial!! Más claro no puede estar ;)
Voy a "jugar" un poco con mstor, me parece treméndamente sencillo y ya
tengo alguna prueba hecha con GNU JavaMail (aunque de momento no nos
sirve para mucho).
Alvaro del Castillo escribió:
> Hola!
>
> Tras leer un poco más sobre Java Mail,
> http://java.sun.com/products/javamail/FAQ.html, tiene un API para envío
> y recepción de mensajes y, tiene un API a implementar por "proveedores"
> de envío y recepción de correo (providers). El provider puede ser POP,
> SMTP, IMAP, NNTP ...
>
> En el caso de extracción de la información de los archivos de correos de
> una lista de correo, como mailman, nos interesa poder recibir los
> mensajes de un provider que trabaje contra un mbox. Por defecto SUN no
> proporciona este "provider" por lo que tenemos que utilizar algún otro
> producto. Es aquí donde hay que probar como "provider" alguno de los que
> se describen en: http://java.sun.com/products/javamail/Third_Party.html
>
> * mstor is a local store provider for JavaMail. Based on the mbox
> format, mstor facilitates the storage and retrieval of email messages in
> the local filesystem. In addition, mstor supports additional metadata
> not inherently supported by the mbox format, and is designed to handle
> large mailboxes without a significant degradation in performance.
> Available at: http://mstor.sourceforge.net/
>
> * The jmbox project (read jambox) enables developers to use the JavaMail
> API to manage mail stored in local repositories like Outlook Express,
> Mozilla, Netscape, etc. A JavaMail enabled application needs only to
> include the jmbox distribution jar in its classpath to automatically
> benefit from local mail management, the same way it would do with POP3
> or IMAP remote mail. At the moment jmbox supports navigation and reading
> from Outlook Express 5/6 mail (dbx format). Writing into folders and
> support for other repositories (mbox) will be added. Available at:
> https://jmbox.dev.java.net/.
>
> * PlexMailer offers a set of powerful tools to prevent against
> unsolicted emails (SPAM). It supports POP3, IMAP, and MBOX protocols and
> can be run as an email client or as a proxy server between a mail server
> and another email client. PlexMailer comes with dozens of filters and
> hooks to other online resources such as ORBS, MAPS, and DUL to protect
> against unsolicited emails and report senders of those emails to
> appropriate authorities. It supports Java Web Start for seamless
> installation and automatic upgrades for future enhancements and bug
> fixes. Available at: http://www.plexobject.com/software/plexmailer/.
>
> * Pooka: An email client using JavaMail and Swing. Supports IMAP
> (including disconnected IMAP and IMAP over SSL), POP3, and local mbox
> stores. Source is available under the GNU GPL. Available at:
> http://www.suberic.net/pooka/.
>
> * POP3, NNTP and Mbox Providers and JavaMail based EMail client:
> http://www.dog.net.uk/knife/
>
> Además tenemos:
>
> http://www.gnu.org/software/classpathx/javamail/javamail.html
> Several providers ... The UNIX mbox format
>
>
> Sería interesante probar la implementación de GNU Javamail, con el
> problema para Aperture de ser GPL, y mstor, que tiene una licencia
> similar a la BSD.
>
> El uso de estos proveedores es muy sencillo:
>
> ------------------------------
> Session session = Session.getDefaultInstance(new Properties());
> Store store = session.getStore(new URLName("mstor:c:/mailbox/MyStore"));
> store.connect();
> // read messages from Inbox..
> Folder inbox = store.getDefaultFolder().getFolder("Inbox");
> inbox.open(Folder.READ_ONLY);
> Message[] messages = inbox.getMessages();
> -------------------------------
>
> pero habrá que probar como manejan adjuntos, codificaciones ...
>
>
> Hasta luego
>
--
José Gato Luis | Libre Software Engineering Lab (GSyC)
Tel: (+34)-914 888 105 | Universidad Rey Juan Carlos
jgato en gsyc.escet.urjc.es | Edif. Departamental II - Despacho 116
http://libresoft.urjc.es/ | c/Tulipán s/n 28933 Móstoles (Madrid)
Más información sobre la lista de distribución Qualipso-a4