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:
Shalin Shekhar Mangar 2009-09-24 09:58:10 +00:00
parent 8b97c37e6b
commit 6a87a6cc4e
1 changed files with 1 additions and 3 deletions

View File

@ -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());