Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-344

FetchMail cannot parse particular format of "Received" header

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 3.0-M2
    • Component/s: FetchMail
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              norman Norman Maurer
              Reporter:
              jkeyser Jeff Keyser
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: