Add debug logging for content type to assist troubleshooting MIME

conversion issues
This commit is contained in:
Scott Kitterman
2019-09-11 15:31:15 -04:00
parent 39d79ae5a6
commit 708e94f266
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -11,6 +11,8 @@
to fail (LP: #1842250) to fail (LP: #1842250)
- Fix message extraction so that signing in the same pass through the milter - Fix message extraction so that signing in the same pass through the milter
as verifying works correctly as verifying works correctly
- Add debug logging for content type to assist troubleshooting MIME
conversion issues
1.1.0 2019-04-12 1.1.0 2019-04-12
- Add SubDomains option to enable signing for sub-domains (LP: #1811535) - Add SubDomains option to enable signing for sub-domains (LP: #1811535)
+5
View File
@@ -126,6 +126,11 @@ class dkimMilter(Milter.Base):
@Milter.noreply @Milter.noreply
def header(self, name, val): def header(self, name, val):
lname = name.lower() lname = name.lower()
if milterconfig.get('Syslog') and milterconfig.get('debugLevel') >= 4:
if lname == 'content-transfer-encoding':
syslog.syslog("content-transfer-encodeing: {0}".format(val))
if lname == 'content-type':
syslog.syslog("content-type: {0}".format(val))
if lname == 'dkim-signature': if lname == 'dkim-signature':
if (milterconfig.get('Syslog') and if (milterconfig.get('Syslog') and
milterconfig.get('debugLevel') >= 1): milterconfig.get('debugLevel') >= 1):