Author: sebb
Date: Sun May 18 21:16:12 2014
New Revision: 1595689

URL: http://svn.apache.org/r1595689
Log:
Javadoc
Count messages found

Modified:
    commons/proper/net/trunk/src/main/java/examples/mail/IMAPExportMbox.java

Modified: 
commons/proper/net/trunk/src/main/java/examples/mail/IMAPExportMbox.java
URL: 
http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/mail/IMAPExportMbox.java?rev=1595689&r1=1595688&r2=1595689&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/mail/IMAPExportMbox.java 
(original)
+++ commons/proper/net/trunk/src/main/java/examples/mail/IMAPExportMbox.java 
Sun May 18 21:16:12 2014
@@ -42,7 +42,7 @@ import org.apache.commons.net.imap.IMAPC
  * <p>
  * An example sequence-set might be:
  * <ul>
- * <li>11,2,3-10,20:*</li>
+ * <li>11,2,3:10,20:*</li>
  * <li>1:* - this is the default</li>
  * </ul>
  * <p>
@@ -50,11 +50,17 @@ import org.apache.commons.net.imap.IMAPC
  * <ul>
  * <li>BODY.PEEK[HEADER.FIELDS (SUBJECT)]</li>
  * <li>ALL</li>
+ * <li>ENVELOPE</li>
  * <li>(INTERNALDATE BODY.PEEK[]) - this is the default</li>
  * </ul>
  * <p>
  * For example:<br>
- * IMAPExportMbox 
imaps://username:[email protected]/messages_for_export exported.mbox 
1-10,20
+ * IMAPExportMbox 
imaps://username:[email protected]/messages_for_export exported.mbox 
1:10,20<br>
+ * IMAPExportMbox 
imaps://username:[email protected]/messages_for_export exported.mbox 
3 ENVELOPE<br>
+ * <p>
+ * Note that the sequence-set and item names are passed unmodified to the 
FETCH command.
+ * Also the listener that writes the mailbox only captures the multi-line 
responses.
+ * It does not capture the output from ENVELOPE commands.
  */
 public final class IMAPExportMbox
 {
@@ -188,6 +194,7 @@ public final class IMAPExportMbox
                 }
             }
             try {
+               total++;
                 // Add initial mbox header line
                 bw.append("From ");
                 bw.append(replyTo);


Reply via email to