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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6828 invoked from network); 24 Jun 2021 23:37:11 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Jun 2021 23:37:11 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1624577831; b=sjHcpnbABlnX3D1pSyknjXMXzlt9Jc6BT91j1fpl2vPQBXXg3ylh+63XeMuzTBCHGnWLvkRHIA mjcWbaYRh49rltBH7ymT7CPlrbX+B3lFULUs4X18xXXWHqr+Bid7voKitmqx2Xc6S7Cnfs6LOn J2ztjyb8bbcK/KosznDgPzdZedLNQaqazwQRz2PJpiINHxnVXpvpo/RMIHQgz1r0ELQ6I9LYQF FRioDP7k0iqxwmAKDnABs4b6LV4Zov8UYJepWIyv+wm3L0IO+m3D/r0AwA2Om6SiYNrbdpCHkt CNbnnuuyWHm2QbsOVbT+8HOxW4rYzPvN1Xa7OhTUzW6wLA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1624577831; bh=x/0RpnQJWntsNCs1cgcbUIo8yxUyuE0ximYSwMmL9GU=; 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; b=NUedK51priIZUnFP1Ud3iso9OYGreOUqFZVCu+J58ullyprbKqV8+kdv65ekyb/Q0uNGTyR9GK PRIZOXoHodT9VrsIUd3Q3utsF+DqhZ8o9DxzYQE2H2dJZC9tUlP+VRVyqFhZYJwO8PK1c4jawG kWAelN1IRwb7S+0uyxk6ILcIWZpuSDRSeexa9ROmFOXWzc5S/sqm1ct9oVmjnNb9iUDVbjhFOo CmCQ/0ZWbrhtHPpS9ufHCOMgEAnxwUW6DUC2PXTOC80njzqae/g7cksTXBxCEvwiX9c4RvVEwC kwDk7CzOlc3eRJillwPptslyIo+TqlNPZdgwQPsizvTGIA==; 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=66Cl+/rnmqDLow1RrasuWFJLVe8v/StAmAhekLFJsl4=; b=pydaRf+L6ggF1ahnWICzAXlX7v S7riiQf2FwO1+axtR9vbCgbHYVACA27VU16wBH1LnxaD7n5M+OOP6ZDeStuylZsRONOlpwZfYWiGG x/QEOIEQX+Fk0A4Oftept0I2Z4pe+JkjDyfgkhTYZcEQ0qZQiuTqka5kqybNXlpH6lHfaLj2LpEjn 0Fj3eu0QB2jU2Ea3s/TeCPzGh2JClrieWKK52dFkukZGcFpboGoRu8jB+Ne8jgymQFAdopRj93WQT XWG7/ISCxnINX+wMushoorRRc1zGsmdhlK+VD5ttR8uw8rzrFsImLSpDLdPexZTH7jWNEloE04KbY SZhYLaJw==; Received: from authenticated user by zero.zsh.org with local id 1lwYuF-000GRm-4p; Thu, 24 Jun 2021 23:37:11 +0000 Authentication-Results: zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none Received: from joooj.vinc17.net ([155.133.131.76]:37408) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lwYtg-000G9u-BL; Thu, 24 Jun 2021 23:36:37 +0000 Received: from smtp-zira.vinc17.net (128.119.75.86.rev.sfr.net [86.75.119.128]) by joooj.vinc17.net (Postfix) with ESMTPSA id 4CFDA82; Fri, 25 Jun 2021 01:36:35 +0200 (CEST) Received: by zira.vinc17.org (Postfix, from userid 1000) id AF8C4C238DE; Fri, 25 Jun 2021 01:36:34 +0200 (CEST) Date: Fri, 25 Jun 2021 01:36:34 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: archived messages with "From " get truncated Message-ID: <20210624233634.GA211890@zira.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org References: <20210624083612.GA170692@zira.vinc17.org> <20210624191156.GC16386@tarpaulin.shahaf.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210624191156.GC16386@tarpaulin.shahaf.local2> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.1+10 (5cc548e1) vl-138565 (2021-06-20) X-Seq: 49121 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: On 2021-06-24 19:11:56 +0000, Daniel Shahaf wrote: > 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? If I understand correctly, $munged_tmpfile is a *single* message. Then, according to the mhonarc documentation https://www.mhonarc.org/MHonArc/doc/quickstart.html#adding you must not use the "-add" option, but "-single". Alternatively, you may use "-add" for a single message, but the message must be read from the standard input instead of being a filename argument. The examples: (1) mhonarc -add /mailfolder (2) mhonarc -add < single.msg (3) cat single.msg | mhonarc -add (4) mhonarc -single < messagefile > file.html (5) mhonarc -single messagefile > file.html The syntax above is case (1), i.e. with a folder. And I suppose that mhonarc regards a line starting with "From " as the beginning of a new mail message from the folder, even if this line has a wrong syntax for such a mail separator. Hence the truncation. Then, I don't know what happens with the remaining part as this would yield an invalid mail message; perhaps it is just discarded. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)