geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject cvs commit: incubator-geronimo/modules/mail/src/test/org/apache/geronimo/mail/smtp SMTPTransportTest.java
Date Thu, 28 Aug 2003 13:06:49 GMT
jdillon     2003/08/28 06:06:49

  Added:       modules/mail/src/java/org/apache/geronimo/mail
                        AbstractFolder.java AbstractStore.java
                        AbstractTransport.java
               modules/mail/src/java/org/apache/geronimo/mail/imap
                        IMAPFolder.java IMAPStore.java
               modules/mail/src/java/org/apache/geronimo/mail/pop3
                        POP3Folder.java POP3Store.java
               modules/mail/src/java/org/apache/geronimo/mail/smtp
                        SMTPTransport.java
               modules/mail/src/test/org/apache/geronimo/mail
                        AbstractFolderTest.java
               modules/mail/src/test/org/apache/geronimo/mail/imap
                        IMAPFolderTest.java
               modules/mail/src/test/org/apache/geronimo/mail/pop3
                        POP3FolderTest.java
               modules/mail/src/test/org/apache/geronimo/mail/smtp
                        SMTPTransportTest.java
  Log:
   o Applied patch GERONIMO-28 by Alex Blewitt
  
  Revision  Changes    Path
  1.1                  incubator-geronimo/modules/mail/src/java/org/apache/geronimo/mail/AbstractFolder.java
  
  Index: AbstractFolder.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.mail;
  
  import java.util.Iterator;
  import java.util.LinkedList;
  import java.util.List;
  
  import javax.mail.Flags;
  import javax.mail.Folder;
  import javax.mail.Message;
  import javax.mail.MessagingException;
  import javax.mail.Store;
  import javax.mail.URLName;
  
  /**
   * Apache implementation of a generic {@link Folder}. May be subclassed for optimisation for specific protocols.
   * This stores messages using an internal {@link List}, and allows messages to be cached inside the folder.
   * Note that the messages do not have to be present or fully loaded; it is possible that a message
   * will only contain the message ID and be loaded dynamically on request.
   * <p>
   * Whilst it is possible for other implementations to override {@link Folder} directly, this provides common
   * methods that allow for easier implementation. Subclasses should implement the abstract methods
   * from {@link Folder} and the <code>doXxxx()</code> that this requires in order to facilitate creation
   * of future folder types.
   * @version $Revision: 1.1 $ $Date: 2003/08/28 13:06:49 $
   */
  public abstract class AbstractFolder extends Folder {
      /**
       * Used for converting a list into a folder
       */
      private static final Message[] MESSAGE_ARRAY = new Message[0];
      /**
       * The list that holds the messages for this folder.
       * Note that due to a list being implemented, it is not possible to have (say) message 1 cached and message 3 cached, without
       * also caching message 2. If this is changed to provide a SortedSet based on Integer keys, this may be more efficient.
       */
      // TODO Investigate migration to a SortedSet. Implementations should not assume that this is a list.
      private List _messages = new LinkedList();
      /**
       * The name of this folder.
       */
      private URLName _name;
      /**
       * Create a new folder associated with the given {@link Store}
       * @param store the {@link Store} this folder is associated with
       * @param name the name of this folder
       */
      public AbstractFolder(Store store, URLName name) {
          super(store);
          _name = name;
      }
  
      /**
       * Runs through the array of messages and appends them onto the folder using {@link #add(Message)}.
       * @param messages the array of messages to add.
       */
      public void appendMessages(Message[] messages) throws MessagingException {
          for (int i = 0; i < messages.length; i++) {
              Message message = messages[i];
              _messages.add(message);
          }
      }
  
      /**
       * Closes the folder, and if <code>expunge</code>, then automatically expunges prior to closure.
       * Afterwards calls doClose() as a hook to the underlying implementation to do the real close operation.
       */
      public void close(boolean expunge) throws MessagingException {
          if (expunge) {
              expunge();
          }
          doClose();
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Folder#delete(boolean)
       */
      public boolean delete(boolean recurse) throws MessagingException {
          _messages = new LinkedList();
          // TODO This is implemented badly; it doesn't delete the messages from the folder!
          for (int i = 0; i < _messages.size(); i++) {
              doDelete(i);
          }
          return true;
      }
  
      /**
       * Implemented by the provider, to close the folder. An expunge will already have
       * been performed if required.
       * @throws MessagingException if an error occurs during closure.
       */
      protected abstract void doClose() throws MessagingException;
      /**
       * Implemented by subclasses to actually delete a message from the store. This is then removed from the 
       * folder's message cache.
       * @param id the message number to delete
       * @return the newly-created message from the store
       * @throws MessagingException in case of any error
       */
      protected abstract void doDelete(int id) throws MessagingException;
  
      /**
       * Implemented by subclasses to actually load a message from the store. This is then cached in
       * the itnernal folder.
       * Note that the message returned does not need to be fully loaded; it can be a placeholder with
       * the message id only and dynamically access the rest of the message when required.
       * @param id the message number to use
       * @return the newly-created message from the store
       * @throws MessagingException in case of any error
       */
      protected abstract Message doGetMessage(int id) throws MessagingException;
  
      /**
       * Implemented by subclasses to perform a rename operation. Called by renameTo(),
       * and if successful, the name is update.
       * @param newName the new name to use
       */
      protected abstract void doOpen(int newMode) throws MessagingException;
      /**
       * Implemented by subclasses to perform a rename operation. Called by renameTo(),
       * and if successful, the name is update.
       * @param newName the new name to use
       * @return true if the folder is renamed; false otherwise.
       */
      protected abstract boolean doRenameTo(Folder newName);
  
      /**
       * Renumber message with new ID after an expunge occurs.
       * Since the Message#setMessageNumber is protected, there cannot be an
       * implementation that provides it. However, subclasses that use
       * their own implementation of Message (e.g. POP3Message) can set up
       * the setMessageNumber to be protected, and thus available in the
       * local package. This method implementation is likely to look like:
       * 
       * <pre>
       *   protected void doRenumberMessageTo(Message message, int id) throws MessagingException {
       *     ((POP3Message)message).setMessageNumber(id);
       *   }
       * </pre>
       * 
       * Note that this cannot be done generically in the superclass since there is no way
       * of making the <code>setMessageNumber()</code> method visible to this class without
       * violating the JavaMail spec.
       * @param message the message to renumber
       * @param id the message id
       */
      protected abstract void doRenumberMessageTo(Message message, int id)
          throws MessagingException;
  
      /**
       * Runs through a list of messages, and removes them from the internal list
       * of messages. Calls 
       */
      public Message[] expunge() throws MessagingException {
          Iterator it = _messages.iterator();
          List result = new LinkedList();
          while (it.hasNext()) {
              Message message = (Message) it.next();
              if (message.isSet(Flags.Flag.DELETED)) {
                  it.remove();
                  result.add(message);
              }
          }
          // run through and renumber the messages
          for (int i = 0; i < _messages.size(); i++) {
              Message message = (Message) _messages.get(i);
              doRenumberMessageTo(message, i);
              //            message.setMessageNumber(i);
          }
          return (Message[]) result.toArray(MESSAGE_ARRAY);
      }
  
      /** 
       * Returns the full URLName of this folder
       * @return the full URLName of this folder
       */
      public String getFullName() {
          return _name.toString();
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Folder#getMessage(int)
       */
      public Message getMessage(int id) throws MessagingException {
          // TODO Put in faulting to dynamically load message if not present
          return (Message) _messages.get(id);
      }
  
      /**
       * Returns just the name portion of the URLName
       */
      public String getName() {
          return _name.getFile();
      }
  
      /**
       * Uses '<code>/</code>' as the separator. This may be overriden by subclases, but is a sensible default.
       */
      public char getSeparator() throws MessagingException {
          return '/';
      }
  
      /**
       * Returns {@link HOLDS_MESSAGES}. Override if the server supports folders {@link HOLDS_FOLDERS}
       * instead/as well.
       */
      public int getType() throws MessagingException {
          return HOLDS_MESSAGES;
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Folder#hasNewMessages()
       */
      public boolean hasNewMessages() throws MessagingException {
          // TODO Implement
          return false;
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Folder#list(java.lang.String)
       */
      public Folder[] list(String pattern) throws MessagingException {
          return null;
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Folder#open(int)
       */
      public void open(int newMode) throws MessagingException {
          doOpen(newMode);
          mode = newMode;
          // if the open works, then do the assignment; otherwise, leave as-is
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Folder#renameTo(javax.mail.Folder)
       */
      public boolean renameTo(Folder newName) throws MessagingException {
          if (doRenameTo(newName)) {
              _name = ((AbstractFolder) newName)._name;
              return true;
          } else {
              return false;
          }
      }
  
  }
  
  
  
  1.1                  incubator-geronimo/modules/mail/src/java/org/apache/geronimo/mail/AbstractStore.java
  
  Index: AbstractStore.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.mail;
  
  import javax.mail.Folder;
  import javax.mail.MessagingException;
  import javax.mail.Session;
  import javax.mail.Store;
  import javax.mail.URLName;
  
  /**
   * Apache implementation of a generic store. May be subclassed for optimisation for specific protocols.
   * @version $Revision: 1.1 $ $Date: 2003/08/28 13:06:49 $
   */
  public abstract class AbstractStore extends Store {
  
      /**
       * @param session the {@link Session} this store is associated with
       * @param name the @{link URLName} of this store
       */
      public AbstractStore(Session session, URLName name) {
          super(session, name);
      }
  
      /**
       * Returns the folder called <code>INBOX</code> unless a subclass overrides it
       */
      public Folder getDefaultFolder() throws MessagingException {
          // look for folder INBOX, which is usually the default
          return getFolder("INBOX");
      }
  
      /**
       * Delegates the method to the new URLName class
       */
      public Folder getFolder(String name) throws MessagingException {
          return getFolder(new URLName(name));
      }
  
  }
  
  
  
  1.1                  incubator-geronimo/modules/mail/src/java/org/apache/geronimo/mail/AbstractTransport.java
  
  Index: AbstractTransport.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.mail;
  
  import javax.mail.Session;
  import javax.mail.Transport;
  import javax.mail.URLName;
  
  /**
   * Apache implementation of a generic transport. May be subclassed for optimisation for specific protocols.
   * @version $Revision: 1.1 $ $Date: 2003/08/28 13:06:49 $
   */
  public abstract class AbstractTransport extends Transport {
  
      /**
       * Create a Transport against the given session and name
       * @param session the {@link Session} this transport is associated with
       * @param name the @{link URLName} of this transport
       */
      public AbstractTransport(Session session, URLName name) {
          super(session, name);
      }
  
  }
  
  
  
  1.1                  incubator-geronimo/modules/mail/src/java/org/apache/geronimo/mail/imap/IMAPFolder.java
  
  Index: IMAPFolder.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.mail.imap;
  
  import javax.mail.Flags;
  import javax.mail.Folder;
  import javax.mail.Message;
  import javax.mail.MessagingException;
  import javax.mail.Store;
  import javax.mail.URLName;
  
  import org.apache.geronimo.mail.AbstractFolder;
  
  /**
   * Represents an Apache implementation of an IMAP folder.
   * @version $Revision: 1.1 $ $Date: 2003/08/28 13:06:49 $
   */
  public class IMAPFolder extends AbstractFolder {
  
      /**
       * Create a new IMAP folder associated with the given store
       * @param store the {@link Store} that this folder is a part of
       * @param name the name of this folder
       */
      public IMAPFolder(Store store, URLName name) {
          super(store,name);
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Folder#create(int)
       */
      public boolean create(int type) throws MessagingException {
          // TODO Auto-generated method stub
          return false;
      }
  
      /* (non-Javadoc)
       * @see org.apache.geronimo.mail.AbstractFolder#doClose()
       */
      protected void doClose() throws MessagingException {
          // TODO Auto-generated method stub
          
      }
  
      /* (non-Javadoc)
       * @see org.apache.geronimo.mail.AbstractFolder#doDelete(int)
       */
      protected void doDelete(int id) throws MessagingException {
          // TODO Auto-generated method stub
          
      }
  
      /* (non-Javadoc)
       * @see org.apache.geronimo.mail.AbstractFolder#doGetMessage(int)
       */
      protected Message doGetMessage(int id) throws MessagingException {
          // TODO Auto-generated method stub
          return null;
      }
  
      /* (non-Javadoc)
       * @see org.apache.geronimo.mail.AbstractFolder#doRenameTo(javax.mail.Folder)
       */
      protected boolean doRenameTo(Folder newName) {
          // TODO Auto-generated method stub
          return false;
      }
  
      /* (non-Javadoc)
       * @see org.apache.geronimo.mail.AbstractFolder#doRenumberMessageTo(javax.mail.Message, int)
       */
      protected void doRenumberMessageTo(Message message, int id) throws MessagingException {
          // TODO Auto-generated method stub
          
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Folder#exists()
       */
      public boolean exists() throws MessagingException {
          // TODO Auto-generated method stub
          return false;
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Folder#getFolder(java.lang.String)
       */
      public Folder getFolder(String name) throws MessagingException {
          // TODO Auto-generated method stub
          return null;
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Folder#getMessageCount()
       */
      public int getMessageCount() throws MessagingException {
          // TODO Auto-generated method stub
          return 0;
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Folder#getParent()
       */
      public Folder getParent() throws MessagingException {
          // TODO Auto-generated method stub
          return null;
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Folder#getPermanentFlags()
       */
      public Flags getPermanentFlags() {
          // TODO Auto-generated method stub
          return null;
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Folder#isOpen()
       */
      public boolean isOpen() {
          // TODO Auto-generated method stub
          return false;
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Folder#open(int)
       */
      public void doOpen(int newMode) throws MessagingException {
          // TODO Auto-generated method stub        
      }
  
  }
  
  
  
  1.1                  incubator-geronimo/modules/mail/src/java/org/apache/geronimo/mail/imap/IMAPStore.java
  
  Index: IMAPStore.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.mail.imap;
  
  import javax.mail.Folder;
  import javax.mail.MessagingException;
  import javax.mail.Session;
  import javax.mail.URLName;
  
  import org.apache.geronimo.mail.AbstractStore;
  
  /**
   * Represents the Apache implementation of the IMAP Store.
   * @version $Revision: 1.1 $ $Date: 2003/08/28 13:06:49 $
   */
  public class IMAPStore extends AbstractStore {
  
      /**
       * Create a new IMAP store
       * @param session the session to be associated with
       * @param name the name of this store
       */
      public IMAPStore(Session session, URLName name) {
          super(session, name);
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Store#getFolder(javax.mail.URLName)
       */
      public Folder getFolder(URLName name) throws MessagingException {
          return new IMAPFolder(this,name);
      }
  
  }
  
  
  
  1.1                  incubator-geronimo/modules/mail/src/java/org/apache/geronimo/mail/pop3/POP3Folder.java
  
  Index: POP3Folder.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.mail.pop3;
  
  import javax.mail.Flags;
  import javax.mail.Folder;
  import javax.mail.Message;
  import javax.mail.MessagingException;
  import javax.mail.Store;
  import javax.mail.URLName;
  
  import org.apache.geronimo.mail.AbstractFolder;
  
  /**
   * Represents an Apache implementation of a POP3 folder.
   * @version $Revision: 1.1 $ $Date: 2003/08/28 13:06:49 $
   */
  public class POP3Folder extends AbstractFolder {
  
      /**
       * Create a new POP3 folder associated with the given store
       * @param store the {@link Store} that this folder is a part of
       * @param name the name of this folder
       */
      public POP3Folder(Store store, URLName name) {
          super(store,name);
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Folder#create(int)
       */
      public boolean create(int type) throws MessagingException {
          // TODO Auto-generated method stub
          return false;
      }
  
      /* (non-Javadoc)
       * @see org.apache.geronimo.mail.AbstractFolder#doClose()
       */
      protected void doClose() throws MessagingException {
          // TODO Auto-generated method stub
          
      }
  
      /* (non-Javadoc)
       * @see org.apache.geronimo.mail.AbstractFolder#doDelete(int)
       */
      protected void doDelete(int id) throws MessagingException {
          // TODO Auto-generated method stub
          
      }
  
      /* (non-Javadoc)
       * @see org.apache.geronimo.mail.AbstractFolder#doGetMessage(int)
       */
      protected Message doGetMessage(int id) throws MessagingException {
          // TODO Auto-generated method stub
          return null;
      }
  
      /* (non-Javadoc)
       * @see org.apache.geronimo.mail.AbstractFolder#doRenameTo(javax.mail.Folder)
       */
      protected boolean doRenameTo(Folder newName) {
          // TODO Auto-generated method stub
          return false;
      }
  
      /* (non-Javadoc)
       * @see org.apache.geronimo.mail.AbstractFolder#doRenumberMessageTo(javax.mail.Message, int)
       */
      protected void doRenumberMessageTo(Message message, int id) throws MessagingException {
          // TODO Auto-generated method stub
          
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Folder#exists()
       */
      public boolean exists() throws MessagingException {
          // TODO Auto-generated method stub
          return false;
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Folder#getFolder(java.lang.String)
       */
      public Folder getFolder(String name) throws MessagingException {
          // TODO Auto-generated method stub
          return null;
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Folder#getMessageCount()
       */
      public int getMessageCount() throws MessagingException {
          // TODO Auto-generated method stub
          return 0;
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Folder#getParent()
       */
      public Folder getParent() throws MessagingException {
          // TODO Auto-generated method stub
          return null;
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Folder#getPermanentFlags()
       */
      public Flags getPermanentFlags() {
          // TODO Auto-generated method stub
          return null;
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Folder#isOpen()
       */
      public boolean isOpen() {
          // TODO Auto-generated method stub
          return false;
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Folder#open(int)
       */
      protected void doOpen(int newMode) throws MessagingException {
          // TODO Auto-generated method stub
          
      }
  
  }
  
  
  
  1.1                  incubator-geronimo/modules/mail/src/java/org/apache/geronimo/mail/pop3/POP3Store.java
  
  Index: POP3Store.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.mail.pop3;
  
  import javax.mail.Folder;
  import javax.mail.MessagingException;
  import javax.mail.Session;
  import javax.mail.URLName;
  
  import org.apache.geronimo.mail.AbstractStore;
  
  /**
   * Represents the Apache implementation of the POP3 Store.
   * @version $Revision: 1.1 $ $Date: 2003/08/28 13:06:49 $
   */
  public class POP3Store extends AbstractStore {
  
      /**
       * Create a new POP3 store
       * @param session the session to be associated with
       * @param name the name of this store
       */
      public POP3Store(Session session, URLName name) {
          super(session, name);
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Store#getFolder(javax.mail.URLName)
       */
      public Folder getFolder(URLName name) throws MessagingException {
          return new POP3Folder(this,name);
      }
  
  }
  
  
  
  1.1                  incubator-geronimo/modules/mail/src/java/org/apache/geronimo/mail/smtp/SMTPTransport.java
  
  Index: SMTPTransport.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.mail.smtp;
  
  import javax.mail.Address;
  import javax.mail.Message;
  import javax.mail.MessagingException;
  import javax.mail.Session;
  import javax.mail.URLName;
  
  import org.apache.geronimo.mail.AbstractTransport;
  
  /**
   * @version $Revision: 1.1 $ $Date: 2003/08/28 13:06:49 $
   */
  public class SMTPTransport extends AbstractTransport {
  
      /**
       * @param session
       * @param name
       */
      public SMTPTransport(Session session, URLName name) {
          super(session, name);
          // TODO Auto-generated constructor stub
      }
  
      /* (non-Javadoc)
       * @see javax.mail.Transport#sendMessage(javax.mail.Message, javax.mail.Address[])
       */
      public void sendMessage(Message message, Address[] addresses)
          throws MessagingException {
          // TODO Auto-generated method stub
  
      }
  
  }
  
  
  
  1.1                  incubator-geronimo/modules/mail/src/test/org/apache/geronimo/mail/AbstractFolderTest.java
  
  Index: AbstractFolderTest.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.mail;
  
  import junit.framework.TestCase;
  
  /**
   * @version $Revision: 1.1 $ $Date: 2003/08/28 13:06:49 $
   */
  public class AbstractFolderTest extends TestCase {
  
  }
  
  
  
  1.1                  incubator-geronimo/modules/mail/src/test/org/apache/geronimo/mail/imap/IMAPFolderTest.java
  
  Index: IMAPFolderTest.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.mail.imap;
  
  import junit.framework.TestCase;
  
  /**
   * @version $Revision: 1.1 $ $Date: 2003/08/28 13:06:49 $
   */
  public class IMAPFolderTest extends TestCase {
  
  }
  
  
  
  1.1                  incubator-geronimo/modules/mail/src/test/org/apache/geronimo/mail/pop3/POP3FolderTest.java
  
  Index: POP3FolderTest.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.mail.pop3;
  
  import junit.framework.TestCase;
  
  /**
   * @version $Revision: 1.1 $ $Date: 2003/08/28 13:06:49 $
   */
  public class POP3FolderTest extends TestCase {
  
  }
  
  
  
  1.1                  incubator-geronimo/modules/mail/src/test/org/apache/geronimo/mail/smtp/SMTPTransportTest.java
  
  Index: SMTPTransportTest.java
  ===================================================================
  /* ====================================================================
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Apache" and "Apache Software Foundation" and
   *    "Apache Geronimo" must not be used to endorse or promote products
   *    derived from this software without prior written permission. For
   *    written permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    "Apache Geronimo", nor may "Apache" appear in their name, without
   *    prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * ====================================================================
   */
  package org.apache.geronimo.mail.smtp;
  
  import junit.framework.TestCase;
  
  /**
   * @version $Revision: 1.1 $ $Date: 2003/08/28 13:06:49 $
   */
  public class SMTPTransportTest extends TestCase {
  
  }
  
  
  

Mime
View raw message