Return-Path: Delivered-To: apmail-incubator-geronimo-cvs-archive@www.apache.org Received: (qmail 15877 invoked from network); 29 Jan 2004 04:08:04 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 29 Jan 2004 04:08:04 -0000 Received: (qmail 21306 invoked by uid 500); 29 Jan 2004 04:07:27 -0000 Delivered-To: apmail-incubator-geronimo-cvs-archive@incubator.apache.org Received: (qmail 21269 invoked by uid 500); 29 Jan 2004 04:07:27 -0000 Mailing-List: contact geronimo-cvs-help@incubator.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: geronimo-dev@incubator.apache.org Delivered-To: mailing list geronimo-cvs@incubator.apache.org Received: (qmail 21085 invoked from network); 29 Jan 2004 04:07:25 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 29 Jan 2004 04:07:25 -0000 Received: (qmail 15389 invoked by uid 1711); 29 Jan 2004 04:07:43 -0000 Date: 29 Jan 2004 04:07:43 -0000 Message-ID: <20040129040743.15388.qmail@minotaur.apache.org> From: dain@apache.org To: incubator-geronimo-cvs@apache.org Subject: cvs commit: incubator-geronimo/sandbox/mail/xdocs navigation.xml X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N dain 2004/01/28 20:07:43 Added: sandbox/mail .cvsignore LICENSE.txt README.txt project.xml sandbox/mail/src/java/org/apache/geronimo/mail AbstractFolder.java AbstractStore.java AbstractTransport.java sandbox/mail/src/java/org/apache/geronimo/mail/imap IMAPFolder.java IMAPStore.java sandbox/mail/src/java/org/apache/geronimo/mail/pop3 POP3Folder.java POP3Store.java sandbox/mail/src/java/org/apache/geronimo/mail/smtp SMTPTransport.java sandbox/mail/src/resources/META-INF javamail.default.address.map javamail.default.providers sandbox/mail/src/test/org/apache/geronimo/mail AbstractFolderTest.java sandbox/mail/src/test/org/apache/geronimo/mail/imap IMAPFolderTest.java sandbox/mail/src/test/org/apache/geronimo/mail/pop3 POP3FolderTest.java sandbox/mail/src/test/org/apache/geronimo/mail/smtp SMTPTransportTest.java sandbox/mail/xdocs navigation.xml Log: Moved from modules/mail Revision Changes Path 1.1 incubator-geronimo/sandbox/mail/.cvsignore Index: .cvsignore =================================================================== .project .classpath maven.log junit*.properties target 1.1 incubator-geronimo/sandbox/mail/LICENSE.txt Index: LICENSE.txt =================================================================== /* ==================================================================== * 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 * . * * ==================================================================== */ 1.1 incubator-geronimo/sandbox/mail/README.txt Index: README.txt =================================================================== Apache JavaMail Implementation 1.4 ================================== These classes are based on the JavaMail Specification taken from J2EE 1.4 API documentation and on the JavaMail 1.3 specification PDF. The classes represent the JavaMail API and contain implementations of the classes found in the javax.mail packages. In order to function correctly, these classes require: o The Java Activation Framework (JAF) in javax.activation o The JavaMail API (JavaMail) in javax.mail o Java 2 (Java 1.2 or later) See http://java.sun.com/products/javamail/ http://java.sun.com/j2ee/1.4/docs/api/ for more information on how to use JavaMail to send messages. Configuration ------------- The JavaMail spec defines the following configuration files: javamail.providers [Defines which classes are used to map to protocols] javamail.address.map [Defines which message types (rfc822, news) map to protocols] They need to be in the CLASSPATH (or in a Jar) in a directory /META-INF/ e.g. c:\mymail\META-INF\javamail.providers Providers --------- Provides a protocol, along with its implementation and whether it is a store or a transport (subclass of javax.mail.Store or javax.mail.Transport) protocol=smtp;type=transport;class=org.me.MySMTPTransport;vendor=Me Inc;version=1.0 protocol=imap;type=store;class=org.me.MyIMAPStore;vendor=Me Inc;version=1.0 Address Map ----------- Contains entries in 'name=value' format: rfc822=smtp news=nntp Default ======= To ensure that other files can be extended at a later stage, the JavaMail spec defines three locations for these files: $JAVA_HOME\lib\javamail.properties META-INF\javamail.properties META-INF\javamail.default.properties The files are located in that order and overwrite whatever the previous version contained, so if 'smtp' is defined in javamail.properties and javamail.default.properties, it will use the one from javamail.default.properties 1.1 incubator-geronimo/sandbox/mail/project.xml Index: project.xml =================================================================== 3 ${basedir}/../../etc/project.xml Geronimo :: JavaMail Implementation geronimo-sandbox geronimo-sandbox-mail These classes represent the Apache implementation of the API of the JavaMail Specification, taken from J2EE 1.4 API documentation and on the JavaMail 1.3 specification PDF. The JavaMail API allows programs to send mail messages and to be able to interrogate a remote mail store (e.g. POP/IMAP inbox) for the message location. This provides only the implementation of the API; there are no API classes (you may use the Sun RI, or the geronimo-spec-javamail ones). org.apache.geronimo.mail DEV geronimo-sandbox geronimo-sandbox-activation DEV true geronimo-sandbox geronimo-sandbox-javamail DEV true 1.1 incubator-geronimo/sandbox/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 * . * * ==================================================================== */ 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. *

* 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 doXxxx() that this requires in order to facilitate creation * of future folder types. * @version $Revision: 1.1 $ $Date: 2004/01/29 04:07:42 $ */ 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 expunge, 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: * *

       *   protected void doRenumberMessageTo(Message message, int id) throws MessagingException {
       *     ((POP3Message)message).setMessageNumber(id);
       *   }
       * 
* * Note that this cannot be done generically in the superclass since there is no way * of making the setMessageNumber() 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 '/' 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/sandbox/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 * . * * ==================================================================== */ 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: 2004/01/29 04:07:42 $ */ 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 INBOX 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/sandbox/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 * . * * ==================================================================== */ 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: 2004/01/29 04:07:42 $ */ 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/sandbox/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 * . * * ==================================================================== */ 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: 2004/01/29 04:07:42 $ */ 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/sandbox/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 * . * * ==================================================================== */ 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: 2004/01/29 04:07:42 $ */ 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/sandbox/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 * . * * ==================================================================== */ 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: 2004/01/29 04:07:42 $ */ 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/sandbox/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 * . * * ==================================================================== */ 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: 2004/01/29 04:07:42 $ */ 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/sandbox/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 * . * * ==================================================================== */ 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: 2004/01/29 04:07:42 $ */ 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/sandbox/mail/src/resources/META-INF/javamail.default.address.map Index: javamail.default.address.map =================================================================== # This file configures the default behaviour of JavaMail. DO NOT EDIT. # Create a new file /META-INF/javamail.address.map and put # the same format lines in there. # # Note that you can't override these defaults, merely add to them. # # 1.3 2003/08/28 12:52:52 # rfc822=smtp news=nntp 1.1 incubator-geronimo/sandbox/mail/src/resources/META-INF/javamail.default.providers Index: javamail.default.providers =================================================================== # This file configures the default behaviour of JavaMail. DO NOT EDIT. # Create a new file /META-INF/javamail.providers and put # the same format lines in there. # # Note that you can't override these defaults, merely add to them. # # 1.3 2003/08/28 12:52:52 # protocol=imap; type=store; class=org.apache.geronimo.mail.imap.IMAPStore; vendor=Apache Software Foundation; version=1.0 protocol=pop3; type=store; class=org.apache.geronimo.mail.pop3.POP3Store; vendor=Apache Software Foundation; version=1.0 protocol=pop; type=store; class=org.apache.geronimo.mail.pop3.POP3Store; vendor=Apache Software Foundation; version=1.0 protocol=smtp; type=transport; class=org.apache.geronimo.mail.smtp.SMTPTransport; vendor=Apache Software Foundation; version=1.0 protocol=nntp; type=transport; class=org.apache.geronimo.mail.nntp.NNTPTransport; vendor=Apache Software Foundation; version=1.0 1.1 incubator-geronimo/sandbox/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 * . * * ==================================================================== */ package org.apache.geronimo.mail; import junit.framework.TestCase; /** * @version $Revision: 1.1 $ $Date: 2004/01/29 04:07:43 $ */ public class AbstractFolderTest extends TestCase { } 1.1 incubator-geronimo/sandbox/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 * . * * ==================================================================== */ package org.apache.geronimo.mail.imap; import junit.framework.TestCase; /** * @version $Revision: 1.1 $ $Date: 2004/01/29 04:07:43 $ */ public class IMAPFolderTest extends TestCase { public void testSomethingPlease() { } } 1.1 incubator-geronimo/sandbox/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 * . * * ==================================================================== */ package org.apache.geronimo.mail.pop3; import junit.framework.TestCase; /** * @version $Revision: 1.1 $ $Date: 2004/01/29 04:07:43 $ */ public class POP3FolderTest extends TestCase { public void testSomethingPlease() { } } 1.1 incubator-geronimo/sandbox/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 * . * * ==================================================================== */ package org.apache.geronimo.mail.smtp; import junit.framework.TestCase; /** * @version $Revision: 1.1 $ $Date: 2004/01/29 04:07:43 $ */ public class SMTPTransportTest extends TestCase { public void testSomethingPlease() { } } 1.1 incubator-geronimo/sandbox/mail/xdocs/navigation.xml Index: navigation.xml ===================================================================