remail/pipe: Allow UTF-8 for incoming mails

Similar to mails in files, this needs to be explicitly enabled.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
Thomas Gleixner 2019-11-12 23:42:59 +01:00
parent f8da9d3278
commit dac7c0af8d

View file

@ -373,7 +373,8 @@ class remaild(object):
if not self.enabled:
return 1
msg = message_from_file(sys.stdin)
policy = EmailPolicy(utf8=True)
msg = message_from_file(sys.stdin, policy=policy)
return self.process_msg(msg)
# The runner