org.silverpeas.mail
Class MsgMailExtractorTest

java.lang.Object
  extended by org.silverpeas.mail.MsgMailExtractorTest

@ContextConfiguration(locations="/spring-mail-extractor.xml")
public class MsgMailExtractorTest
extends Object

User: Yohann Chastagnier Date: 21/01/13


Constructor Summary
MsgMailExtractorTest()
           
 
Method Summary
protected static Date extractDateOfReception(org.apache.poi.hsmf.MAPIMessage msg)
          Extracts the reception date from an email.
protected  String getMessageBody(org.apache.poi.hsmf.MAPIMessage msg)
          Gets the message from email.
protected static Date getMessageDate(org.apache.poi.hsmf.MAPIMessage msg)
          Gets the reception date of email.
protected  String getRtfText(String rtfText)
          Gets readable string from RTF text.
 void readMailWithAttachmentsMSG()
          This unit test is support for MSG exploration solution testing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MsgMailExtractorTest

public MsgMailExtractorTest()
Method Detail

readMailWithAttachmentsMSG

public void readMailWithAttachmentsMSG()
                                throws Exception
This unit test is support for MSG exploration solution testing.

Throws:
Exception

getMessageBody

protected String getMessageBody(org.apache.poi.hsmf.MAPIMessage msg)
                         throws Exception
Gets the message from email.

Parameters:
msg -
Returns:
Throws:
Exception

getRtfText

protected String getRtfText(String rtfText)
                     throws Exception
Gets readable string from RTF text.

Parameters:
rtfText -
Returns:
Throws:
Exception

getMessageDate

protected static Date getMessageDate(org.apache.poi.hsmf.MAPIMessage msg)
                              throws Exception
Gets the reception date of email.

Parameters:
msg -
Returns:
Throws:
Exception

extractDateOfReception

protected static Date extractDateOfReception(org.apache.poi.hsmf.MAPIMessage msg)
                                      throws Exception
Extracts the reception date from an email.

Parameters:
msg -
Returns:
Throws:
Exception


Copyright © 2016 Silverpeas. All Rights Reserved.