Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2587

DKIM signed mails recognized as text/plain

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0, 1.17
    • Fix Version/s: 1.18, 2.0.0
    • Component/s: mime
    • Labels:
      None

      Description

      DKIM signed mails are not recognized when the mails got no fileextension:

      DKIM-Signature: v=1; a=rsa-sha256; s=brisbane; d=example.com;
            c=simple/simple; q=dns/txt; i=joe@football.example.com;
            h=Received : From : To : Subject : Date : Message-ID;
            bh=2jUSOH9NhtVGCQWNr9BrIAPreKQjO6Sn7XIkfJVOzv8=;
            b=AuUoFEfDxTDkHlLXSZEpZj79LICEps6eda7W3deTVFOk4yAUoqOB
              4nujc7YopdG5dWLSdNg6xNAZpOPr+kHxt1IrE+NahM6L/LbvaHut
              KVdkLLkpVaVVQPzeRDI009SO2Il5Lu7rDNH6mZckBdrIx0orEtZV
              4bmp/YzhwvcubU4=;
      Received: from client1.football.example.com  [192.0.2.1]
            by submitserver.example.com with SUBMISSION;
            Fri, 11 Jul 2003 21:01:54 -0700 (PDT)
      From: Joe SixPack <joe@football.example.com>
      To: Suzie Q <suzie@shopping.example.net>
      Subject: Is dinner ready?
      Date: Fri, 11 Jul 2003 21:00:37 -0700 (PDT)
      Message-ID: <20030712040037.46341.5F8J@football.example.com>
      
      Hi.
      
      We lost the game. Are you hungry yet?
      
      Joe.
      

      DKIM Spec rfc4871

      message/rfc822 is only set when the file ends with .eml

      The finally verified mail starts with

      X-Authentication-Results: shopping.example.net
            header.from=joe@football.example.com; dkim=pass
      

      which might also be recognized as text/plain.

      Check the related Ticket TIKA-2578

      Regards

      Andreas Meier

      (Could not attach the example mails, got the following error: JIRA could not attach the file as there was a missing token. Please try attaching the file again.)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                AndreasMeier Andreas Meier
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: