com.funambol.mail
Class MIMEProcessor

java.lang.Object
  extended by com.funambol.mail.MIMEProcessor

public class MIMEProcessor
extends java.lang.Object

An object of this class is a parser that reads a string representing an email message formatted as per RFC 2822 and MIME (RFC 2045, 2046 etc.) and returns a Message object ready to be stored in the device store (the latter represented by implementations of the Store interface)


Constructor Summary
MIMEProcessor()
           
 
Method Summary
 Message parseMailMessage(java.lang.String rfc2822)
          This method parses a text email message formatted as per RFC 2822 and MIME specifications in order to build a Message object ready to be processed by the mail library.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MIMEProcessor

public MIMEProcessor()
Method Detail

parseMailMessage

public Message parseMailMessage(java.lang.String rfc2822)
                         throws MailException
This method parses a text email message formatted as per RFC 2822 and MIME specifications in order to build a Message object ready to be processed by the mail library.

Parameters:
rfc2822 - A String containing the entire email message coming from a server and formatted as per RFC 2822 and MIME specifications
Returns:
A Message object build with the information retrieved from the original text representation of the email message
Throws:
MailException


Copyright © 2001-2009 Funambol.