manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kam...@apache.org
Subject svn commit: r1791258 - in /manifoldcf/trunk: CHANGES.txt connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java
Date Thu, 13 Apr 2017 14:11:33 GMT
Author: kamaci
Date: Thu Apr 13 14:11:32 2017
New Revision: 1791258

URL: http://svn.apache.org/viewvc?rev=1791258&view=rev
Log:
Fix for CONNECTORS-1406.

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

Modified: manifoldcf/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/CHANGES.txt?rev=1791258&r1=1791257&r2=1791258&view=diff
==============================================================================
--- manifoldcf/trunk/CHANGES.txt (original)
+++ manifoldcf/trunk/CHANGES.txt Thu Apr 13 14:11:32 2017
@@ -3,6 +3,9 @@ $Id$
 
 ======================= 2.7-dev =====================
 
+CONNECTORS-1406: Fix multiple To and From field bug at e-mail.
+(Furkan KAMACI)
+
 CONNECTORS-1405: Add filename metadata information for email.
 (Furkan KAMACI)
 

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=1791258&r1=1791257&r2=1791258&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 Apr 13 14:11:32 2017
@@ -591,6 +591,7 @@ public class EmailConnector extends org.
                   int j = 0;
                   for (Address address : to) {
                     toStr[j] = address.toString();
+                    j++;
                   }
                   rd.addField(EmailConfig.EMAIL_TO, toStr);
                 } else if (metadata.toLowerCase(Locale.ROOT).equals(EmailConfig.EMAIL_FROM))
{
@@ -599,6 +600,7 @@ public class EmailConnector extends org.
                   int j = 0;
                   for (Address address : from) {
                     fromStr[j] = address.toString();
+                    j++;
                   }
                   rd.addField(EmailConfig.EMAIL_FROM, fromStr);
 
@@ -849,6 +851,7 @@ public class EmailConnector extends org.
                   int j = 0;
                   for (Address address : to) {
                     toStr[j] = address.toString();
+                    j++;
                   }
                   rd.addField(EmailConfig.EMAIL_TO, toStr);
                 } else if (metadata.toLowerCase(Locale.ROOT).equals(EmailConfig.EMAIL_FROM))
{
@@ -857,6 +860,7 @@ public class EmailConnector extends org.
                   int j = 0;
                   for (Address address : from) {
                     fromStr[j] = address.toString();
+                    j++;
                   }
                   rd.addField(EmailConfig.EMAIL_FROM, fromStr);
                 } else if (metadata.toLowerCase(Locale.ROOT).equals(EmailConfig.EMAIL_SUBJECT))
{



Mime
View raw message