geronimo-mail_2.1/geronimo-mail_2.1_provider/src/main/java/org/apache/geronimo/mail/store/imap/connection/IMAPCommand.java [1128:1173]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    protected void appendSize(SizeTerm term, String charset) throws MessagingException {

        // these comparisons can be a real pain.  IMAP only supports LARGER and SMALLER.  So comparisons
        // other than GT and LT have to be composed of complex sequences of these.  For example, an EQ
        // comparison becomes NOT LARGER size NOT SMALLER size

        if (term.getComparison() == ComparisonTerm.GT) {
            appendAtom("LARGER");
            appendInteger(term.getNumber());
        }
        else if (term.getComparison() == ComparisonTerm.LT) {
            appendAtom("SMALLER");
            appendInteger(term.getNumber());
        }
        else if (term.getComparison() == ComparisonTerm.EQ) {
            appendAtom("NOT");
            appendAtom("LARGER");
            appendInteger(term.getNumber());

            appendAtom("NOT");
            appendAtom("SMALLER");
            // it's just right <g>
            appendInteger(term.getNumber());
        }
        else if (term.getComparison() == ComparisonTerm.NE) {
            // this needs to be an OR comparison
            appendAtom("OR");
            appendAtom("LARGER");
            appendInteger(term.getNumber());

            appendAtom("SMALLER");
            appendInteger(term.getNumber());
        }
        else if (term.getComparison() == ComparisonTerm.LE) {
            // just the inverse of LARGER
            appendAtom("NOT");
            appendAtom("LARGER");
            appendInteger(term.getNumber());
        }
        else if (term.getComparison() == ComparisonTerm.GE) {
            // and the reverse.
            appendAtom("NOT");
            appendAtom("SMALLER");
            appendInteger(term.getNumber());
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



geronimo-javamail_1.4/geronimo-javamail_1.4_provider/src/main/java/org/apache/geronimo/javamail/store/imap/connection/IMAPCommand.java [1131:1176]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    protected void appendSize(SizeTerm term, String charset) throws MessagingException {

        // these comparisons can be a real pain.  IMAP only supports LARGER and SMALLER.  So comparisons
        // other than GT and LT have to be composed of complex sequences of these.  For example, an EQ
        // comparison becomes NOT LARGER size NOT SMALLER size

        if (term.getComparison() == ComparisonTerm.GT) {
            appendAtom("LARGER");
            appendInteger(term.getNumber());
        }
        else if (term.getComparison() == ComparisonTerm.LT) {
            appendAtom("SMALLER");
            appendInteger(term.getNumber());
        }
        else if (term.getComparison() == ComparisonTerm.EQ) {
            appendAtom("NOT");
            appendAtom("LARGER");
            appendInteger(term.getNumber());

            appendAtom("NOT");
            appendAtom("SMALLER");
            // it's just right <g>
            appendInteger(term.getNumber());
        }
        else if (term.getComparison() == ComparisonTerm.NE) {
            // this needs to be an OR comparison
            appendAtom("OR");
            appendAtom("LARGER");
            appendInteger(term.getNumber());

            appendAtom("SMALLER");
            appendInteger(term.getNumber());
        }
        else if (term.getComparison() == ComparisonTerm.LE) {
            // just the inverse of LARGER
            appendAtom("NOT");
            appendAtom("LARGER");
            appendInteger(term.getNumber());
        }
        else if (term.getComparison() == ComparisonTerm.GE) {
            // and the reverse.
            appendAtom("NOT");
            appendAtom("SMALLER");
            appendInteger(term.getNumber());
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



geronimo-javamail_1.5/geronimo-javamail_1.5_provider/src/main/java/org/apache/geronimo/javamail/store/imap/connection/IMAPCommand.java [1131:1176]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    protected void appendSize(SizeTerm term, String charset) throws MessagingException {

        // these comparisons can be a real pain.  IMAP only supports LARGER and SMALLER.  So comparisons
        // other than GT and LT have to be composed of complex sequences of these.  For example, an EQ
        // comparison becomes NOT LARGER size NOT SMALLER size

        if (term.getComparison() == ComparisonTerm.GT) {
            appendAtom("LARGER");
            appendInteger(term.getNumber());
        }
        else if (term.getComparison() == ComparisonTerm.LT) {
            appendAtom("SMALLER");
            appendInteger(term.getNumber());
        }
        else if (term.getComparison() == ComparisonTerm.EQ) {
            appendAtom("NOT");
            appendAtom("LARGER");
            appendInteger(term.getNumber());

            appendAtom("NOT");
            appendAtom("SMALLER");
            // it's just right <g>
            appendInteger(term.getNumber());
        }
        else if (term.getComparison() == ComparisonTerm.NE) {
            // this needs to be an OR comparison
            appendAtom("OR");
            appendAtom("LARGER");
            appendInteger(term.getNumber());

            appendAtom("SMALLER");
            appendInteger(term.getNumber());
        }
        else if (term.getComparison() == ComparisonTerm.LE) {
            // just the inverse of LARGER
            appendAtom("NOT");
            appendAtom("LARGER");
            appendInteger(term.getNumber());
        }
        else if (term.getComparison() == ComparisonTerm.GE) {
            // and the reverse.
            appendAtom("NOT");
            appendAtom("SMALLER");
            appendInteger(term.getNumber());
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



geronimo-javamail_1.6/geronimo-javamail_1.6_provider/src/main/java/org/apache/geronimo/javamail/store/imap/connection/IMAPCommand.java [1131:1176]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    protected void appendSize(SizeTerm term, String charset) throws MessagingException {

        // these comparisons can be a real pain.  IMAP only supports LARGER and SMALLER.  So comparisons
        // other than GT and LT have to be composed of complex sequences of these.  For example, an EQ
        // comparison becomes NOT LARGER size NOT SMALLER size

        if (term.getComparison() == ComparisonTerm.GT) {
            appendAtom("LARGER");
            appendInteger(term.getNumber());
        }
        else if (term.getComparison() == ComparisonTerm.LT) {
            appendAtom("SMALLER");
            appendInteger(term.getNumber());
        }
        else if (term.getComparison() == ComparisonTerm.EQ) {
            appendAtom("NOT");
            appendAtom("LARGER");
            appendInteger(term.getNumber());

            appendAtom("NOT");
            appendAtom("SMALLER");
            // it's just right <g>
            appendInteger(term.getNumber());
        }
        else if (term.getComparison() == ComparisonTerm.NE) {
            // this needs to be an OR comparison
            appendAtom("OR");
            appendAtom("LARGER");
            appendInteger(term.getNumber());

            appendAtom("SMALLER");
            appendInteger(term.getNumber());
        }
        else if (term.getComparison() == ComparisonTerm.LE) {
            // just the inverse of LARGER
            appendAtom("NOT");
            appendAtom("LARGER");
            appendInteger(term.getNumber());
        }
        else if (term.getComparison() == ComparisonTerm.GE) {
            // and the reverse.
            appendAtom("NOT");
            appendAtom("SMALLER");
            appendInteger(term.getNumber());
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



