[ 
https://issues.apache.org/jira/browse/IMAP-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049708#comment-13049708
 ] 

Norman Maurer commented on IMAP-64:
-----------------------------------

Maybe something like this:

public enum FetchType {

    /**
     * Fetch only the meta data of the {@link Message} which includes:
     * <p>
     *  {@link Message#getUid()}
     *  {@link Message#getModSeq()}
     *  {@link Message#getBodyOctets()}
     *  {@link Message#getFullContentOctets()}
     *  {@link Message#getInternalDate()}
     *  {@link Message#getMailboxId()}
     *  {@link Message#getMediaType()}
     *  {@link Message#getModSeq()}
     *  {@link Message#getSubType()}
     *  {@link Message#getTextualLineCount()}
     * </p>
     */
    Metadata,
    /**
     * Fetch the {@link #Metadata} and the {@link Header}'s for the {@link 
Message}. This includes:
     * 
     * <p>
     * {@link Message#getHeaders()}
     * </p>
     */
    Headers,
    /**
     * Fetch the {@link #Metadata} and the Body for the {@link Message}. This 
includes:
     * 
     * <p>
     *  {@link Message#getBodyContent()}
     * </p>
     */
    Body,
    
    /**
     * Fetch the complete {@link Message}
     * 
     */
    Full
}

> OPTIMISE fetch command
> ----------------------
>
>                 Key: IMAP-64
>                 URL: https://issues.apache.org/jira/browse/IMAP-64
>             Project: JAMES Imap
>          Issue Type: Task
>            Reporter: Robert Burrell Donkin
>            Assignee: Robert Burrell Donkin
>
> ATM fetch retrieves and parses the full contents of every message whether 
> this data is needed or not. This is very slow.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to