Class MailMessage

java.lang.Object
com.netlang.mail.MailMessage

public class MailMessage extends Object
The MailMessage class
  • Method Details

    • delete

      public void delete() throws javax.mail.MessagingException
      Delete mail
      Throws:
      javax.mail.MessagingException
    • existAnyAttachment

      public boolean existAnyAttachment() throws com.net4z.APIException
      Check if any attachment exists
      Throws:
      com.net4z.APIException
    • existAttachment

      public boolean existAttachment(String name) throws com.net4z.APIException
      Check if attachment exists
      Parameters:
      name -
      Returns:
      Throws:
      com.net4z.APIException
    • getAttachmentNames

      public List<String> getAttachmentNames() throws com.net4z.APIException
      Get all attachments
      Returns:
      Throws:
      com.net4z.APIException
    • getTo

      public String getTo() throws com.net4z.APIException
      Get from
      Returns:
      Throws:
      com.net4z.APIException
    • getCC

      public String getCC() throws com.net4z.APIException
      Get from
      Returns:
      Throws:
      com.net4z.APIException
    • getBCC

      public String getBCC() throws com.net4z.APIException
      Get from
      Returns:
      Throws:
      com.net4z.APIException
    • getFrom

      public String getFrom() throws com.net4z.APIException
      Get from
      Returns:
      Throws:
      com.net4z.APIException
    • getInternalContent

      public Object getInternalContent() throws com.net4z.APIException
      Get internal content
      Returns:
      Throws:
      com.net4z.APIException
    • getInternalMessage

      public javax.mail.Message getInternalMessage()
      Return the internal message
      Returns:
    • getMessage

      public String getMessage() throws com.net4z.APIException
      Return the message
      Returns:
      Throws:
      com.net4z.APIException
    • getMessage

      public String getMessage(javax.mail.internet.MimeMultipart part) throws com.net4z.APIException
      Get the message
      Parameters:
      part -
      Returns:
      Throws:
      com.net4z.APIException
    • getReceivedDate

      public com.intellus.util.IDate getReceivedDate() throws com.net4z.APIException
      Return the received date
      Returns:
      Throws:
      com.net4z.APIException
    • getSentDate

      public com.intellus.util.IDate getSentDate() throws com.net4z.APIException
      Return the send date
      Returns:
      Throws:
      com.net4z.APIException
    • getSubject

      public String getSubject() throws com.net4z.APIException
      Return the subject
      Returns:
      Throws:
      com.net4z.APIException
    • isAnswered

      public boolean isAnswered() throws Exception
      Return true if the mail is answered
      Throws:
      Exception
    • isUnread

      public boolean isUnread() throws Exception
      Return true if the mail is unread
      Throws:
      Exception
    • markRead

      public void markRead() throws Exception
      Mark the mail as read
      Throws:
      Exception
    • markUnread

      public void markUnread() throws Exception
      Mark the mail as read
      Throws:
      Exception
    • isDeleted

      public boolean isDeleted() throws Exception
      Return true if the mail is deleted
      Throws:
      Exception
    • isRecent

      public boolean isRecent() throws Exception
      Return true if the mail is recent
      Throws:
      Exception
    • hasUserFlag

      public boolean hasUserFlag() throws Exception
      Return true if the mail has the user flag set
      Throws:
      Exception
    • setUserFlag

      public void setUserFlag(boolean value) throws Exception
      Set the user flag
      Throws:
      Exception
    • saveAttachment

      public void saveAttachment(File file, String name) throws com.net4z.APIException
      Throws:
      com.net4z.APIException
    • saveAttachment

      public void saveAttachment(NetlangFile file, String name) throws com.net4z.APIException
      Throws:
      com.net4z.APIException
    • saveAttachment

      public void saveAttachment(com.netlang.session.NetlangSession session, String resourceid, String filepath, String name) throws com.net4z.APIException
      Throws:
      com.net4z.APIException
    • saveAttachment

      public void saveAttachment(String path, String name, String saveToFilename) throws com.net4z.APIException
      Save attachment
      Parameters:
      path -
      name -
      Throws:
      com.net4z.APIException
    • saveAttachments

      public void saveAttachments(File file) throws com.net4z.APIException
      Throws:
      com.net4z.APIException
    • saveAttachments

      public void saveAttachments(NetlangFile file) throws com.net4z.APIException
      Throws:
      com.net4z.APIException
    • saveAttachments

      public void saveAttachments(String resourceid, String filepath) throws com.net4z.APIException
      Throws:
      com.net4z.APIException
    • saveAttachments

      public void saveAttachments(com.netlang.session.NetlangSession session, String resourceid, String filepath) throws com.net4z.APIException
      Throws:
      com.net4z.APIException
    • hasOctetStreams

      public boolean hasOctetStreams() throws com.intellus.base.BCCException
      Get all attachments
      Returns:
      Throws:
      com.intellus.base.BCCException
    • saveOctetAttachment

      public void saveOctetAttachment(String path, String prefix, String extension) throws com.intellus.base.BCCException
      Save attachment
      Parameters:
      path -
      name -
      Throws:
      com.intellus.base.BCCException
    • saveOctetAttachment

      public void saveOctetAttachment(String path, String prefix, String extension, javax.mail.BodyPart body) throws com.intellus.base.BCCException
      Save attachment
      Parameters:
      path -
      name -
      Throws:
      com.intellus.base.BCCException
    • saveAttachments

      public void saveAttachments(String path) throws com.net4z.APIException
      Save attachment
      Parameters:
      path -
      Throws:
      com.net4z.APIException
    • getFolder

      public MailFolder getFolder()
    • move

      public void move(MailFolder f) throws com.net4z.APIException
      Throws:
      com.net4z.APIException