Changeset 141

Show
Ignore:
Timestamp:
04/08/06 20:45:30 (3 years ago)
Author:
jfp
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/jsmtpd/src/org/jsmtpd/core/common/smtpExtension/ISmtpExtension.java

    r114 r141  
    2828 
    2929/** 
     30 * A Smtp extension is a plugin that will add or change normal smtp behavior. 
     31 * smtpPreTrigger method is invoked for every extension loaded, before usual behavior (to change something existing) 
     32 * smtpTrigger method is invoked after the normal chat (to add new smtp command support) 
     33 *  
    3034 * @author Jean-Francois POUX 
    3135 */ 
     
    3337 
    3438    /** 
     39     * Invoked after normal chat, if the main smtp implementation does not known what to do. 
     40     * Return true if passed command is handled, false otherwise.  
     41     * Example of extension relying on this : TLS and authenticator. 
    3542     * When parsing an unkown command, the engine will pass it to this method 
    3643     * ! Use a streamparser from IO package to ensure integrity of what is read. 
     
    5057    /** 
    5158     * Overide normal behavior. 
     59     * It's executed before normal chat. Return true if handled, false otherwise. 
     60     * It is used by SPF plugin, by example, to override default RCPT command in some cases.  
    5261     * @param command 
    5362     * @param protocol 
  • trunk/jsmtpd/src/org/jsmtpd/core/receive/Receiver.java

    r136 r141  
    3131import org.apache.commons.logging.LogFactory; 
    3232import org.jsmtpd.generic.threadpool.BusyThreadPoolException; 
    33 import org.jsmtpd.generic.threadpool.GenericThreadPool; 
    3433import org.jsmtpd.generic.threadpool.GrowingThreadPool; 
    3534import org.jsmtpd.generic.threadpool.ThreadPool; 
  • trunk/jsmtpd/src/org/jsmtpd/generic/threadpool/DummyThread.java

    r130 r141  
    3333 
    3434        Thread.currentThread().setPriority(Thread.MIN_PRIORITY); 
    35         int cpt = 0; 
     35        //int cpt = 0; 
    3636 
    3737//        try { 
  • trunk/jsmtpd/src/org/jsmtpd/generic/threadpool/GrowingThreadPool.java

    r138 r141  
    4949 */ 
    5050public class GrowingThreadPool extends Thread implements ThreadPool { 
    51     private Log log = LogFactory.getLog(GenericThreadPool.class); 
     51    private Log log = LogFactory.getLog(GrowingThreadPool.class); 
    5252    private List<ThreadWorker> threads = new LinkedList<ThreadWorker>(); 
    5353    private int maxSize; 
  • trunk/jsmtpd/src/org/jsmtpd/plugins/deliveryServices/RemoteSmtpSender.java

    r136 r141  
    4141 
    4242/** 
     43 * A delivery service plugin, able to connect to remote smtp servers. 
    4344 * @author Jean-Francois POUX 
    44  * Jsmtp 
    45  * A delivery service plugin, able to connect to remote smtp servers. 
    4645 * work is donne by @see jsmtpdPlugins.deliveryServices.SmtpSender 
    4746 */