mirror of
https://kernel.googlesource.com/pub/scm/linux/kernel/git/tglx/remail.git
synced 2024-12-28 05:20:56 +01:00
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:
parent
f8da9d3278
commit
dac7c0af8d
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue