projects
/
elisp
/
gnus.git-
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ab66ee
)
* (nnspool-retrieve-headers): Protect against empty body.
author
yamaoka
<yamaoka>
Thu, 14 Jan 1999 00:20:49 +0000
(
00:20
+0000)
committer
yamaoka
<yamaoka>
Thu, 14 Jan 1999 00:20:49 +0000
(
00:20
+0000)
lisp/nnspool.el
patch
|
blob
|
history
diff --git
a/lisp/nnspool.el
b/lisp/nnspool.el
index
6914f78
..
1cca067
100644
(file)
--- a/
lisp/nnspool.el
+++ b/
lisp/nnspool.el
@@
-137,9
+137,13
@@
there.")
(setq beg (point))
(inline (nnheader-insert-head file))
(goto-char beg)
- (search-forward "\n\n" nil t)
- (forward-char -1)
- (insert ".\n")
+ (if (search-forward "\n\n" nil t)
+ (progn (forward-char -1)
+ (insert ".\n"))
+ (goto-char (point-max))
+ (if (bolp)
+ (insert ".\n")
+ (insert "\n.\n")))
(delete-region (point) (point-max)))
(and do-message