manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1622214 - in /manifoldcf/branches/dev_1x: ./ CHANGES.txt connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java
Date Wed, 03 Sep 2014 10:22:46 GMT
Author: kwright
Date: Wed Sep  3 10:22:46 2014
New Revision: 1622214

URL: http://svn.apache.org/r1622214
Log:
Pull up fix for CONNECTORS-1020 from trunk.

Modified:
    manifoldcf/branches/dev_1x/   (props changed)
    manifoldcf/branches/dev_1x/CHANGES.txt
    manifoldcf/branches/dev_1x/connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java

Propchange: manifoldcf/branches/dev_1x/
------------------------------------------------------------------------------
  Merged /manifoldcf/trunk:r1622213

Modified: manifoldcf/branches/dev_1x/CHANGES.txt
URL: http://svn.apache.org/viewvc/manifoldcf/branches/dev_1x/CHANGES.txt?rev=1622214&r1=1622213&r2=1622214&view=diff
==============================================================================
--- manifoldcf/branches/dev_1x/CHANGES.txt (original)
+++ manifoldcf/branches/dev_1x/CHANGES.txt Wed Sep  3 10:22:46 2014
@@ -3,6 +3,9 @@ $Id$
 
 ======================= 1.8-dev =====================
 
+CONNECTORS-1020: Email connector misuse of variable names.
+(Karl Wright, Paul Boichat)
+
 CONNECTORS-1014: Fix the fact that Solr Cloud no longer sets
 a content type in its responses.
 (Kamil Zyta, Karl Wright)

Modified: manifoldcf/branches/dev_1x/connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/dev_1x/connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java?rev=1622214&r1=1622213&r2=1622214&view=diff
==============================================================================
--- manifoldcf/branches/dev_1x/connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java
(original)
+++ manifoldcf/branches/dev_1x/connectors/email/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/email/EmailConnector.java
Wed Sep  3 10:22:46 2014
@@ -560,8 +560,8 @@ public class EmailConnector extends org.
                 rd.addField(EmailConfig.EMAIL_SUBJECT, subject);
               } else if (metadata.toLowerCase().equals(EmailConfig.EMAIL_BODY)) {
                 Multipart mp = (Multipart) msg.getContent();
-                for (int j = 0, n = mp.getCount(); i < n; i++) {
-                  Part part = mp.getBodyPart(i);
+                for (int k = 0, n = mp.getCount(); k < n; k++) {
+                  Part part = mp.getBodyPart(k);
                   String disposition = part.getDisposition();
                   if ((disposition == null)) {
                     MimeBodyPart mbp = (MimeBodyPart) part;
@@ -579,8 +579,8 @@ public class EmailConnector extends org.
                 Multipart mp = (Multipart) msg.getContent();
                 if (mp != null) {
                   String[] encoding = new String[mp.getCount()];
-                  for (int k = 0, n = mp.getCount(); i < n; i++) {
-                    Part part = mp.getBodyPart(i);
+                  for (int k = 0, n = mp.getCount(); k < n; k++) {
+                    Part part = mp.getBodyPart(k);
                     String disposition = part.getDisposition();
                     if ((disposition != null) &&
                         ((disposition.equals(Part.ATTACHMENT) ||
@@ -594,8 +594,8 @@ public class EmailConnector extends org.
               } else if (metadata.toLowerCase().equals(EmailConfig.EMAIL_ATTACHMENT_MIMETYPE))
{
                 Multipart mp = (Multipart) msg.getContent();
                 String[] MIMEType = new String[mp.getCount()];
-                for (int k = 0, n = mp.getCount(); i < n; i++) {
-                  Part part = mp.getBodyPart(i);
+                for (int k = 0, n = mp.getCount(); k < n; k++) {
+                  Part part = mp.getBodyPart(k);
                   String disposition = part.getDisposition();
                   if ((disposition != null) &&
                       ((disposition.equals(Part.ATTACHMENT) ||



Mime
View raw message