2000-11-08 08:38:30 ShengHuo ZHU <zsh@cs.rochester.edu>
authorShengHuo ZHU <zsh@cs.rochester.edu>
Wed, 8 Nov 2000 12:42:18 +0000 (12:42 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Wed, 8 Nov 2000 12:42:18 +0000 (12:42 +0000)
* pop3.el (pop3-munge-message-separator): A message may have an
empty body.

lisp/ChangeLog
lisp/pop3.el

index 4da00ff..88b6fdb 100644 (file)
@@ -1,3 +1,8 @@
+2000-11-08 08:38:30  ShengHuo ZHU  <zsh@cs.rochester.edu>
+
+       * pop3.el (pop3-munge-message-separator): A message may have an
+       empty body.
+
 2000-11-07 18:02:26  ShengHuo ZHU  <zsh@cs.rochester.edu>
 
        * mm-uu.el (mm-uu-type-alist): Don't test pgp stuff.
index 02630b5..6838432 100644 (file)
@@ -234,7 +234,10 @@ Return the response string if optional second argument is non-nil."
                                  (substring From_ (match-end 0)))))
            (goto-char (point-min))
            (insert From_)
-           (re-search-forward "\n\n")
+           (if (search-forward "\n\n" nil t)
+               nil
+             (goto-char (point-max))
+             (insert "\n"))
            (narrow-to-region (point) (point-max))
            (let ((size (- (point-max) (point-min))))
              (goto-char (point-min))