Function: nnbabyl-insert-lines
nnbabyl-insert-lines is a byte-compiled function defined in
nnbabyl.el.gz.
Signature
(nnbabyl-insert-lines)
Documentation
Insert how many lines and chars there are in the body of the mail.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/nnbabyl.el.gz
(defun nnbabyl-insert-lines ()
"Insert how many lines and chars there are in the body of the mail."
(let (lines chars)
(save-excursion
(goto-char (point-min))
(when (search-forward "\n\n" nil t)
;; There may be an EOOH line here...
(when (looking-at "\\*\\*\\* EOOH \\*\\*\\*")
(search-forward "\n\n" nil t))
(setq chars (- (point-max) (point))
lines (max (- (count-lines (point) (point-max)) 1) 0))
;; Move back to the end of the headers.
(goto-char (point-min))
(search-forward "\n\n" nil t)
(forward-char -1)
(save-excursion
(when (re-search-backward "^Lines: " nil t)
(delete-region (point) (progn (forward-line 1) (point)))))
(insert (format "Lines: %d\n" lines))
chars))))