Page MenuHomePhorge

D140.1775629419.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D140.1775629419.diff

diff --git a/bin/kolab_smtp_access_policy.py b/bin/kolab_smtp_access_policy.py
--- a/bin/kolab_smtp_access_policy.py
+++ b/bin/kolab_smtp_access_policy.py
@@ -88,7 +88,7 @@
Column('id', Integer, Sequence('seq_id_result'), primary_key=True),
Column('key', String(16), nullable=False),
Column('value', Boolean, nullable=False),
- Column('sender', String(64), nullable=False),
+ Column('sender', String(64), nullable=True),
Column('recipient', String(64), nullable=False),
Column('sasl_username', String(64)),
Column('sasl_sender', String(64)),
@@ -377,7 +377,7 @@
for rule in rules['allow']:
deny_override = False
- if _object.endswith(rule):
+ if _object is not None and _object.endswith(rule):
for deny_rule in rules['deny']:
if deny_rule.endswith(rule):
deny_override = True
@@ -389,7 +389,7 @@
for rule in rules['deny']:
allow_override = False
- if _object.endswith(rule):
+ if _object is not None and _object.endswith(rule):
if not allowed:
denied = True
continue

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 8, 6:23 AM (19 h, 53 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18833638
Default Alt Text
D140.1775629419.diff (1 KB)

Event Timeline