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.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/diary-icalendar.el.gz