[Dovecot] Question regarding reverse quota_warning

jeroen at intuxicated.org jeroen at intuxicated.org
Thu Sep 10 15:37:00 EEST 2009


Hi Everyone,

I have a question regarding reverse quota_warnings. I'm building a new
setup, and I would like to block sending messages if a person is over
his/her quota limit. Although this can be accomplished using a
quota_warning script, I can't find how to accomplish the reverse. Has
anyone tried to do something like this?

By looking at the source code:

---- quote ----
if ((bytes_before < (uint64_t)warnings[i].rule.bytes_limit &&
     bytes_current >= (uint64_t)warnings[i].rule.bytes_limit) ||
    (count_before < (uint64_t)warnings[i].rule.count_limit &&
     count_current >= (uint64_t)warnings[i].rule.count_limit)) {
	quota_warning_execute(root, warnings[i].command);
	break;
}
----- /quote -----

I think it could be as simple as adding a second if statement and prefixing
a string, but that's not a very clean solution.

Best regards,

Jeroen Koekkoek


More information about the dovecot mailing list