Changeset 141
- Timestamp:
- 04/08/06 20:45:30 (3 years ago)
- Files:
-
- trunk/jsmtpd/src/org/jsmtpd/core/common/smtpExtension/ISmtpExtension.java (modified) (3 diffs)
- trunk/jsmtpd/src/org/jsmtpd/core/receive/Receiver.java (modified) (1 diff)
- trunk/jsmtpd/src/org/jsmtpd/generic/threadpool/DummyThread.java (modified) (1 diff)
- trunk/jsmtpd/src/org/jsmtpd/generic/threadpool/GrowingThreadPool.java (modified) (1 diff)
- trunk/jsmtpd/src/org/jsmtpd/plugins/deliveryServices/RemoteSmtpSender.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/jsmtpd/src/org/jsmtpd/core/common/smtpExtension/ISmtpExtension.java
r114 r141 28 28 29 29 /** 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 * 30 34 * @author Jean-Francois POUX 31 35 */ … … 33 37 34 38 /** 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. 35 42 * When parsing an unkown command, the engine will pass it to this method 36 43 * ! Use a streamparser from IO package to ensure integrity of what is read. … … 50 57 /** 51 58 * 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. 52 61 * @param command 53 62 * @param protocol trunk/jsmtpd/src/org/jsmtpd/core/receive/Receiver.java
r136 r141 31 31 import org.apache.commons.logging.LogFactory; 32 32 import org.jsmtpd.generic.threadpool.BusyThreadPoolException; 33 import org.jsmtpd.generic.threadpool.GenericThreadPool;34 33 import org.jsmtpd.generic.threadpool.GrowingThreadPool; 35 34 import org.jsmtpd.generic.threadpool.ThreadPool; trunk/jsmtpd/src/org/jsmtpd/generic/threadpool/DummyThread.java
r130 r141 33 33 34 34 Thread.currentThread().setPriority(Thread.MIN_PRIORITY); 35 int cpt = 0;35 //int cpt = 0; 36 36 37 37 // try { trunk/jsmtpd/src/org/jsmtpd/generic/threadpool/GrowingThreadPool.java
r138 r141 49 49 */ 50 50 public class GrowingThreadPool extends Thread implements ThreadPool { 51 private Log log = LogFactory.getLog(G enericThreadPool.class);51 private Log log = LogFactory.getLog(GrowingThreadPool.class); 52 52 private List<ThreadWorker> threads = new LinkedList<ThreadWorker>(); 53 53 private int maxSize; trunk/jsmtpd/src/org/jsmtpd/plugins/deliveryServices/RemoteSmtpSender.java
r136 r141 41 41 42 42 /** 43 * A delivery service plugin, able to connect to remote smtp servers. 43 44 * @author Jean-Francois POUX 44 * Jsmtp45 * A delivery service plugin, able to connect to remote smtp servers.46 45 * work is donne by @see jsmtpdPlugins.deliveryServices.SmtpSender 47 46 */
