james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Keyser (JIRA)" <server-...@james.apache.org>
Subject [jira] Commented: (JAMES-344) FetchMail cannot parse particular format of "Received" header
Date Wed, 05 Jan 2005 00:01:12 GMT
     [ http://issues.apache.org/jira/browse/JAMES-344?page=comments#action_57284 ]
     
Jeff Keyser commented on JAMES-344:
-----------------------------------

I'm looking more closely at my e-mail headers, and I remembered only half-correctly.  Both
servers forget the square brackets when inserting the IP address, but only one Uses "unknown"
instead of the actual host name it looked up.

The header inserted by Verizon's mail server mentions "MailPass SMTP server v1.1.1 - 121803235448JY".
 Global Name Registry, which uses the host name "unknown" doesn't provide any clues about
its software.

As far as supporting non-compliant headers, I would suggest that it's easier to adapt to those
that are non-compliant than to expect those that aren't to change.  If you're concerned about
going down a slipery slope, one option could be to allow the user to supply a regular expression
that parses the particular header he/she is seeing.

Since you mentioned it here, please take a closer look at the issue I actually reported in
JAMES-345.  That issue does not pertain to looking up a host name, but the fact that FetchMail
doesn't work correctly when it can't, regardless of the reason.  It just so happens that this
issue brought that one to light.


> FetchMail cannot parse particular format of "Received" header
> -------------------------------------------------------------
>
>          Key: JAMES-344
>          URL: http://issues.apache.org/jira/browse/JAMES-344
>      Project: James
>         Type: Bug
>   Components: FetchMail
>     Versions: 2.2.1
>     Reporter: Jeff Keyser
>     Priority: Minor

>
> The mail server I am pulling e-mail from inserts a "Received" header that looks like
the following:
> Received: from unknown (HELO host.domain.tld) (192.168.255.254) by ...
> BTW - The name "unknown" is always used.  I assume they are purposely saving processing
power by not reverse-looking up the host name.
> I have debugged this problem in the code, and it appears that because the IP address
is not surrounded by square brackets, computeRemoteAddress is unable to find the IP address.
 So the name "unknown" is always used to determine the address instead, which fails.
> FYI - The e-mail I am pulling actually passes through two e-mail servers by different
organizations, and they both use this format.  So I assume this format is common.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


Mime
View raw message