remail: Use existing policy for pipe

No need for a new one.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
Thomas Gleixner 2023-06-18 18:09:39 +02:00
parent 2cee74a08b
commit c8ac6b5a08

View file

@ -380,8 +380,7 @@ class remaild(object):
if cfgupdate:
return 0
policy = EmailPolicy(utf8=True)
msg = message_from_file(sys.stdin, policy=policy)
msg = message_from_file(sys.stdin, policy=self.policy)
return self.process_msg(msg, 'pipe input')
# The runner