GNU logs - #13328, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#13328: 24.2; Rmail does not properly decode MIME messages containing "From " lines or save such attachments correctly
Resent-From: Mark Lillibridge <mdl@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 01 Jan 2013 21:36:01 +0000
Resent-Message-ID: <handler.13328.B.13570761538007 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 13328
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 13328 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Reply-To: mdl@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.13570761538007
          (code B ref -1); Tue, 01 Jan 2013 21:36:01 +0000
Received: (at submit) by debbugs.gnu.org; 1 Jan 2013 21:35:53 +0000
Received: from localhost ([127.0.0.1]:39360 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Tq9V3-000253-10
	for submit <at> debbugs.gnu.org; Tue, 01 Jan 2013 16:35:53 -0500
Received: from eggs.gnu.org ([208.118.235.92]:53331)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <prvs=671361304e=mdl@HIDDEN>)
	id 1Tq9Uz-00024v-QC
	for submit <at> debbugs.gnu.org; Tue, 01 Jan 2013 16:35:51 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <prvs=671361304e=mdl@HIDDEN>)
	id 1Tq9Tf-0000Lz-Cm
	for submit <at> debbugs.gnu.org; Tue, 01 Jan 2013 16:34:32 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED,
	T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:51868)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=671361304e=mdl@HIDDEN>)
	id 1Tq9Tf-0000Lq-9Y
	for submit <at> debbugs.gnu.org; Tue, 01 Jan 2013 16:34:27 -0500
Received: from eggs.gnu.org ([208.118.235.92]:36437)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=671361304e=mdl@HIDDEN>)
	id 1Tq9TZ-0008Nd-NG
	for bug-gnu-emacs@HIDDEN; Tue, 01 Jan 2013 16:34:27 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <prvs=671361304e=mdl@HIDDEN>)
	id 1Tq9TU-0000Gk-UX
	for bug-gnu-emacs@HIDDEN; Tue, 01 Jan 2013 16:34:21 -0500
Received: from alum-mailsec-scanner-5.mit.edu ([18.7.68.17]:42158)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <prvs=671361304e=mdl@HIDDEN>)
	id 1Tq9TU-0000GR-Nq
	for bug-gnu-emacs@HIDDEN; Tue, 01 Jan 2013 16:34:16 -0500
X-AuditID: 12074411-b7fa36d0000008cc-cf-50e356572828
Received: from outgoing-alum.mit.edu (OUTGOING-ALUM.MIT.EDU [18.7.68.33])
	by alum-mailsec-scanner-5.mit.edu (Symantec Messaging Gateway) with
	SMTP id 86.C5.02252.75653E05; Tue,  1 Jan 2013 16:34:15 -0500 (EST)
Received: from foil.strangled.net (c-67-188-235-212.hsd1.ca.comcast.net
	[67.188.235.212]) (authenticated bits=0)
	(User authenticated as mdl@HIDDEN)
	by outgoing-alum.mit.edu (8.13.8/8.12.4) with ESMTP id r01LYDSr004320
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);
	Tue, 1 Jan 2013 16:34:14 -0500
From: Mark Lillibridge <mdl@HIDDEN>
Date: Tue, 01 Jan 2013 13:34:11 -0800
Message-ID: <8738ykvb8s.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrLIsWRmVeSWpSXmKPExsUixO6iqBse9jjA4OZ5ZYvvB6ospn48w+bA
	5PH3/Qcmj7ZpZgFMUdw2SYklZcGZ6Xn6dgncGSePtLMXnLGuWHh6O2sD4xajLkZODgkBE4kZ
	H58wQthiEhfurWfrYuTiEBK4zCjRuukolHOFSeLkij1gVWwCmhLTn31nB7FFBCQlvt5pZQWx
	hQXKJVa8+sQMYgsJSEksXXQCrIZFQFXiQctXsDivgL7E/pXH2SFsQYmTM5+wgNjMAhISB1+8
	YJ7AyDMLSWoWktQCRqZVjHKJOaW5urmJmTnFqcm6xcmJeXmpRbqmermZJXqpKaWbGCEBI7iD
	ccZJuUOMAhyMSjy8t/UfBwixJpYVV+YeYpTkYFIS5U1wAwrxJeWnVGYkFmfEF5XmpBYfYpTg
	YFYS4S3+8ihAiDclsbIqtSgfJiXNwaIkzsu3RN1PSCA9sSQ1OzW1ILUIJivDwaEkwbsjFGio
	YFFqempFWmZOCUKaiYMTZDiXlEhxal5KalFiaUlGPChm4ouBUQOS4gHaOwGknbe4IDEXKArR
	eorRmOPXyptPGTlOvr3zlFGIJS8/L1VKnLcbpFQApDSjNA9uESxVvGIUB/pbmHcrSBUPMM3A
	zXsFtIoJaJUWwwOQVSWJCCmpBkb3N0Z5+6RMtKZE97T83Pb6vcehRXeUpscWfKtc5c2cM9fm
	0W2VydtyEz71lmXtOT5b/pAJzzt+gyiXs5NDIj9z5mxjnf1Uf83def/qM1z33X8ePuGhpPnl
	BXvqVv2d6+ywsGDunYf7zUrvrmfpWiH7KHdJxlyV1Xe37ubcc0zklpN4DUfyNc/NSizFGYmG
	WsxFxYkApgdk+/ACAAA=
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -6.2 (------)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.2 (------)


[|'s added to quote From lines]

    Run Rmail (emacs -q) on the following mbox file (remove |'s at line
start first):

|From mdl  Wed Oct 26 10:18:58 2011
|X-RMAIL-ATTRIBUTES: --EF----
|X-RMAIL-KEYWORDS: *
|X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED,
|	RP_MATCHES_RCVD autolearn=unavailable version=3.3.1
|From: Mark Lillibridge <mark.lillibridge@HIDDEN>
|To: <bug-gnu-emacs@HIDDEN>
|Subject: 23.3; rmail-edit-current-message adds extra '>'s to Froms...
|Date: Sat, 22 Oct 2011 12:05:57 -0700
|Reply-To: <mark.lillibridge@HIDDEN>
|
|
|Start with a Rmail message (this one will do) not containing MIME that
|contains lines like the following:
|
|>From level 1
|>>From level 2
|>>>From level 3
|
|From mdl  Tue Jan  1 12:27:17 2013
|Delivered-To: lillibridge@HIDDEN
|Received: from gmail-pop.l.google.com [74.125.25.108]
|	by foil.strangled.net with POP3 (fetchmail-6.3.18)
|	for <mdl@localhost> (single-drop); Tue, 01 Jan 2013 12:27:17 -0800 (PST)
|Received: by 10.49.49.9 with SMTP id q9csp680843qen;
|        Tue, 1 Jan 2013 12:27:08 -0800 (PST)
|X-Received: by 10.52.69.201 with SMTP id g9mr59443696vdu.98.1357072028236;
|        Tue, 01 Jan 2013 12:27:08 -0800 (PST)
|Return-Path: <mark.lillibridge@HIDDEN>
|Received: from alum-mailsec-relay-12.mit.edu (ALUM-MAILSEC-RELAY-12.MIT.EDU. [18.7.68.32])
|        by mx.google.com with ESMTPS id o8si46143160vdv.77.2013.01.01.12.27.08
|        (version=TLSv1/SSLv3 cipher=OTHER);
|        Tue, 01 Jan 2013 12:27:08 -0800 (PST)
|Received: from alum-mailsec-scanner-7.mit.edu (ALUM-MAILSEC-SCANNER-7.MIT.EDU [18.7.68.19])
|	by alum-mailsec-relay-12.mit.edu (8.13.8/8.12.8) with ESMTP id r01KR7kv027035
|	for <mdl@HIDDEN>; Tue, 1 Jan 2013 15:27:07 -0500
|Received: from madara.hpl.hp.com (madara.hpl.hp.com [192.6.19.124])
|	by alum-mailsec-scanner-7.mit.edu (Symantec Messaging Gateway) with SMTP id A5.53.02235.B9643E05; Tue,  1 Jan 2013 15:27:07 -0500 (EST)
|Received: from postal.hpl.hp.com (postal.hpl.hp.com [15.25.115.25])
|	by madara.hpl.hp.com (8.14.4/8.14.4/HPL-PA Relay) with ESMTP id r01KR5Ae021394
|	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
|	for <mdl@HIDDEN>; Tue, 1 Jan 2013 12:27:06 -0800
|Received: from build-debian-1.u.hpl.hp.com (build-debian-1.u.hpl.hp.com [15.8.240.3])
|	by postal.hpl.hp.com (8.14.3/8.14.3/HPL-PA Hub) with ESMTP id r01KR4Df022085;
|	Tue, 1 Jan 2013 12:27:04 -0800
|From: Mark Lillibridge <mark.lillibridge@HIDDEN>
|To: mdl@HIDDEN
|Subject: test message containing From's in an attachment
|Reply-to: mark.lillibridge@HIDDEN
|Date: Tue, 01 Jan 2013 12:27:04 -0800
|Message-ID: <qmhip7gmyxz.fsf@HIDDEN>
|MIME-Version: 1.0
|Content-Type: text/plain
|Content-Disposition: attachment; filename=froms.txt
|X-RMAIL-ATTRIBUTES: ------U-
|
|>From level 1
|>>From level 2
|>>>From level 3
|
|From mdl  Tue Jan  1 13:04:30 2013
|Delivered-To: lillibridge@HIDDEN
|Received: from gmail-pop.l.google.com [74.125.25.108]
|	by foil.strangled.net with POP3 (fetchmail-6.3.18)
|	for <mdl@localhost> (single-drop); Tue, 01 Jan 2013 13:04:30 -0800 (PST)
|Received: by 10.49.49.9 with SMTP id q9csp681694qen;
|        Tue, 1 Jan 2013 13:04:13 -0800 (PST)
|X-Received: by 10.52.75.100 with SMTP id b4mr59369212vdw.52.1357074253041;
|        Tue, 01 Jan 2013 13:04:13 -0800 (PST)
|Return-Path: <mark.lillibridge@HIDDEN>
|Received: from alum-mailsec-relay-12.mit.edu (ALUM-MAILSEC-RELAY-12.MIT.EDU. [18.7.68.32])
|        by mx.google.com with ESMTPS id u1si24918746vdh.137.2013.01.01.13.04.12
|        (version=TLSv1/SSLv3 cipher=OTHER);
|        Tue, 01 Jan 2013 13:04:13 -0800 (PST)
|Received: from alum-mailsec-scanner-3.mit.edu (ALUM-MAILSEC-SCANNER-3.MIT.EDU [18.7.68.14])
|	by alum-mailsec-relay-12.mit.edu (8.13.8/8.12.8) with ESMTP id r01L47Pu030367
|	for <mdl@HIDDEN>; Tue, 1 Jan 2013 16:04:12 -0500
|Authentication-Results: symauth.service.identifier
|Received: from madara.hpl.hp.com (madara.hpl.hp.com [192.6.19.124])
|	by alum-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP id E2.ED.02222.B4F43E05; Tue,  1 Jan 2013 16:04:12 -0500 (EST)
|Received: from masterns.hpl.hp.com (masterns.hpl.hp.com [15.0.48.4])
|	by madara.hpl.hp.com (8.14.4/8.14.4/HPL-PA Relay) with ESMTP id r01L4Auq022776
|	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
|	for <mdl@HIDDEN>; Tue, 1 Jan 2013 13:04:10 -0800
|Received: from build-debian-1.u.hpl.hp.com (build-debian-1.u.hpl.hp.com [15.8.240.3])
|	by masterns.hpl.hp.com (8.14.3/8.14.3/HPL-PA Hub) with ESMTP id r01L47j3018514;
|	Tue, 1 Jan 2013 13:04:08 -0800
|From: Mark Lillibridge <mark.lillibridge@HIDDEN>
|To: mdl@HIDDEN
|Subject: test message containing From's in an attachment
|Reply-to: mark.lillibridge@HIDDEN
|Date: Tue, 01 Jan 2013 13:04:07 -0800
|Message-ID: <qmhhan0mx88.fsf@HIDDEN>
|MIME-Version: 1.0
|Content-Type: multipart/mixed; boundary="=-=-="
|X-RMAIL-ATTRIBUTES: --------
|
|--=-=-=
|Content-Type: text/plain
|
|
|body part
|
|
|--=-=-=
|Content-Type: text/plain
|Content-Disposition: attachment; filename=froms.txt
|
|>From level 1
|>>From level 2
|>>>From level 3
|
|--=-=-=--
|

    The result should be 3 messages, the first message (non-MIME) of
which looks like:

|X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED,
|	RP_MATCHES_RCVD autolearn=unavailable version=3.3.1
|From: Mark Lillibridge <mark.lillibridge@HIDDEN>
|To: <bug-gnu-emacs@HIDDEN>
|Subject: 23.3; rmail-edit-current-message adds extra '>'s to Froms...
|Date: Sat, 22 Oct 2011 12:05:57 -0700
|Reply-To: <mark.lillibridge@HIDDEN>
|
|
|Start with a Rmail message (this one will do) not containing MIME that
|contains lines like the following:
|
|From level 1
|>From level 2
|>>From level 3
|

This is properly decoded assuming mboxrd except for the extra blank line
at the end (bug #10080).  The second message, however, is incorrectly
decoded (toggle the show to see the froms.txt contents):

|From: Mark Lillibridge <mark.lillibridge@HIDDEN>
|To: mdl@HIDDEN
|Subject: test message containing From's in an attachment
|Reply-to: mark.lillibridge@HIDDEN
|Date: Tue, 01 Jan 2013 12:27:04 -0800
|Content-Type: text/plain
|Content-Disposition: attachment; filename=froms.txt
|
|
|[text/plain Hide Save:froms.txt (46B)]
|
|>From level 1
|>>From level 2
|>>>From level 3
|

The From lines should look identical to the first message.  The third
message demonstrates this problem with a non-in-line attachment:

|Authentication-Results: symauth.service.identifier
|From: Mark Lillibridge <mark.lillibridge@HIDDEN>
|To: mdl@HIDDEN
|Subject: test message containing From's in an attachment
|Reply-to: mark.lillibridge@HIDDEN
|Date: Tue, 01 Jan 2013 13:04:07 -0800
|Content-Type: multipart/mixed; boundary="=-=-="
|
|
|[1:text/plain Hide]
|
|
|body part
|
|
|[2:text/plain Hide Save:froms.txt (45B)]
|
|>From level 1
|>>From level 2
|>>>From level 3


    If I understand the resolution of bug 6574 correctly, it added a
variable for switching between mboxrd and mboxo (a broken but common
variant).  For reference, with mboxo all three sets of From lines should
read:

|From level 1
|>>From level 2
|>>>From level 3


    Saving one of the attachments gives incorrect results as well so
that functionality doesn't work correctly either:

froms.txt as saved:
|>From level 1
|>>From level 2
|>>>From level 3

- Mark




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.428 (Entity 5.428)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: mdl@HIDDEN
Subject: bug#13328: Acknowledgement (24.2; Rmail does not properly decode
 MIME messages containing "From " lines or save such attachments correctly)
Message-ID: <handler.13328.B.13570761538007.ack <at> debbugs.gnu.org>
References: <8738ykvb8s.fsf@HIDDEN>
X-Gnu-PR-Message: ack 13328
X-Gnu-PR-Package: emacs
Reply-To: 13328 <at> debbugs.gnu.org
Date: Tue, 01 Jan 2013 21:36:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 13328 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
13328: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D13328
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems



Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.