Class ReceiveEmail

    • Field Detail

      • m_OnlyEnvelopes

        protected boolean m_OnlyEnvelopes
        whether to received only envelopes.
      • m_From

        protected String m_From
        the FROM filter.
      • m_To

        protected String m_To
        the TO filter.
      • m_Subject

        protected String m_Subject
        the SUBJECT filter.
      • m_Flags

        protected Flag[] m_Flags
        the flags to look for.
      • m_PostReceptionAction

        protected PostReceptionAction m_PostReceptionAction
        the action to perform after receiving.
    • Constructor Detail

      • ReceiveEmail

        public ReceiveEmail()
    • Method Detail

      • setOnlyEnvelopes

        public void setOnlyEnvelopes​(boolean value)
        Sets whether to only receive the envelopes or fully download them.
        Parameters:
        value - true if to receive only the envelopes
      • getOnlyEnvelopes

        public boolean getOnlyEnvelopes()
        Returns whether to only receive the envelopes or fully download them.
        Returns:
        true if to mark read
      • onlyEnvelopesTipText

        public String onlyEnvelopesTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setFrom

        public void setFrom​(String value)
        Sets the FROM filter, ignored if empty.
        Parameters:
        value - the filter value
      • getFrom

        public String getFrom()
        Returns the FROM filter, ignored if empty.
        Returns:
        the filter value
      • fromTipText

        public String fromTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setTo

        public void setTo​(String value)
        Sets the TO filter, ignored if empty.
        Parameters:
        value - the filter value
      • getTo

        public String getTo()
        Returns the TO filter, ignored if empty.
        Returns:
        the filter value
      • toTipText

        public String toTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setSubject

        public void setSubject​(String value)
        Sets the SUBJECT filter, ignored if empty.
        Parameters:
        value - the filter value
      • getSubject

        public String getSubject()
        Returns the SUBJECT filter, ignored if empty.
        Returns:
        the filter value
      • subjectTipText

        public String subjectTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setFlags

        public void setFlags​(Flag[] value)
        Sets the flags to look for.
        Parameters:
        value - the flags
      • getFlags

        public Flag[] getFlags()
        Returns the flags to look for.
        Returns:
        the flags
      • flagsTipText

        public String flagsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setPostReceptionAction

        public void setPostReceptionAction​(PostReceptionAction value)
        Sets the action to perform after receiving the full messages (does not apply to envelopes).
        Parameters:
        value - the action
      • getPostReceptionAction

        public PostReceptionAction getPostReceptionAction()
        Returns the action to perform after receiving the full messages (does not apply to envelopes).
        Returns:
        the action
      • postReceptionActionTipText

        public String postReceptionActionTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • generates

        public Class generates()
        Returns the type of output the operation generates.
        Specified by:
        generates in class AbstractIMAPOperation<jodd.mail.ReceivedEmail[]>
        Returns:
        the class
      • doExecute

        protected jodd.mail.ReceivedEmail[] doExecute​(IMAPConnection conn,
                                                      MessageCollection errors)
        Executes the operation and returns the generated output.
        Specified by:
        doExecute in class AbstractIMAPOperation<jodd.mail.ReceivedEmail[]>
        Parameters:
        conn - the connection to use
        errors - for collecting errors
        Returns:
        the generated output, null in case of error or failed check