Class ExtractMessageInformationAction

  • All Implemented Interfaces:
    MessageAction

    public class ExtractMessageInformationAction
    extends AbstractMailAction
    Puts on the pipe execution context the values retrieved from the new messages found in the INBOX. These values are used later when new MailMessage documents are created based on them.
    Author:
    Catalin Baican
    • Constructor Detail

      • ExtractMessageInformationAction

        public ExtractMessageInformationAction()
    • Method Detail

      • getFilename

        protected static String getFilename​(javax.mail.Part p,
                                            String defaultFileName)
                                     throws javax.mail.MessagingException
        Throws:
        javax.mail.MessagingException
      • decodeMailBody

        protected static String decodeMailBody​(javax.mail.Part part)
                                        throws javax.mail.MessagingException,
                                               IOException
        Interprets the body accordingly to the charset used. It relies on the content type being ****;charset={charset};******
        Returns:
        the decoded String
        Throws:
        javax.mail.MessagingException
        IOException
      • getHeaderValues

        public Collection<String> getHeaderValues​(javax.mail.Message message,
                                                  String headerName)
                                           throws javax.mail.MessagingException
        Throws:
        javax.mail.MessagingException