From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 10260 invoked from network); 24 Jun 2021 19:12:33 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Jun 2021 19:12:33 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1624561953; b=tvx6QVW2gSAJZ1RaCEuUBLUJ/pZ0CTmXuJnkTC1R0/hjSfvD7QHOUwmgf24EAYCAJvHIymw6Jc Hl07peI2I3k104SwRZWmWkOxGUV7MDrt4I9Z/G/oGbxyrvvJpBmYNiCg36KSGOA/FfjMggfiQc gVduNqLK+i8cXPAIXbb6s3H3AxmpnZGjrkIR7QysauSH4XQPsjOTE4vrDtunDS4pI6UyuKgJio trPC65sMjSZEG74gtxYa+fqCOZ+IfZ9paAilOwIXvbLmwx0mNCvd1kq8uScEomYCdlJApPKf9b gHgIIvlBEpgJmUo95bX+EzyCt4LigbmTaeCYwqiw8iRhFQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (wout1-smtp.messagingengine.com) smtp.remote-ip=64.147.123.24; dkim=pass header.d=daniel.shahaf.name header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm3 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1624561953; bh=PQcjfBWXO8Qy+UogzyB0aji37AGZ9dveQa/v7Xmv7Io=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:To:From:Date:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=GTMQUKfOJ8dp4ZkVMfYqkZ+QGutFvUz+S5S3xvwqSxshAL+RGi785xOo0gEz4gESjKQZGnGAff UJBMMx8LQD9qqC9gQjgMt2lnOvP20Ri/RxqZe7ygi4lV+s4566b//k7Qqn6i74B4TM97+yimSJ LiJs6h6/J8lGJRH3AgUT0izqjsgTFZueJqy1fSvOK+8inDU7bHS5RnAuQW5Lo881F/7MDsHhEG hzKxxXBC2H4Yh2i63terksEvqqMdMPkJwMHGD1QQMntsOaxG9Yod+yHkUZUM5ZpoFwCD622jrI diWO9PnersZZq9voM5gWwRm6NsZZ7ncPhO3LJbQhnYNQ1g==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=dL7oSPXvlwUJ2iQQgBAyiEDLiBA3V5V38u1k+FO70UA=; b=jd0opIbdwFwRaQhunDEuy/GXeY TVUOVb884N2lAKp+zq5viHvc1bzcPJb7Ij4f4yi9IXdZR7CYwObk2E+G+bL948zWJtReaS8qbtRtj fI/HvoerNkgy8JURO1uuJSc1g6naNM2xNR+AT3ADa3yJagReFmj3zO++4pgwNUiTP15YJX4MAJhWj 8qmpgg6Zmrp7wvghcFBcenghPAmacWynmD5XED9oEjElW7bN3xXMROQ9LG3KuQllLiC96Rjp9P8pt PgrzbaObdcKDckWIc0Wyb+71PkMYpZCVGVQ2VFnv2Y5VowMroPaFbPIJinKDZ+6NRUbecZCN27qHG L07psbPg==; Received: from authenticated user by zero.zsh.org with local id 1lwUm8-0003UY-LI; Thu, 24 Jun 2021 19:12:32 +0000 Authentication-Results: zsh.org; iprev=pass (wout1-smtp.messagingengine.com) smtp.remote-ip=64.147.123.24; dkim=pass header.d=daniel.shahaf.name header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm3 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:40413) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lwUlc-0003Ay-8i; Thu, 24 Jun 2021 19:12:01 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id D8C9E320024A; Thu, 24 Jun 2021 15:11:58 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 24 Jun 2021 15:11:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:subject:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; s=fm3; bh=dL7oSPXvlwUJ2iQQgBAyiEDLiBA3V5V38u1k+FO7 0UA=; b=oy4AWvugqBbDo+4vn/JJucMVkxn9fppuZHRFRllqxxx3ZT86UcJVKsvU B5sFpl3aIay9IWq+7aPkgt09BH1Yohx8n6fSchUCU+JFMLvYgwH4SNuJdWGr8eFG jeLQnGZbNh9K0Cv/0sGBBD+VBP7mT5NXIyry2feB5ER0sC2uDP++U2+CeUiGslAE hjaQ3CZuK4gA4aX9ujESyZnTaKcgDCvfSQ4Aeg6fMUqoiXVdwr5SHvWKFoeRhH3s GQ27i+/nnJ3qAujIeAwelN2sRdNDrlF74zmHqssJRykgGttWC7c4GZOfQBnOt7iW 89kKKXJS8eD/fgULruWpVmScg2ec1w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=dL7oSPXvlwUJ2iQQgBAyiEDLiBA3V5V38u1k+FO70 UA=; b=aPkt4Apvi43oEttGf4a2sYf7//FD94L9E7tGvRVf4XyRh1hCDFsdH3bpZ xs7jXTA3U/1fYEul6/hBSw7f7IIkNC5MgH4nxhymPFqNZkCZ0iA4kn7MB07BfbIv PM3ZISHRV65Fg92FigJDWjmkMnu9xqSBbt3/myzGkxIwO3y0SJ/BvI6De0fXpQr/ FOIeoqt7MNSSUnQ4lus+EuH0zjJwc85F6o2Q4KKqlEtpRF70fSI+vd3RZiYfdnwW RsWlYTVl1POKHPT/WDc5HVtQUuvJUX7TOyUld+cCrARXsgwcGeBiVXJpbAMrCNTG 54emDsAENUb/agOD2pTejs1cRJdUA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeeghedgudefgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtugfgjggfse htkedttddtreejnecuhfhrohhmpeffrghnihgvlhcuufhhrghhrghfuceougdrshesuggr nhhivghlrdhshhgrhhgrfhdrnhgrmhgvqeenucggtffrrghtthgvrhhnpedugeegtdegle ffleelveduteetkeefteetffekffduvdevvedvieejhfffuedvueenucffohhmrghinhep iihshhdrohhrghdpvhhinhgtudejrdhnvghtnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepugdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgr mhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 24 Jun 2021 15:11:58 -0400 (EDT) Received: by tarpaulin.shahaf.local2 (Postfix, from userid 1005) id 4G9qWJ1XZKz4fb; Thu, 24 Jun 2021 19:11:56 +0000 (UTC) Date: Thu, 24 Jun 2021 19:11:56 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: Re: archived messages with "From " get truncated Message-ID: <20210624191156.GC16386@tarpaulin.shahaf.local2> References: <20210624083612.GA170692@zira.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210624083612.GA170692@zira.vinc17.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Seq: 49116 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Vincent Lefevre wrote on Thu, Jun 24, 2021 at 10:36:12 +0200: > Below is a message that was sent by Stephane to workers. > It has been archived here: > > https://www.zsh.org/mla/workers/2021/msg01272.html > > but got truncated just before a line starting with "From ". > It seems that the mail archive software is buggy, thinking > that this starts a new mail message. The problem might be either in the mailing list software or in how we invoke it. We invoke mhonarc as follows: 134 /usr/local/bin/mhonarc \ 135 -quiet \ 136 -definevar listlocalpartsansprefix=${listlocalpart#zsh-} \ 137 -title "${title}" \ 138 -ttitle "${title}" \ 139 -tlevels 9999 \ 140 -rcfile /usr/local/www/mhonarc.zsh \ 141 -add \ 142 -- "$munged_tmpfile" \ 143 || exit EX_UNAVAILABLE Here, ${munged_tmpfile} is a file that was created by «() { munged_tmpfile=$1; cat > $munged_tmpfile } =(:)», the whole thing being invoked by Exim using a «"| /path/to/script"» target in /etc/aliases. (The "munged" terminoilogy is because there's also a «perl -pi -E 's/^X-Seq: …/…/ if (1../^$/)'» in there.) Does anyone happen to see off the top of their heads what we're doing wrong? We still have the original message and can regenerate the archives once we've fixed the intake problem. mhonarc v2.6.24. Thanks for the report, Vincent. Daniel > In the archives, there is a risk that this message gets truncated > in the forwarded message below, for the same reason. For those who > read the archive, one has, with quotes to avoid the truncation: > > [...] > > Why would one write print foo >&- in the first place, other than > > to check whether print reports error or not (and in that regard, > > the behaviour is very misleading) > > > > From looking at the history, it looks more like: > > > > 1990 (1.0) echo ignores write failures (by design or not). > [...] > > ----- Forwarded message from Stephane Chazelas ----- > > Date: Wed, 9 Jun 2021 19:16:17 +0100 > From: Stephane Chazelas > To: Bart Schaefer > Cc: Zsh hackers list > Subject: Re: [BUG] builtin echo doesn't check write error > > 2021-06-09 09:13:42 -0700, Bart Schaefer: > [...] > > My (possibly poor) recollection is that this was made this way in part > > for ports to environments that don't have a /dev/null device > > While that sounds like a very plausible reason for the original > behaviour whereby "print" would not report any write error, > that doesn't really tie up with the current behaviour where > the error is supressed only when print/echo's stdout is > explicitly closed. > > Why would one write print foo >&- in the first place, other than > to check whether print reports error or not (and in that regard, > the behaviour is very misleading) > > From looking at the history, it looks more like: > > 1990 (1.0) echo ignores write failures (by design or not). > 1999 workers/9129 Peter writes the "print foo >&-" succeeds, no > error test case, just documenting the actual behaviour of > print ignoring errors (here using >&- as the easiest way to ⋮ > > ----- End of forwarded message ----- > > -- > Vincent Lefèvre - Web: > 100% accessible validated (X)HTML - Blog: > Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) >