> I'm new to James and try to find a way to implement a mailet 
> able to level mail load.
> It would do the following:
> 
> 1. for each incoming mail check the current mail throughput.
> 2. if the mail throughput is below a threshold, do nothing.
> 3. otherwise level the mail throughput.
> 
> I can think of 2 ways to achieve the 3rd point:
> 1. send back the mail to the incoming queue for the next X 
> seconds (it will pass through the same mailet later-on) 2. 
> set the mail to be delivered later and have a pre-allocation 
> mechanism controlling future throughput
> 
> Do you see any way to implement this?

James already does this: simply set up your wanted number of delivery
threads in RemoteDelivery and your preferred spool threads and james will
handle only that number of mails at a time.

When the incoming mail flow is higher that the flow handled by the
spooling+delivery threads then your spool will become bigger.

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to