Function: nnml-find-id
nnml-find-id is a byte-compiled function defined in nnml.el.gz.
Signature
(nnml-find-id GROUP ID SERVER)
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/nnml.el.gz
(defun nnml-find-id (group id server)
(erase-buffer)
(let ((nov (nnml-group-pathname group nnml-nov-file-name server))
number found)
(when (file-exists-p nov)
(nnheader-insert-file-contents nov)
(while (and (not found)
(search-forward id nil t)) ; We find the ID.
;; And the id is in the fourth field.
(if (not (and (search-backward "\t" nil t 4)
(not (search-backward "\t" (point-at-bol) t))))
(forward-line 1)
(beginning-of-line)
(setq found t)
;; We return the article number.
(setq number
(ignore-errors (read (current-buffer))))))
number)))