[jboss-cvs] jboss-mail/src/java/org/jboss/mail/imap4/commands ...

Andy Oliver acoliver at jboss.org
Mon Jul 24 15:27:47 EDT 2006


  User: acoliver
  Date: 06/07/24 15:27:47

  Modified:    src/java/org/jboss/mail/imap4/commands  FetchCommand.java
  Log:
  IMAP works again...pieces of my (still private) BODYSTRUCTURE...  I still have a lot of stuff to commit but this patch makes it easier to work with mike on folder stuff
  
  Revision  Changes    Path
  1.8       +4 -2      jboss-mail/src/java/org/jboss/mail/imap4/commands/FetchCommand.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: FetchCommand.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-mail/src/java/org/jboss/mail/imap4/commands/FetchCommand.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- FetchCommand.java	25 May 2006 02:38:06 -0000	1.7
  +++ FetchCommand.java	24 Jul 2006 19:27:47 -0000	1.8
  @@ -90,7 +90,7 @@
    * <a  href="http://asg.web.cmu.edu/rfc/rfc2060.html#sec-7.4.2">
    * http://asg.web.cmu.edu/rfc/rfc2060.html#sec-7.4.2 </a>
    * </p>
  - * @version $Revision: 1.7 $
  + * @version $Revision: 1.8 $
    */
   public class FetchCommand extends AbstractImapCommand {
   
  @@ -142,6 +142,7 @@
                       protocol.updateMessageMetaData(msg);
                    }
                 untaggedResponse(fetchMessage(msg, list.indexOf(msg) + 1));
  +     //         untaggedResponse(fetchMessage(msg, Integer.parseInt(_tag)));
              }
           }
   
  @@ -180,6 +181,7 @@
           System.err.println("TODO implement FETCH");
           taggedSimpleSuccess();
           flush();
  +      //  return null;
           return result;
       }
   
  @@ -192,7 +194,7 @@
               Object part = i.next();
               FetchPart handler = registry.getHandler(part);
               handler.setProtocol(getProtocolInstance());
  -            result.append(handler.fetch(msg, part));
  +            result.append(handler.fetch(msg, part, this, result));
   
               if (i.hasNext())
                   result.append(" ");
  
  
  



More information about the jboss-cvs-commits mailing list