GNU bug report logs - #23733
24.5; Emacs sometimes inserts superfluous ">" when sending e-mails

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Markus Triska <triska@HIDDEN>; Keywords: wontfix; dated Wed, 8 Jun 2016 20:58:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) wontfix. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 23733 <at> debbugs.gnu.org:


Received: (at 23733) by debbugs.gnu.org; 9 Jun 2016 17:37:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 09 13:37:35 2016
Received: from localhost ([127.0.0.1]:34888 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bB3tf-0002UH-9T
	for submit <at> debbugs.gnu.org; Thu, 09 Jun 2016 13:37:35 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45766)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1bB3tc-0002U5-QF
 for 23733 <at> debbugs.gnu.org; Thu, 09 Jun 2016 13:37:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1bB3tX-0007FY-1c
 for 23733 <at> debbugs.gnu.org; Thu, 09 Jun 2016 13:37:27 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40120)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1bB3tU-0007Ep-JL; Thu, 09 Jun 2016 13:37:24 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1bB3tR-0007PT-Si; Thu, 09 Jun 2016 13:37:21 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Markus Triska <triska@HIDDEN>
Subject: Re: bug#23733: 24.5;
 Emacs sometimes inserts superfluous ">" when sending e-mails
References: <m2bn3b1jrw.fsf@HIDDEN> <wjporrmagi.fsf@HIDDEN>
 <87lh2e7twl.fsf@HIDDEN>
X-Spook: MARTA Syria clandestine Transportation Security
X-Ran: 'N3K>90R\t.$5Nv;ix.Ius?>|H`.+PjQ1$)aN,]yMV'/&jX4Z1Q,Su^]GN1Y2w}b^@`Q^\
X-Hue: magenta
X-Attribution: GM
Date: Thu, 09 Jun 2016 13:37:21 -0400
In-Reply-To: <87lh2e7twl.fsf@HIDDEN> (Markus Triska's message of "Thu,
 09 Jun 2016 08:34:02 +0200")
Message-ID: <cod1nq2rhq.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -6.4 (------)
X-Debbugs-Envelope-To: 23733
Cc: 23733 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.4 (------)


FWIW I think the behaviour of Emacs in this area is unlikely to change.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23733; Package emacs. Full text available.

Message received at 23733 <at> debbugs.gnu.org:


Received: (at 23733) by debbugs.gnu.org; 9 Jun 2016 06:34:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 09 02:34:06 2016
Received: from localhost ([127.0.0.1]:33285 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bAtXZ-0006zH-Rh
	for submit <at> debbugs.gnu.org; Thu, 09 Jun 2016 02:34:06 -0400
Received: from metalevel.at ([78.46.218.83]:57405)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <triska@HIDDEN>) id 1bAtXY-0006z8-0L
 for 23733 <at> debbugs.gnu.org; Thu, 09 Jun 2016 02:34:04 -0400
Received: by metalevel.at (Postfix, from userid 1000)
 id D0F6CA007F; Thu,  9 Jun 2016 08:34:02 +0200 (CEST)
From: Markus Triska <triska@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
Subject: Re: bug#23733: 24.5;
 Emacs sometimes inserts superfluous ">" when sending e-mails
References: <m2bn3b1jrw.fsf@HIDDEN> <wjporrmagi.fsf@HIDDEN>
Date: Thu, 09 Jun 2016 08:34:02 +0200
In-Reply-To: <wjporrmagi.fsf@HIDDEN> (Glenn Morris's message of
 "Wed, 08 Jun 2016 21:12:45 -0400")
Message-ID: <87lh2e7twl.fsf@HIDDEN>
User-Agent: Emacs/24.4
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 23733
Cc: 23733 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.2 (/)

Glenn Morris <rgm@HIDDEN> writes:

> this is mbox from escaping.  https://en.wikipedia.org/wiki/Mbox

OK, this explains the last occurrence I mentioned, which is the only one
taken from my ~/Mail/sent. But the other occurrences are part of the
mails that were actually sent to the mailing list, and certainly the ">"
should occur in any sent mails only if it was also intended. In other
words, there should be a difference whether I start a paragraph with
"From" or ">From" in terms of what is actually sent as e-mail.

Thank you for looking into this!




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23733; Package emacs. Full text available.

Message received at 23733 <at> debbugs.gnu.org:


Received: (at 23733) by debbugs.gnu.org; 9 Jun 2016 01:13:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 08 21:13:15 2016
Received: from localhost ([127.0.0.1]:33211 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bAoX4-0005uh-Vq
	for submit <at> debbugs.gnu.org; Wed, 08 Jun 2016 21:13:15 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51034)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1bAoX0-0005uR-9y
 for 23733 <at> debbugs.gnu.org; Wed, 08 Jun 2016 21:13:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1bAoWs-00039S-UM
 for 23733 <at> debbugs.gnu.org; Wed, 08 Jun 2016 21:13:04 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54075)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1bAoWd-00032M-7Z; Wed, 08 Jun 2016 21:12:47 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1bAoWb-0001W0-OV; Wed, 08 Jun 2016 21:12:45 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Markus Triska <triska@HIDDEN>
Subject: Re: bug#23733: 24.5;
 Emacs sometimes inserts superfluous ">" when sending e-mails
References: <m2bn3b1jrw.fsf@HIDDEN>
X-Spook: Peking illuminati Islam Abduganievich Karimov Ansar
X-Ran: j81-}jJWR~d#Uq.vUDOP"*xW[=jB1S`D/j`B'5{~Jk6|gsg+H^%-fb"alK~zRGkknQ#CQN
X-Hue: cyan
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Wed, 08 Jun 2016 21:12:45 -0400
In-Reply-To: <m2bn3b1jrw.fsf@HIDDEN> (Markus Triska's message of "Wed,
 08 Jun 2016 22:57:07 +0200")
Message-ID: <wjporrmagi.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -6.4 (------)
X-Debbugs-Envelope-To: 23733
Cc: 23733 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.4 (------)


There's no mystery here, this is mbox from escaping.
https://en.wikipedia.org/wiki/Mbox

I don't think there is a real bug here, though I would not be
surprised to learn that Emacs sometimes leaves >From where strictly
speaking it should put From.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#23733; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 8 Jun 2016 20:57:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 08 16:57:26 2016
Received: from localhost ([127.0.0.1]:33163 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bAkXW-0006fL-4j
	for submit <at> debbugs.gnu.org; Wed, 08 Jun 2016 16:57:26 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55122)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <triska@HIDDEN>) id 1bAkXT-0006f9-Uy
 for submit <at> debbugs.gnu.org; Wed, 08 Jun 2016 16:57:24 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <triska@HIDDEN>) id 1bAkXN-0003qE-Bh
 for submit <at> debbugs.gnu.org; Wed, 08 Jun 2016 16:57:18 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:58440)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <triska@HIDDEN>) id 1bAkXN-0003q9-8b
 for submit <at> debbugs.gnu.org; Wed, 08 Jun 2016 16:57:17 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:46076)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <triska@HIDDEN>) id 1bAkXL-0000mg-OB
 for bug-gnu-emacs@HIDDEN; Wed, 08 Jun 2016 16:57:16 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <triska@HIDDEN>) id 1bAkXH-0003p0-Jk
 for bug-gnu-emacs@HIDDEN; Wed, 08 Jun 2016 16:57:14 -0400
Received: from metalevel.at ([78.46.218.83]:33976)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <triska@HIDDEN>) id 1bAkXH-0003od-DC
 for bug-gnu-emacs@HIDDEN; Wed, 08 Jun 2016 16:57:11 -0400
Received: from dawn.meta (localhost.localdomain [127.0.0.1])
 by metalevel.at (Postfix) with ESMTP id 7A161A00DD
 for <bug-gnu-emacs@HIDDEN>; Wed,  8 Jun 2016 22:57:06 +0200 (CEST)
Received: by dawn.meta (Postfix, from userid 501)
 id 7A1141A31063; Wed,  8 Jun 2016 22:57:07 +0200 (CEST)
From: Markus Triska <triska@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.5; Emacs sometimes inserts superfluous ">" when sending e-mails
Date: Wed, 08 Jun 2016 22:57:07 +0200
Message-ID: <m2bn3b1jrw.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Hi all,

please bear with me. For the first time, I do not have a recipe starting
from emacs -Q. I am trying to narrow down a mistake in Emacs that occurs
extremely rarely, when sending e-mails. In short, the mistake is that
Emacs, under very specific conditions, seems to insert a superfluous ">"
(greater than) character into e-mails before they are sent.

I first noticed the problem in 2008 when reporting two issues:

https://lists.gnu.org/archive/html/bug-gnu-emacs/2008-09/msg00606.html
https://lists.gnu.org/archive/html/bug-gnu-emacs/2008-12/msg00687.html

Please note the characteristic superfluous ">" in front of "From" in
both of these mails. I do not mean in the "From:" header, but within the
actual text of both mails, in particular:

 *) ">From machine B..."
 *) ">From OSX 10.4..."

I am 100% certain that I did not enter these ">" characters.

This issue has also happened to other users:

Example 1 (">From the documentation"):

    https://lists.gnu.org/archive/html/bug-gnu-emacs/2003-03/msg00013.html

Example 2 (">From man page"):

    https://lists.gnu.org/archive/html/bug-gnu-emacs/2013-09/msg00108.html

To find examples of this issue, I have analyzed 116 thousand messages
that were posted to the GNU Emacs bug tracker from 2002 to 2016.

Of these messages, I have restricted the search to those messages that
contained the regexp "User-Agent.*Gnus". There were 35 thousand such
messages. I have done this to limit the search to those messages that
were most likely really sent from within Emacs. There are several
further occurrences of the issue, but I could not tell with such
certainty whether those messages were sent with Emacs itself.

Interestingly this seems to happen only when "From" is used somewhere in
the mail, at the beginning of a line. Then, sometimes Emacs simply turns
"From" to ">From".

And it even gets somewhat stranger: In my ~/Mail/sent file, I have one
more occurrence of the issue:

  ">From what I understand..."

which arose when I posted (Wed, 21 Oct 2015 01:47:22 +0200) to:

   https://debbugs.gnu.org/cgi/bugreport.cgi?bug=21526

but in fact the superfluous ">" does not occur in the message as it is
shown in the tracker. Again, I am 100% certain that I did not manually
enter the ">" in front of "From", yet it appears in ~/Mail/sent.

At this point, it would already be extremely helpful to me if someone
could say "Yes, I also noticed this at some point in time."

If it helps, the value of my mail-user-agent is: message-user-agent,
and send-mail-function is: sendmail-send-it.

Thank you and all the best!
Markus



In GNU Emacs 24.5.1 (x86_64-apple-darwin15.5.0, X toolkit, Xaw scroll bars)
 of 2016-05-30 on mt-imac
Windowing system distributor `The X.Org Foundation', version 11.0.11502000
Configured using:
 `configure --prefix=/opt/local --without-dbus --without-gconf
 --without-libotf --without-m17n-flt --without-gpm --without-gnutls
 --with-xml2 --infodir /opt/local/share/info/emacs
 --with-x-toolkit=lucid --without-xaw3d --without-imagemagick --with-xpm
 --with-jpeg --with-tiff --with-gif --with-png --without-rsvg --with-xft
 'CFLAGS=-pipe -Os -arch x86_64' CPPFLAGS=-I/opt/local/include
 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -lfreetype
 -lfontconfig -Wl,-no_pie -arch x86_64''





Acknowledgement sent to Markus Triska <triska@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#23733; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 9 Jun 2016 17:45:01 UTC

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