emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

patch for rmail


From: Markus Rost
Subject: patch for rmail
Date: Thu, 15 Jan 2004 21:28:41 +0100

Hi.  Once in a while I have problems when receiving new mail in Rmail.
It happens always with spam mail.  The buffer RMAIL ends up with a new
mail whose last line looks as follows:

........some html code....</HTML>^_

Here "^_" is actually one character, the one used by Rmail to indicate
the end of the mail.  However, if I understand correctly, Rmail
expects it to be always at the beginning of the line.  Perhaps some
decoding routine of rmail forgets to add a newline character.  Anyway,
I think the following patch would fix the problem and is safe.

===Buffer rmail.diff========================================
*** rmail.el.~1.378.~   Sun Jan  4 21:46:59 2004
--- rmail.el    Tue Jan 13 21:25:05 2004
***************
*** 1854,1859 ****
--- 1854,1860 ----
                   (goto-char (point-min))
                   (while (search-forward "\n\^_" nil t); single char
                     (replace-match "\n^_")))); 2 chars: "^" and "_"
+              (or (bolp) (newline))
               (insert ?\^_)
               (setq last-coding-system-used nil)
               (or rmail-enable-mime
============================================================




reply via email to

[Prev in Thread] Current Thread [Next in Thread]