geronimo-mail_2.1/geronimo-mail_2.1_provider/src/main/java/org/apache/geronimo/mail/store/imap/connection/IMAPCommand.java [1373:1416]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void appendFetchProfile(FetchProfile profile) throws MessagingException {
        // the fetch profile items are a parenthtical list passed on a
        // FETCH command.
        startList();
        if (profile.contains(UIDFolder.FetchProfileItem.UID)) {
            appendAtom("UID");
        }
        if (profile.contains(FetchProfile.Item.ENVELOPE)) {
            // fetching the envelope involves several items
            appendAtom("ENVELOPE");
            appendAtom("INTERNALDATE");
            appendAtom("RFC822.SIZE");
        }
        if (profile.contains(FetchProfile.Item.FLAGS)) {
            appendAtom("FLAGS");
        }
        if (profile.contains(FetchProfile.Item.CONTENT_INFO)) {
            appendAtom("BODYSTRUCTURE");
        }
        if (profile.contains(IMAPFolder.FetchProfileItem.SIZE)) {
            appendAtom("RFC822.SIZE");
        }
        // There are two choices here, that are sort of redundant.
        // if all headers have been requested, there's no point in
        // adding any specifically requested one.
        if (profile.contains(IMAPFolder.FetchProfileItem.HEADERS)) {
            appendAtom("BODY.PEEK[HEADER]");
        }
        else {
            String[] headers = profile.getHeaderNames();
            // have an actual list to retrieve?  need to craft this as a sublist
            // of identified fields.
            if (headers.length > 0) {
                appendAtom("BODY.PEEK[HEADER.FIELDS]");
                startList();
                for (int i = 0; i < headers.length; i++) {
                    appendAtom(headers[i]);
                }
                endList();
            }
        }
        // end the list.
        endList();
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



geronimo-javamail_1.4/geronimo-javamail_1.4_provider/src/main/java/org/apache/geronimo/javamail/store/imap/connection/IMAPCommand.java [1376:1419]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void appendFetchProfile(FetchProfile profile) throws MessagingException {
        // the fetch profile items are a parenthtical list passed on a
        // FETCH command.
        startList();
        if (profile.contains(UIDFolder.FetchProfileItem.UID)) {
            appendAtom("UID");
        }
        if (profile.contains(FetchProfile.Item.ENVELOPE)) {
            // fetching the envelope involves several items
            appendAtom("ENVELOPE");
            appendAtom("INTERNALDATE");
            appendAtom("RFC822.SIZE");
        }
        if (profile.contains(FetchProfile.Item.FLAGS)) {
            appendAtom("FLAGS");
        }
        if (profile.contains(FetchProfile.Item.CONTENT_INFO)) {
            appendAtom("BODYSTRUCTURE");
        }
        if (profile.contains(IMAPFolder.FetchProfileItem.SIZE)) {
            appendAtom("RFC822.SIZE");
        }
        // There are two choices here, that are sort of redundant.
        // if all headers have been requested, there's no point in
        // adding any specifically requested one.
        if (profile.contains(IMAPFolder.FetchProfileItem.HEADERS)) {
            appendAtom("BODY.PEEK[HEADER]");
        }
        else {
            String[] headers = profile.getHeaderNames();
            // have an actual list to retrieve?  need to craft this as a sublist
            // of identified fields.
            if (headers.length > 0) {
                appendAtom("BODY.PEEK[HEADER.FIELDS]");
                startList();
                for (int i = 0; i < headers.length; i++) {
                    appendAtom(headers[i]);
                }
                endList();
            }
        }
        // end the list.
        endList();
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



geronimo-javamail_1.5/geronimo-javamail_1.5_provider/src/main/java/org/apache/geronimo/javamail/store/imap/connection/IMAPCommand.java [1376:1419]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void appendFetchProfile(FetchProfile profile) throws MessagingException {
        // the fetch profile items are a parenthtical list passed on a
        // FETCH command.
        startList();
        if (profile.contains(UIDFolder.FetchProfileItem.UID)) {
            appendAtom("UID");
        }
        if (profile.contains(FetchProfile.Item.ENVELOPE)) {
            // fetching the envelope involves several items
            appendAtom("ENVELOPE");
            appendAtom("INTERNALDATE");
            appendAtom("RFC822.SIZE");
        }
        if (profile.contains(FetchProfile.Item.FLAGS)) {
            appendAtom("FLAGS");
        }
        if (profile.contains(FetchProfile.Item.CONTENT_INFO)) {
            appendAtom("BODYSTRUCTURE");
        }
        if (profile.contains(IMAPFolder.FetchProfileItem.SIZE)) {
            appendAtom("RFC822.SIZE");
        }
        // There are two choices here, that are sort of redundant.
        // if all headers have been requested, there's no point in
        // adding any specifically requested one.
        if (profile.contains(IMAPFolder.FetchProfileItem.HEADERS)) {
            appendAtom("BODY.PEEK[HEADER]");
        }
        else {
            String[] headers = profile.getHeaderNames();
            // have an actual list to retrieve?  need to craft this as a sublist
            // of identified fields.
            if (headers.length > 0) {
                appendAtom("BODY.PEEK[HEADER.FIELDS]");
                startList();
                for (int i = 0; i < headers.length; i++) {
                    appendAtom(headers[i]);
                }
                endList();
            }
        }
        // end the list.
        endList();
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



geronimo-javamail_1.6/geronimo-javamail_1.6_provider/src/main/java/org/apache/geronimo/javamail/store/imap/connection/IMAPCommand.java [1376:1419]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void appendFetchProfile(FetchProfile profile) throws MessagingException {
        // the fetch profile items are a parenthtical list passed on a
        // FETCH command.
        startList();
        if (profile.contains(UIDFolder.FetchProfileItem.UID)) {
            appendAtom("UID");
        }
        if (profile.contains(FetchProfile.Item.ENVELOPE)) {
            // fetching the envelope involves several items
            appendAtom("ENVELOPE");
            appendAtom("INTERNALDATE");
            appendAtom("RFC822.SIZE");
        }
        if (profile.contains(FetchProfile.Item.FLAGS)) {
            appendAtom("FLAGS");
        }
        if (profile.contains(FetchProfile.Item.CONTENT_INFO)) {
            appendAtom("BODYSTRUCTURE");
        }
        if (profile.contains(IMAPFolder.FetchProfileItem.SIZE)) {
            appendAtom("RFC822.SIZE");
        }
        // There are two choices here, that are sort of redundant.
        // if all headers have been requested, there's no point in
        // adding any specifically requested one.
        if (profile.contains(IMAPFolder.FetchProfileItem.HEADERS)) {
            appendAtom("BODY.PEEK[HEADER]");
        }
        else {
            String[] headers = profile.getHeaderNames();
            // have an actual list to retrieve?  need to craft this as a sublist
            // of identified fields.
            if (headers.length > 0) {
                appendAtom("BODY.PEEK[HEADER.FIELDS]");
                startList();
                for (int i = 0; i < headers.length; i++) {
                    appendAtom(headers[i]);
                }
                endList();
            }
        }
        // end the list.
        endList();
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



