Re: [Tools-discuss] double new lines in drafts sent via e-mail
stanislav shalunov <shalunov@internet2.edu> Mon, 25 October 2004 22:02 UTC
Received: from ietf-mx.ietf.org (ietf-mx.ietf.org [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA23033; Mon, 25 Oct 2004 18:02:16 -0400 (EDT)
Received: from megatron.ietf.org ([132.151.6.71]) by ietf-mx.ietf.org with esmtp (Exim 4.33) id 1CMD8U-00052X-Ss; Mon, 25 Oct 2004 18:16:19 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=megatron.ietf.org) by megatron.ietf.org with esmtp (Exim 4.32) id 1CMBS3-0001QU-Ty; Mon, 25 Oct 2004 16:28:23 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by megatron.ietf.org with esmtp (Exim 4.32) id 1CMB0w-0004Ee-BR for tools-discuss@megatron.ietf.org; Mon, 25 Oct 2004 16:00:22 -0400
Received: from ietf-mx.ietf.org (ietf-mx.ietf.org [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA28897 for <tools-discuss@ietf.org>; Mon, 25 Oct 2004 16:00:20 -0400 (EDT)
Received: from basie.internet2.edu ([207.75.164.22]) by ietf-mx.ietf.org with esmtp (Exim 4.33) id 1CMBES-0006Jl-1t for tools-discuss@ietf.org; Mon, 25 Oct 2004 16:14:20 -0400
Received: from localhost (unknown [127.0.0.1]) by basie.internet2.edu (Postfix) with ESMTP id D7ABD1CD88E for <tools-discuss@ietf.org>; Mon, 25 Oct 2004 16:00:19 -0400 (EDT)
Received: from basie.internet2.edu ([127.0.0.1]) by localhost (basie.internet2.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17534-04 for <tools-discuss@ietf.org>; Mon, 25 Oct 2004 16:00:19 -0400 (EDT)
Received: from localhost (unknown [127.0.0.1]) by basie.internet2.edu (Postfix) with ESMTP id BB3521CD884 for <tools-discuss@ietf.org>; Mon, 25 Oct 2004 16:00:19 -0400 (EDT)
To: IETF TOOLS discussion <tools-discuss@ietf.org>
Subject: Re: [Tools-discuss] double new lines in drafts sent via e-mail
References: <Pine.LNX.4.44.0410251241530.8420-100000@netcore.fi> <opsgfmfuybiz3etf0c9082f7@pail.measurement-factory.com>
From: stanislav shalunov <shalunov@internet2.edu>
Date: Mon, 25 Oct 2004 16:00:39 -0400
In-Reply-To: <opsgfmfuybiz3etf0c9082f7@pail.measurement-factory.com>
Message-ID: <86llduzhy0.fsf@abel.internet2.edu>
Lines: 67
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Virus-Scanned: by mail.internet2.edu virus scanner
X-Spam-Score: 0.0 (/)
X-Scan-Signature: c0bedb65cce30976f0bf60a0a39edea4
X-BeenThere: tools-discuss@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: IETF Tools Discussion <tools-discuss.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/tools-discuss>
List-Post: <mailto:tools-discuss@ietf.org>
List-Help: <mailto:tools-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=subscribe>
Sender: tools-discuss-bounces@ietf.org
Errors-To: tools-discuss-bounces@ietf.org
X-Spam-Score: 0.0 (/)
X-Scan-Signature: d0bdc596f8dd1c226c458f0b4df27a88
"Alex Rousskov" <rousskov@measurement-factory.com> writes: > I am not sure why extra line breaks appear in the case quoted > below. Using Pine, I have never had that problem with > attachments. Perhaps others know what is going on here. This is > something we may want to check for the email interface of the ID > submission tool... Messages from john.loughney@nokia.com seem to be generated with Microsoft Exchange V6.0.6603.0. If they are stored in DOS format locally, the DOS newlines are probably encoded by the client *if* the draft is sent in base64 rather than quoted-printable (or with no protection). At this point, draft-savola-ipr-lastcall-04.txt is a deletion notice, so it's difficult to see what was going on. I don't have a message with an attachment from John Loughney, either. I think making the submission tool convert any newlines (\n, \r\n, \r, and \n\r) into \n would not be a bad idea. This applies equally to web and email submissions. (In fact, it might even be more important for web submissions, as unprotected email takes care of canonicalizing new lines -- except when sent through base64.) Conceptually, #include <stdio.h> enum state_enum {NORM, N, R, RN}; typedef enum state_enum state_t; #define NORMAL do { \ state = NORM; \ putchar('\n'); \ } while (0) int main() { int c; /* Current character. */ state_t state; state = NORM; while ((c = getchar()) != EOF) switch (state) { case NORM: if (c == '\n') state = N; else if (c == '\r') state = R; else putchar(c); break; case N: NORMAL; if (c != '\r') putchar(c); break; case R: NORMAL; if (c != '\n') putchar(c); break; } if (state != NORM) NORMAL; exit(0); } -- Stanislav Shalunov http://www.internet2.edu/~shalunov/ Just my 0.086g of Ag. _______________________________________________ Tools-discuss mailing list Tools-discuss@ietf.org https://www1.ietf.org/mailman/listinfo/tools-discuss
- Re: [Tools-discuss] double new lines in drafts se… stanislav shalunov
- [Tools-discuss] double new lines in drafts sent v… Alex Rousskov
- Re: [Tools-discuss] double new lines in drafts se… Alex Rousskov
- Re: [Tools-discuss] double new lines in drafts se… Pekka Savola
- RE: [Tools-discuss] double new lines in drafts se… Larry Masinter
- Re: [Tools-discuss] double new lines in drafts se… Rob Austein
- Re: [Tools-discuss] double new lines in drafts se… Julian Reschke
- Re: [Tools-discuss] double new lines in drafts se… Simon Leinen
- Re: [Tools-discuss] double new lines in drafts se… Alex Rousskov
- Re: [Tools-discuss] double new lines in drafts se… stanislav shalunov
- Re: [Tools-discuss] double new lines in drafts se… stanislav shalunov
- Re: [Tools-discuss] double new lines in drafts se… stanislav shalunov
- Re: [Tools-discuss] double new lines in drafts se… Julian Reschke
- Re: [Tools-discuss] double new lines in drafts se… stanislav shalunov
- Re: [Tools-discuss] double new lines in drafts se… stanislav shalunov
- Re: [Tools-discuss] double new lines in drafts se… Alex Rousskov