Function: pop3-uidl-add-xheader
pop3-uidl-add-xheader is a byte-compiled function defined in
pop3.el.gz.
Signature
(pop3-uidl-add-xheader START MSGNO)
Documentation
Add X-UIDL header.
Source Code
;; Defined in /usr/src/emacs/lisp/net/pop3.el.gz
(defun pop3-uidl-add-xheader (start msgno)
"Add X-UIDL header."
(let ((case-fold-search t))
(save-restriction
(narrow-to-region start (progn
(goto-char start)
(search-forward "\n\n" nil 'move)
(1- (point))))
(goto-char start)
(while (re-search-forward "^x-uidl:" nil t)
(while (progn
(forward-line 1)
(memq (char-after) '(?\t ? ))))
(delete-region (match-beginning 0) (point)))
(goto-char (point-max))
(insert "X-UIDL: " (nth (1- msgno) pop3-uidl) "\n"))))