From c8ac6b5a084c2c497117a86cb79ece14ddb2b776 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Sun, 18 Jun 2023 18:09:39 +0200 Subject: [PATCH] remail: Use existing policy for pipe No need for a new one. Signed-off-by: Thomas Gleixner --- remail/remaild.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/remail/remaild.py b/remail/remaild.py index 3f577cf..2192db9 100644 --- a/remail/remaild.py +++ b/remail/remaild.py @@ -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