Function: nndiary-parse-schedule

nndiary-parse-schedule is a byte-compiled function defined in nndiary.el.gz.

Signature

(nndiary-parse-schedule HEAD MIN-OR-VALUES MAX)

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/nndiary.el.gz
;; ### FIXME: remove this function if it's used only once.
(defun nndiary-parse-schedule (head min-or-values max)
  ;; Parse the cron-like value of header X-Diary-HEAD in current buffer.
  ;; - Returns nil if `*'
  ;; - Otherwise returns a list of integers and/or ranges (BEG . END)
  ;; The exception is the Timze-Zone value which is always of the form (STR).
  ;; Signals are caught by `nndiary-schedule'.
  (let ((header (format "^X-Diary-%s: \\(.*\\)$" head)))
    (goto-char (point-min))
    (if (not (re-search-forward header nil t))
	(error "Header missing")
      ;; else
      (nndiary-parse-schedule-value (match-string 1) min-or-values max))
    ))