From 45926d06f4a1ea6885a08b49417b161f584be8ee Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 13 Aug 1998 06:20:33 +0000 Subject: [PATCH] (nntp-encode-text): Properly encode outgoing text by putting CR at the end of all lines. --- lisp/gnus/nntp.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/gnus/nntp.el b/lisp/gnus/nntp.el index eeb93748af3..4067d566eb6 100644 --- a/lisp/gnus/nntp.el +++ b/lisp/gnus/nntp.el @@ -906,7 +906,12 @@ This function is supposed to be called from `nntp-server-opened-hook'." (insert "\n")) ;; Insert `.' at end of buffer (end of text mark). (goto-char (point-max)) - (insert "." nntp-end-of-line))) + (insert ".\n") + (goto-char (point-min)) + (while (not (eobp)) + (end-of-line) + (delete-char 1) + (insert nntp-end-of-line)))) (defun nntp-retrieve-headers-with-xover (articles &optional fetch-old) (set-buffer nntp-server-buffer) -- 2.39.5