Function: imap-find-next-line

imap-find-next-line is a byte-compiled function defined in imap.el.gz.

Signature

(imap-find-next-line)

Documentation

Return point at end of current line, taking into account literals.

Return nil if no complete line has arrived.

Source Code

;; Defined in /usr/src/emacs/lisp/net/imap.el.gz
(defun imap-find-next-line ()
  "Return point at end of current line, taking into account literals.
Return nil if no complete line has arrived."
  (when (re-search-forward (concat imap-server-eol "\\|{\\([0-9]+\\)}"
				   imap-server-eol)
			   nil t)
    (if (match-string 1)
	(if (< (point-max) (+ (point) (string-to-number (match-string 1))))
	    nil
	  (goto-char (+ (point) (string-to-number (match-string 1))))
	  (imap-find-next-line))
      (point))))