Merge pull request #38 from chillout2k/devel

Bugfix: debug-logging of Tenant-ID returns None
This commit is contained in:
Dominik Chilla 2022-02-04 20:04:12 +01:00 committed by GitHub
commit c0d74c7cc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,7 +204,7 @@ class ExOTAMilter(Milter.Base):
# Parse non-standardized X-MS-Exchange-CrossTenant-Id header
elif(name.lower() == "X-MS-Exchange-CrossTenant-Id".lower()):
log_debug(self.mconn_id + "/" + str(self.getsymval('i')) +
"/HDR: Tenant-ID: {0}".format(self.hdr_tenant_id)
"/HDR: Tenant-ID: {0}".format(hval.lower())
)
if self.hdr_tenant_id_count > 0:
if not self.hdr_tenant_id == hval.lower():