Function: diary-from-outlook-rmail
diary-from-outlook-rmail is an interactive and byte-compiled function
defined in diary-lib.el.gz.
Signature
(diary-from-outlook-rmail &optional NOCONFIRM)
Documentation
Maybe snarf diary entry from Outlook-generated message in Rmail.
Unless the optional argument NOCONFIRM is non-nil (which is the case when this function is called interactively), then if an entry is found the user is asked to confirm its addition.
Probably introduced at or before Emacs version 22.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/diary-lib.el.gz
(defun diary-from-outlook-rmail (&optional noconfirm)
"Maybe snarf diary entry from Outlook-generated message in Rmail.
Unless the optional argument NOCONFIRM is non-nil (which is the case when
this function is called interactively), then if an entry is found the
user is asked to confirm its addition."
(interactive "p")
;; FIXME maybe the body needs rmail-mm decoding, in which case
;; there is no single buffer with both body and subject, sigh.
(with-current-buffer rmail-buffer
(let ((subject (mail-fetch-field "subject"))
(body (buffer-substring (save-excursion
(rfc822-goto-eoh)
(point))
(point-max))))
(when (diary-from-outlook-internal subject body t)
(when (or noconfirm (y-or-n-p "Snarf diary entry? "))
(diary-from-outlook-internal subject body)
(message "Diary entry added"))))))