manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1782327 - /manifoldcf/trunk/connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java
Date Thu, 09 Feb 2017 13:25:33 GMT
Author: kwright
Date: Thu Feb  9 13:25:33 2017
New Revision: 1782327

URL: http://svn.apache.org/viewvc?rev=1782327&view=rev
Log:
Fix the email connector; now verified to work for attachments.

Modified:
    manifoldcf/trunk/connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java

Modified: manifoldcf/trunk/connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java?rev=1782327&r1=1782326&r2=1782327&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java
(original)
+++ manifoldcf/trunk/connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java
Thu Feb  9 13:25:33 2017
@@ -675,7 +675,7 @@ public class EmailConnector extends org.
                 final Multipart mp = (Multipart) msg.getContent();
                 final int numAttachments = mp.getCount();
                 for (int i = 0; i < numAttachments; i++) {
-                  activities.addDocumentReference(documentIdentifier + "/" + i);
+                  activities.addDocumentReference(documentIdentifier + ":" + i);
                 }
               }
               
@@ -769,7 +769,7 @@ public class EmailConnector extends org.
               }
 
               final Multipart mp = (Multipart) msg.getContent();
-              if (mp.getCount() >= attachmentNumber) {
+              if (mp.getCount() <= attachmentNumber) {
                 activities.deleteDocument(documentIdentifier);
                 continue;
               }



Mime
View raw message