mirror of https://github.com/apache/lucene.git
Setting processAttachement as false has no affect
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@818419 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8b97c37e6b
commit
6a87a6cc4e
|
@ -158,9 +158,7 @@ public class MailEntityProcessor extends EntityProcessorBase {
|
|||
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());
|
||||
|
|
Loading…
Reference in New Issue