james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincenzo Gianferrari Pini" <vincenzo.gianferrarip...@praxis.it>
Subject [no virus] RE: New Redirect & sons becoming available
Date Tue, 03 Jun 2003 23:52:03 GMT
Noel,

Three corrections to AbstractRedirect:
1) was (watch the "r\n\r\n" --> "\r\n\r\n")
                            new StringBuffer(1024)
                                .append(head)
                                .append("r\n\r\n")
                                .append(getMessageBody(message));
now becomes
                            new StringBuffer(1024)
                                .append(head)
                                .append("\r\n")
                                .append("Message:\r\n")
                                .append(getMessageBody(message));

2) was
            // check if is an allowed special
            boolean allowed = false;
            for (int i = 0; i <= allowedSpecials.length; i++) {
                String allowedSpecial = allowedSpecials[i];
now becomes
            // check if is an allowed special
            boolean allowed = false;
            for (int i = 0; i < allowedSpecials.length; i++) {
                String allowedSpecial = allowedSpecials[i];

3) was
    /**
     * Utility method for obtaining a string representation of an array of Objects.
     */
    private String arrayToString(Object[] array) {
        StringBuffer sb = new StringBuffer(1024);
        sb.append("[");
        for (int i = 0; i < array.length; i++) {
            sb.append(array[i]);
        }
        sb.append("]");
        return sb.toString();
    }
now becomes
    /**
     * Utility method for obtaining a string representation of an array of Objects.
     */
    private String arrayToString(Object[] array) {
        StringBuffer sb = new StringBuffer(1024);
        sb.append("[");
        for (int i = 0; i < array.length; i++) {
            if (i > 0) {
                sb.append(",");
            }
            sb.append(array[i]);
        }
        sb.append("]");
        return sb.toString();
    }

Vincenzo

Mime
View raw message