GNU bug report logs - #10080
23.3; Rmail shows an extra blank line at the end when displaying a non-MIME message

Previous Next

Package: emacs;

Reported by: mdl <at> alum.mit.edu

Date: Sat, 19 Nov 2011 22:03:02 UTC

Severity: minor

Found in version 23.3

To reply to this bug, email your comments to 10080 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#10080; Package emacs. (Sat, 19 Nov 2011 22:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to mark.lillibridge <at> hp.com:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 19 Nov 2011 22:03:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mark Lillibridge <mark.lillibridge <at> hp.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.3;
	Rmail shows an extra blank line at the end when displaying a non-MIME
	message
Date: Sat, 19 Nov 2011 14:00:28 -0800
    This is easy to reproduce; just send yourself a plain text message
that has no extra blank lines after it.  Incorporate it into Rmail and
notice that it is displayed with an extra blank line.  For example,

> Date: Sat, 19 Nov 2011 12:05:50 -0800
> Subject: no blank lines follow
> From: Mark Lillibridge <lillibridge <at> gmail.com>
> To: mdl <at> alum.mit.edu
> 
> this is the only line
> 

where I have added "> " before each line of the displayed message.  If
you check the underlying mbox file, you'll see that indeed, "this is the
only line" is the last line of that message.  (Remember that messages in
mbox format start with a "From " line and are followed by a blank
separator line that does not count as part of the message.)  This extra
blank line is not displayed for MIME messages

    The fix should be pretty easy; just make sure to check that any
other code that might be relying on the contents of the decoded buffer
(output as seen, edit?) doesn't get broken.

- Mark




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10080; Package emacs. (Tue, 01 Jan 2013 22:13:02 GMT) Full text and rfc822 format available.

Message #8 received at 10080 <at> debbugs.gnu.org (full text, mbox):

From: Mark Lillibridge <mdl <at> alum.mit.edu>
To: 10080 <at> debbugs.gnu.org
Cc: 9521 <at> debbugs.gnu.org
Subject: this bug (#10080) also causes an extra blank line to be appended to
	forwarded messages
Date: Tue, 01 Jan 2013 14:10:46 -0800
[Message part 1 (text/plain, inline)]
For example, when I forward the example message using f I get:

|To: 
|Subject: [mdl <at> alum.mit.edu: no blank lines follow]
|From: Mark Lillibridge <lillibridgem <at> build-debian-1.u.hpl.hp.com>
|--text follows this line--
|
|
|
[Message part 2 (message/rfc822, inline)]

|this is the only line
|
|
[Message part 3 (text/plain, inline)]
Notice the extra blank line at the end of the forwarded message.

    Fixing #9521 properly (switching to forwarding raw instead of
decoded messages) should fix this.  At the moment (post my 9521 patch),
it also appends a blank line to the end of the forwarded message.
 
- Mark

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10080; Package emacs. (Wed, 02 Jun 2021 07:44:01 GMT) Full text and rfc822 format available.

Message #11 received at 10080 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Mark Lillibridge <mark.lillibridge <at> hp.com>
Cc: 10080 <at> debbugs.gnu.org
Subject: Re: bug#10080: 23.3; Rmail shows an extra blank line at the end
 when displaying a non-MIME message
Date: Wed, 02 Jun 2021 09:43:22 +0200
Mark Lillibridge <mark.lillibridge <at> hp.com> writes:

>     This is easy to reproduce; just send yourself a plain text message
> that has no extra blank lines after it.  Incorporate it into Rmail and
> notice that it is displayed with an extra blank line.  For example,
>
>> Date: Sat, 19 Nov 2011 12:05:50 -0800
>> Subject: no blank lines follow
>> From: Mark Lillibridge <lillibridge <at> gmail.com>
>> To: mdl <at> alum.mit.edu
>> 
>> this is the only line
>> 
>
> where I have added "> " before each line of the displayed message.  If
> you check the underlying mbox file, you'll see that indeed, "this is the
> only line" is the last line of that message. 

(I'm going through old bug reports that unfortunately got no response at
the time.)

I'm unable to reproduce this in Emacs 28, but I'm not quite sure I'm
testing it correctly.  Are you still seeing this issue in recent Emacs
versions?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 02 Jun 2021 07:44:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10080; Package emacs. (Wed, 30 Jun 2021 13:23:02 GMT) Full text and rfc822 format available.

Message #16 received at 10080 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Mark Lillibridge <mark.lillibridge <at> hp.com>
Cc: 10080 <at> debbugs.gnu.org
Subject: Re: bug#10080: 23.3; Rmail shows an extra blank line at the end
 when displaying a non-MIME message
Date: Wed, 30 Jun 2021 15:22:35 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> I'm unable to reproduce this in Emacs 28, but I'm not quite sure I'm
> testing it correctly.  Are you still seeing this issue in recent Emacs
> versions?

More information was requested, but no response was given within a
month, so I'm closing this bug report.  If the problem still exists,
please respond to this email and we'll reopen the bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 10080 <at> debbugs.gnu.org and mark.lillibridge <at> hp.com Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 30 Jun 2021 13:23:04 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 29 Jul 2021 11:24:07 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Mark Lillibridge <mdl <at> alum.mit.edu> to control <at> debbugs.gnu.org. (Sun, 25 Sep 2022 16:32:01 GMT) Full text and rfc822 format available.

Changed bug submitter to 'mdl <at> alum.mit.edu' from 'mark.lillibridge <at> hp.com' Request was from Mark Lillibridge <mdl <at> alum.mit.edu> to control <at> debbugs.gnu.org. (Sun, 25 Sep 2022 16:35:01 GMT) Full text and rfc822 format available.

Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 25 Sep 2022 16:35:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10080; Package emacs. (Sun, 25 Sep 2022 16:37:02 GMT) Full text and rfc822 format available.

Message #29 received at 10080 <at> debbugs.gnu.org (full text, mbox):

From: Mark Lillibridge <mdl <at> alum.mit.edu>
To: 10080 <at> debbugs.gnu.org, larsi <at> gnus.org
Subject: re: bug#10080: 23.3; Rmail shows an extra blank line at the end
 when displaying a non-MIME message
Date: Sun, 25 Sep 2022 09:36:27 -0700
[Message part 1 (text/plain, inline)]
Lars wrote:
>  I'm unable to reproduce this in Emacs 28, but I'm not quite sure I'm
>  testing it correctly.  Are you still seeing this issue in recent Emacs
>  versions?

    Yes, I can reproduce this in version 28.1.

    I'm attaching a *mbox* file (this is the format used by rmail),
lightly edited from one of my older rmail files to hide email addresses.
It has two messages, the first with zero blank lines at the end and last
with 2 blank lines at the end.  If you find file it then do M-x
rmail-mode and look at the first message, you will see that it has an
extra blank line at the end when displayed.  The last one doesn't.  (go
to the end of message with esc > or turn on line numbering to see where
the displayed message ends.)

    If you look at the rmail file before doing rmail-mode, you can see
the underlying formatting.  You will see a blank line between the first
and second message; this is part of the mbox formatting, not a part of
either message.

from https://en.wikipedia.org/wiki/Mbox
    The mbox format uses a single blank line followed by the string 'From '
    (with a space) to delimit messages; this can create ambiguities if a
    message contains the same sequence in the message text.

(The original reproduction instructions probably no longer work because
it's actually quite hard to send a message that's not using MIME these
days.)

    To add insult to injury, if you attempt to forward the message, Rmail
will include the spurious blank line in the message it forwards.  I hit
'f' for this in emacs28.1 -q and get a # part with the blank line before
the closing tag.

- Mark
PS, I have gzipped the mbox file to prevent intermediate mailers from
corrupting it.
[sample_mbox.gz (application/gzip, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10080; Package emacs. (Mon, 26 Sep 2022 07:49:01 GMT) Full text and rfc822 format available.

Message #32 received at 10080 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: mdl <at> alum.mit.edu
Cc: larsi <at> gnus.org, 10080 <at> debbugs.gnu.org
Subject: Re: bug#10080: 23.3;
 Rmail shows an extra blank line at the end when displaying a non-MIME
 message
Date: Mon, 26 Sep 2022 10:48:10 +0300
> From: Mark Lillibridge <mdl <at> alum.mit.edu>
> Date: Sun, 25 Sep 2022 09:36:27 -0700
> 
>     I'm attaching a *mbox* file (this is the format used by rmail),
> lightly edited from one of my older rmail files to hide email addresses.
> It has two messages, the first with zero blank lines at the end and last
> with 2 blank lines at the end.  If you find file it then do M-x
> rmail-mode and look at the first message, you will see that it has an
> extra blank line at the end when displayed.  The last one doesn't.  (go
> to the end of message with esc > or turn on line numbering to see where
> the displayed message ends.)
> 
>     If you look at the rmail file before doing rmail-mode, you can see
> the underlying formatting.  You will see a blank line between the first
> and second message; this is part of the mbox formatting, not a part of
> either message.
> 
> from https://en.wikipedia.org/wiki/Mbox
>     The mbox format uses a single blank line followed by the string 'From '
>     (with a space) to delimit messages; this can create ambiguities if a
>     message contains the same sequence in the message text.
> 
> (The original reproduction instructions probably no longer work because
> it's actually quite hard to send a message that's not using MIME these
> days.)
> 
>     To add insult to injury, if you attempt to forward the message, Rmail
> will include the spurious blank line in the message it forwards.  I hit
> 'f' for this in emacs28.1 -q and get a # part with the blank line before
> the closing tag.

Can you explain why this is a problem?  That is, why does it matter
that a message, as shown in the Rmail reading buffer, has extra empty
lines at the end?  I use Rmail all the time, and know about these
extra empty lines, but they never bother me, because I don't need to
read empty lines.  And forwarding a message with an extra empty line
also should not cause any trouble on the receiving end.

So I'm not sure we should do anything with this bug.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10080; Package emacs. (Mon, 26 Sep 2022 10:54:01 GMT) Full text and rfc822 format available.

Message #35 received at 10080 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: mdl <at> alum.mit.edu, 10080 <at> debbugs.gnu.org
Subject: Re: bug#10080: 23.3; Rmail shows an extra blank line at the end
 when displaying a non-MIME message
Date: Mon, 26 Sep 2022 12:53:39 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> Can you explain why this is a problem?  That is, why does it matter
> that a message, as shown in the Rmail reading buffer, has extra empty
> lines at the end?  I use Rmail all the time, and know about these
> extra empty lines, but they never bother me, because I don't need to
> read empty lines.  And forwarding a message with an extra empty line
> also should not cause any trouble on the receiving end.

It doesn't sound optimal.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10080; Package emacs. (Mon, 10 Oct 2022 17:18:02 GMT) Full text and rfc822 format available.

Message #38 received at 10080 <at> debbugs.gnu.org (full text, mbox):

From: Mark Lillibridge <mdl <at> alum.mit.edu>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: larsi <at> gnus.org, 10080 <at> debbugs.gnu.org
Subject: Re: bug#10080: 23.3;
 Rmail shows an extra blank line at the end when displaying a non-MIME
 message
Date: Mon, 10 Oct 2022 10:17:08 -0700
Eli Zaretskii <eliz <at> gnu.org> writes:

>  Can you explain why this is a problem?  That is, why does it matter
>  that a message, as shown in the Rmail reading buffer, has extra empty
>  lines at the end?  I use Rmail all the time, and know about these
>  extra empty lines, but they never bother me, because I don't need to
>  read empty lines.  And forwarding a message with an extra empty line
>  also should not cause any trouble on the receiving end.
>  
>  So I'm not sure we should do anything with this bug.

    I agree this is not a particularly urgent/important bug.  If there
are more important bugs to fix and we have limited fixer bandwidth, I
don't think it would be unreasonable to mark this as "won't fix" or the
like.  I reopened this mostly because it was closed with the state
"fixed/gone", which is incorrect.

- Mark




Removed tag(s) moreinfo. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 03 Sep 2023 08:33:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10080; Package emacs. (Sat, 18 May 2024 20:18:01 GMT) Full text and rfc822 format available.

Message #43 received at 10080 <at> debbugs.gnu.org (full text, mbox):

From: Jakub Ječmínek <kuba <at> kubajecminek.cz>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: mdl <at> alum.mit.edu, Eli Zaretskii <eliz <at> gnu.org>, 10080 <at> debbugs.gnu.org
Subject: Re: bug#10080: 23.3;
 Rmail shows an extra blank line at the end when displaying a non-MIME
 message
Date: Sat, 18 May 2024 20:17:34 +0000
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>> Can you explain why this is a problem?  That is, why does it matter
>> that a message, as shown in the Rmail reading buffer, has extra empty
>> lines at the end?  I use Rmail all the time, and know about these
>> extra empty lines, but they never bother me, because I don't need to
>> read empty lines.  And forwarding a message with an extra empty line
>> also should not cause any trouble on the receiving end.
>
> It doesn't sound optimal.

Not that it matters in the context of Rmail but the exact same thing
exists in Gnus.  If you open the file using G f, the article will have
extra blank line (even when forwarding).

Best

Jakub





This bug report was last modified 1 year and 24 days ago.

Previous Next


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