quota check befor sieve script?

Ken Murchison murch at andrew.cmu.edu
Tue Jan 29 07:31:15 EST 2008


Michael Menge wrote:
> Hi,
> 
> i don't know if this is a bug or a feature, but it seems that lmtpd  
> checks quota befor a e-mail is parsed by the sieve script. This causes  
> over quota bounces for
> messages that would have been discarded or redirected.
> 
> Is there a way to only send the over quota bounces if the message hits  
> a keep, fileinto or implicite keep action or to accept the email if it  
> hits a forward or discarde action and to ignore the keep and fileinto  
> actions in case of overquota?

I understand your concern, but the problem is that by definition, if a 
Sieve script fails, the message MUST be delivered to the intended 
mailbox.  However, if the mailbox is over quota, we can't do this.  The 
simplest way to handle the situation is to do the quota check before 
processing the script, regardless of the final disposition.

If you want to look at the code and find a better way, I'll be happy to 
look at a patch.


-- 
Kenneth Murchison
Systems Programmer
Project Cyrus Developer/Maintainer
Carnegie Mellon University


More information about the Info-cyrus mailing list