add line separator support

This commit is contained in:
Dick Marinus
2018-12-23 13:26:05 +01:00
parent 0555cb595d
commit 6bc38aaf9b
6 changed files with 69 additions and 15 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ def main():
#try:
sig = dkim.arc_sign(message, selector, domain, open(privatekeyfile, "rb").read(),
domain + ": none", cv)
domain + ": none", cv, dkim.util.get_linesep(message))
for line in sig:
sys.stdout.write(line)
sys.stdout.write(message)