summaryrefslogtreecommitdiffstats
path: root/bin/kolab_smtp_access_policy.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/kolab_smtp_access_policy.py')
-rwxr-xr-xbin/kolab_smtp_access_policy.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/kolab_smtp_access_policy.py b/bin/kolab_smtp_access_policy.py
index f165be9..3c6adce 100755
--- a/bin/kolab_smtp_access_policy.py
+++ b/bin/kolab_smtp_access_policy.py
@@ -168,6 +168,9 @@ def cache_insert(sender, recipient, function, result, sasl_username='',sasl_send
return []
log.debug(_("Caching the policy result with timestamp %d") %((int)(time.time())), level=8)
+
+ cache_cleanup()
+
session.add(PolicyResult(key=function,value=result,sender=sender,recipient=recipient,sasl_username=sasl_username,sasl_sender=sasl_sender))
session.commit()