Variable: diary-icalendar-address-regexp
diary-icalendar-address-regexp is a customizable variable defined in
diary-icalendar.el.gz.
Value
"^[[:space:]]+\\(?:[[:word:]]+:\\)?\\(?2:[^\n<]*\\)<\\(?1:[^\n@]+@[^\n>]+\\)>"
Documentation
Regular expression to match calendar user (email) addresses.
The full address should match group 1; "mailto:" will be prepended to
the full address during export, unless it or another URI scheme is
present. If there is a match in group 2, it will be used as the
common name associated with the address (see icalendar-cnparam).
The default value matches names and addresses on lines like:
Ms. Baz <baz@foo.com>
as well as on lines like:
Property: Ms. Baz <baz@foo.com> other data...
Any matching address within a diary entry will be exported as an
iCalendar ATTENDEE property, unless the line on which it appears is also
a match for diary-icalendar-organizer-regexp, in which case it will be
exported as the ORGANIZER property.
This variable was added, or its default value changed, in Emacs 31.1.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/diary-icalendar.el.gz
(defcustom di:address-regexp
(rx line-start
(one-or-more space)
(zero-or-one ;; property prefix, e.g. "Attendee:" or "Organizer:"
(seq (one-or-more word) ":"))
(group-n 2 (zero-or-more (not (any "<" "\n"))))
"<"
(group-n 1 (one-or-more (not (any "@" "\n")))
"@"
(one-or-more (not (any ">" "\n"))))
">")
"Regular expression to match calendar user (email) addresses.
The full address should match group 1; \"mailto:\" will be prepended to
the full address during export, unless it or another URI scheme is
present. If there is a match in group 2, it will be used as the
common name associated with the address (see `icalendar-cnparam').
The default value matches names and addresses on lines like:
Ms. Baz <baz@foo.com>
as well as on lines like:
Property: Ms. Baz <baz@foo.com> other data...
Any matching address within a diary entry will be exported as an
iCalendar ATTENDEE property, unless the line on which it appears is also
a match for `diary-icalendar-organizer-regexp', in which case it will be
exported as the ORGANIZER property."
:version "31.1"
:type '(regexp))