search for: q_stor

Displaying 1 result from an estimated 1 matches for "q_stor".

Did you mean: __str
2009 Jan 19
0
Reject message if user is over quota. 2/3 solution for Postfix w/ PostgreSQL
..._check('%u', '%d', 10485760, 1000) # quota limit in bytes ----------------------------^ # quota limit in messages -----------------------------------^ SQL: CREATE OR REPLACE FUNCTION postfix_global_quota_check( IN localpart varchar, IN the_domain varchar, IN q_stor bigint, IN q_msgs bigint) RETURNS TEXT AS $$ DECLARE result text := 'DUNNO'; -- remove extenstion from localpart (user+foo -> user) lpart varchar := (SELECT regexp_replace(localpart, E'\\+.*$', '')); -- XXX how to handle alias...