Score:0

Postfix:mail-to-script messages contain extra id and from lines

de flag

I have Postfix (3.6.3) forward mail for a user to a script

maild: "| /usr/local/sbin/mailsave"

The messages have extra From and id lines which break Python's email.Parser

Can you prevent Postfix from adding these lines?

From [email protected]  Sun Nov 21 19:11:19 2021
Return-Path: <[email protected]>
X-Original-To: [email protected]
Delivered-To: [email protected]
Received: by host.my.tld (Postfix, from userid 1001)
id D3DFD783; Sun, 21 Nov 2021 19:11:19 +0100 (CET)
To: [email protected]
Subject: s1
Message-Id: <[email protected]>
Date: Sun, 21 Nov 2021 19:11:19 +0100 (CET)
From: Jürgen Weber <[email protected]>

body

Score:0
de flag

There was a bug in the mailsave script that had removed the blanks before the id line, so the mail parser failed.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.