GNU bug report logs - #7743
unrmail loses extra blank line at end of message

Previous Next

Package: emacs;

Reported by: mark.lillibridge <at> hp.com

Date: Mon, 27 Dec 2010 19:48:02 UTC

Severity: minor

Tags: patch

Fixed in version 24.0.92

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mark Lillibridge <mark.lillibridge <at> hp.com>
To: 7743 <at> debbugs.gnu.org
Subject: bug#7743: bug #7743: unrmail loses extra blank line at end of message [PATCH]
Date: Sun, 13 Nov 2011 11:59:58 -0800
    The automatic system seems not to have noticed, but I provided a
patch for this bug:

ts-rhel5 [124]% ( setenv LC_ALL C ; setenv TZ UTC0 ; diff -Naur original-unrmail.el unrmail.el)
--- original-unrmail.el 2011-11-13 19:57:25.156549000 +0000
+++ unrmail.el  2011-11-13 19:58:34.826505000 +0000
@@ -232,10 +232,9 @@
              (while (search-forward "\nFrom " nil t)
                (forward-char -5)
                (insert ?>)))
-           ;; Make sure the message ends with two newlines
+           ;; Add terminator blank line to message
            (goto-char (point-max))
-           (unless (looking-back "\n\n")
-             (insert "\n"))
+           (insert "\n")
            ;; Write it to the output file, suitably encoded.
            (let ((coding-system-for-write coding))
              (write-region (point-min) (point-max) to-file t




This bug report was last modified 13 years and 236 days ago.

Previous Next


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