Function: nndoc-transform-git-headers
nndoc-transform-git-headers is a byte-compiled function defined in
nndoc.el.gz.
Signature
(nndoc-transform-git-headers ENTRY)
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/nndoc.el.gz
(defun nndoc-transform-git-headers (entry)
(goto-char (point-min))
(when (re-search-forward "^Author: " nil t)
(replace-match "From: " t t))
(let (subject)
(with-current-buffer nndoc-current-buffer
(goto-char (car entry))
(when (search-forward "\n\n" nil t)
(setq subject (buffer-substring (point) (line-end-position)))))
(when subject
(goto-char (point-min))
(forward-line 1)
(insert (format "Subject: %s\n" subject)))))