From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/37602 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: recent message.el quote changes. Date: Wed, 08 Aug 2001 12:59:32 +0100 Message-ID: References: <87y9ovshio.fsf@deneb.enyo.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035172986 14693 80.91.224.250 (21 Oct 2002 04:03:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:03:06 +0000 (UTC) Cc: ding@gnus.org Return-Path: Return-Path: Original-Received: (qmail 27306 invoked from network); 8 Aug 2001 11:58:25 -0000 Original-Received: from dolk.extundo.com (195.42.214.242) by gnus.org with SMTP; 8 Aug 2001 11:58:25 -0000 Original-Received: from barbar.josefsson.org (slipsten.extundo.com [195.42.214.241]) (authenticated) by dolk.extundo.com (8.11.3/8.11.3) with ESMTP id f78BwRw06869; Wed, 8 Aug 2001 13:58:28 +0200 Original-To: Florian Weimer In-Reply-To: <87y9ovshio.fsf@deneb.enyo.de> (Florian Weimer's message of "Tue, 07 Aug 2001 23:10:39 +0200") Mail-Copies-To: nobody User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.104 Original-Lines: 34 Xref: main.gmane.org gmane.emacs.gnus.general:37602 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:37602 Florian Weimer writes: >> ,---- >> | >I think some servers MIME parse messages and store them in another >> | >equivalent format somehow, and when clients requests RFC822-messages >> | >it reconstructs MIME delimiters and MIME headers. All the >> | information >> | >is there, but since the signature was calculated over the first MIME >> | >delimiters/headers the reconstruction often breaks the signature. >> `---- > > I think I'm going to write a comb quoting detector and restorer. Maybe changing the current algorithm to assume that a line is quoted only if preceeded by blank line into a negative; "a line is not considered quoted if it starts with > and the next character is [0-9]"? I don't think words beginning with ">" are that common that we need to assume that lines beginning with such words need to be preceeded by blank lines to be regarded as quoted. (Five points for anyone who managed to follow that logic.) I'm not sure I like the blank-lines-preceed-quoted-lines assumption, there's no specification I know of that suggests that. I'm starting to lean towards my first patch, I'd rather have a simple algorithm that fails sometimes than a complicated algorithm that fails sometimes. As it stands, the simple algorithm fails less frequent than the complicated as well. > BTW, does Outlook always use '>' and never '> '? Maybe that approach is simpler/better, and it is OK with both usefor and RFC2646. But it doesn't look good.