Function: rfc822-snarf-frob-list
rfc822-snarf-frob-list is a byte-compiled function defined in
rfc822.el.gz.
Signature
(rfc822-snarf-frob-list NAME SEPARATOR TERMINATOR SNARFER &optional RETURN)
Source Code
;; Defined in /usr/src/emacs/lisp/mail/rfc822.el.gz
(defun rfc822-snarf-frob-list (name separator terminator snarfer
&optional return)
(let ((first t)
(list ())
tem)
(while (cond ((eobp)
(rfc822-bad-address
(format "End of addresses in middle of %s" name)))
((rfc822-looking-at terminator)
nil)
((rfc822-looking-at separator)
;; multiple separators are allowed and do nothing.
(while (rfc822-looking-at separator))
t)
(first
t)
(t
(rfc822-bad-address
(format "Gubbish in middle of %s" name))))
(setq tem (funcall snarfer)
first nil)
(and return tem
(setq list (if (listp tem)
(nconc (reverse tem) list)
(cons tem list)))))
(nreverse list)))