james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefano Bagnara (JIRA)" <server-...@james.apache.org>
Subject [jira] Created: (JAMES-359) remote address from Received header is not handled
Date Fri, 18 Mar 2005 10:00:20 GMT
remote address from Received header is not handled

         Key: JAMES-359
         URL: http://issues.apache.org/jira/browse/JAMES-359
     Project: James
        Type: Bug
  Components: FetchMail  
    Versions: 2.2.0    
    Reporter: Stefano Bagnara

Look at this method code:

    protected String computeRemoteDomain() throws MessagingException
        StringBuffer domainBuffer = new StringBuffer();
        String[] headers = null;
        if (getRemoteReceivedHeaderIndex() > -1)

        if (null != headers)
            # DO SOMETHING....

        // Default is "localhost"
        if (domainBuffer.length() == 0)

        return domainBuffer.toString().trim();
You can see that there is a missing assignment to "headers = " before the "getMessageIn().getHeader()"

Without the assignment this code will never work and the remote address recognition feature
is not working ad all. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message