> The "id" line should start with tab or space. That's how Postfix creates the > line.
And my pipe script killed the blank. Now the Python parser works fine. Thanks very much for your help, Jürgen [('Return-Path', '<webe...@host.my.tld>'), ('X-Original-To', 'maild@my.virtual'), ('Delivered-To', 'ma...@host.my.tld'), ('Received', 'by host.my.tld (Postfix, from userid 1001)\n id D3DFD783; Sun, 21 Nov 2021 19:11:19 +0100 (CET)'), ('To', 'maild@my.virtual'), ('Subject', 's1'), ('Message-Id', '<20211121181119.d3dfd...@host.my.tld>'), ('Date', 'Sun, 21 Nov 2021 19:11:19 +0100 (CET)'), ('From', 'Jürgen Weber <webe...@host.my.tld>')] Am Mi., 24. Nov. 2021 um 00:17 Uhr schrieb Wietse Venema <wie...@porcupine.org>: > > J?rgen Weber: > > From webe...@host.my.tld Sun Nov 21 19:11:19 2021 > > Return-Path: <webe...@host.my.tld> > > X-Original-To: maild@my.virtual > > Delivered-To: ma...@host.my.tld > > Received: by host.my.tld (Postfix, from userid 1001) > > id D3DFD783; Sun, 21 Nov 2021 19:11:19 +0100 (CET) > > The "id" line should start with tab or space. That's how > Postfix creates the line. > > > To: maild@my.virtual > > Subject: s1 > > Message-Id: <20211121181119.d3dfd...@host.my.tld> > > Date: Sun, 21 Nov 2021 19:11:19 +0100 (CET) > > From: J?rgen Weber <webe...@host.my.tld> > > Non-ASCII header text should be encoded with RFC 2o47. > > > Can you prevent Postfix from adding these lines? > > Use egrep. > > If Python's email.Parser can't handle non-ASCII headers, then you > should not use it for real email management. > > Wietse