This is an automated email from the ASF dual-hosted git repository.

nick pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/master by this push:
     new 1e02f01  TIKA-3106 Magic header detection for emails starting with an 
ARC- signature header, and for the 2+ header cases also allow Received as a 
matching header
1e02f01 is described below

commit 1e02f01819ef44bc99a5fe81e271e67be79b98ad
Author: Nick Burch <[email protected]>
AuthorDate: Thu Jun 4 06:01:29 2020 +0100

    TIKA-3106 Magic header detection for emails starting with an ARC- signature 
header, and for the 2+ header cases also allow Received as a matching header
---
 .../src/main/resources/org/apache/tika/mime/tika-mimetypes.xml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git 
a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml 
b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
index bdf1452..4caf1ab 100644
--- a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
+++ b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
@@ -6102,6 +6102,7 @@
         <match value="\nFrom:" type="stringignorecase" offset="0:8192"/>
         <match value="\nTo:" type="stringignorecase" offset="0:8192"/>
         <match value="\nSubject:" type="string" offset="0:8192"/>
+        <match value="\nReceived:" type="string" offset="0:8192"/>
         <match value="\nMIME-Version:" type="stringignorecase" 
offset="0:8192"/>
       </match>
       <match value="DKIM-" type="string" offset="0">
@@ -6109,6 +6110,15 @@
         <match value="\nFrom:" type="stringignorecase" offset="0:8192"/>
         <match value="\nTo:" type="stringignorecase" offset="0:8192"/>
         <match value="\nSubject:" type="string" offset="0:8192"/>
+        <match value="\nReceived:" type="string" offset="0:8192"/>
+        <match value="\nMIME-Version:" type="stringignorecase" 
offset="0:8192"/>
+      </match>
+      <match value="ARC-" type="string" offset="0">
+        <match value="\nMessage-ID:" type="string" offset="0:8192"/>
+        <match value="\nFrom:" type="stringignorecase" offset="0:8192"/>
+        <match value="\nTo:" type="stringignorecase" offset="0:8192"/>
+        <match value="\nSubject:" type="string" offset="0:8192"/>
+        <match value="\nReceived:" type="string" offset="0:8192"/>
         <match value="\nMIME-Version:" type="stringignorecase" 
offset="0:8192"/>
       </match>
     </magic>

Reply via email to