lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject svn commit: r818419 - /lucene/solr/trunk/contrib/dataimporthandler/src/extras/main/java/org/apache/solr/handler/dataimport/MailEntityProcessor.java
Date Thu, 24 Sep 2009 09:58:10 GMT
Author: shalin
Date: Thu Sep 24 09:58:10 2009
New Revision: 818419

URL: http://svn.apache.org/viewvc?rev=818419&view=rev
Log:
Setting processAttachement as false has no affect

Modified:
    lucene/solr/trunk/contrib/dataimporthandler/src/extras/main/java/org/apache/solr/handler/dataimport/MailEntityProcessor.java

Modified: lucene/solr/trunk/contrib/dataimporthandler/src/extras/main/java/org/apache/solr/handler/dataimport/MailEntityProcessor.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/contrib/dataimporthandler/src/extras/main/java/org/apache/solr/handler/dataimport/MailEntityProcessor.java?rev=818419&r1=818418&r2=818419&view=diff
==============================================================================
--- lucene/solr/trunk/contrib/dataimporthandler/src/extras/main/java/org/apache/solr/handler/dataimport/MailEntityProcessor.java
(original)
+++ lucene/solr/trunk/contrib/dataimporthandler/src/extras/main/java/org/apache/solr/handler/dataimport/MailEntityProcessor.java
Thu Sep 24 09:58:10 2009
@@ -158,9 +158,7 @@
       addPartToDocument((Part) part.getContent(), row, false);
     } else {
       String disp = part.getDisposition();
-      if (disp != null && disp.equalsIgnoreCase(Part.ATTACHMENT)
-              && !processAttachment)
-        return;
+      if (!processAttachment || (disp != null && disp.equalsIgnoreCase(Part.ATTACHMENT)))
       return;
       InputStream is = part.getInputStream();
       String fileName = part.getFileName();
       String content = ParseUtils.getStringContent(is, TikaConfig.getDefaultConfig(), ctype.getBaseType().toLowerCase());



Mime
View raw message