Function: gnus-icalendar-event--attendees-by-type

gnus-icalendar-event--attendees-by-type is a byte-compiled function defined in gnus-icalendar.el.gz.

Signature

(gnus-icalendar-event--attendees-by-type ATTENDEES)

Documentation

Return lists of required and optional participants in ATTENDEES.

ATTENDEES must be a list of icalendar-attendee nodes. The returned list has the form (REQUIRED OPTIONAL), where each is a list of icalendar-attendee nodes.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/gnus-icalendar.el.gz
(defun gnus-icalendar-event--attendees-by-type (attendees)
  "Return lists of required and optional participants in ATTENDEES.
ATTENDEES must be a list of `icalendar-attendee' nodes.  The returned
list has the form (REQUIRED OPTIONAL), where each is a list of
`icalendar-attendee' nodes."
  (let (required optional)
    (dolist (attendee attendees)
      (ical:with-property attendee ((ical:roleparam :value role))
          (when (or (null role) ; "REQ-PARTICIPANT" is the default
                    (equal role "REQ-PARTICIPANT"))
            (push attendee required))
          (when (equal role "OPT-PARTICIPANT")
            (push attendee optional))))
    (list (nreverse required)
          (nreverse optional))))