[Remail] [patch v2 02/11] remail: Use existing policy for pipe

Thomas Gleixner tglx at linutronix.de
Sun Jun 18 22:13:43 CEST 2023


No need for a new one.

Signed-off-by: Thomas Gleixner <tglx at linutronix.de>
---
 remail/remaild.py |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- a/remail/remaild.py
+++ b/remail/remaild.py
@@ -380,8 +380,7 @@ import os
         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



More information about the Remail mailing list