From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/19489 Path: main.gmane.org!not-for-mail From: Vladimir Volovich Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-summary-repair-multipart (K m) not working in nndoc Date: 02 Dec 1998 22:50:48 +0300 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 X-Trace: main.gmane.org 1035157830 11872 80.91.224.250 (20 Oct 2002 23:50:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:50:30 +0000 (UTC) Return-Path: Original-Received: from gizmo.hpc.uh.edu (gizmo.hpc.uh.edu [129.7.102.31]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id OAA03765 for ; Wed, 2 Dec 1998 14:54:20 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@sina.hpc.uh.edu [129.7.3.5]) by gizmo.hpc.uh.edu (8.9.1/8.9.1) with ESMTP id NAA15913; Wed, 2 Dec 1998 13:53:19 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 02 Dec 1998 13:53:01 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id NAA26994 for ; Wed, 2 Dec 1998 13:52:40 -0600 (CST) Original-Received: from cc.vsu.ru (root@ns.vsu.relarn.ru [194.226.24.1]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id OAA03745 for ; Wed, 2 Dec 1998 14:52:05 -0500 (EST) Original-Received: (from uucp@localhost) by cc.vsu.ru (8.9.1/8.9.1) with UUCP id WAA19735 for ding@gnus.org; Wed, 2 Dec 1998 22:51:45 +0300 Original-Received: (from vvv@localhost) by vvv.vsu.ru (8.8.7/8.8.7) id WAA13520; Wed, 2 Dec 1998 22:50:49 +0300 Original-To: ding@gnus.org In-Reply-To: Lars Magne Ingebrigtsen's message of "01 Dec 1998 23:57:47 +0100" User-Agent: Gnus/5.070059 (Pterodactyl Gnus v0.59) Emacs/20.3 Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 20 Xref: main.gmane.org gmane.emacs.gnus.general:19489 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:19489 "LMI" == Lars Magne Ingebrigtsen writes: >> when i try to `repair' messages in nndoc (after pressing C-d on a >> digest message) i get an error: LMI> Yup. Fix in Pterodactyl Gnus v0.59. Well. The current implementation of gnus-summary-repair-multipart seems to be not 100% safe, because it only looks for "\n--" to find a part boundary. So, it can easily break the message by treating e.g. a signature beginning as a MIME boundary. IMHO, one should at least do something like (looking-at "[\41-\176]+$") [or whatever is an allowed characters for boundary], and also, even better, to make reparing only if there is a line "^--boundary--$", too. I'd also be happy if gnus-summary-repair-multipart could be made `non-destructive', i.e. only `repair' in the memory while viewing, but not replacing the message, so that one could safely put it into, say, message-prepare-hook. Best regards, -- Vladimir.