Function: gnus-icalendar-send-buffer-by-mail

gnus-icalendar-send-buffer-by-mail is a byte-compiled function defined in gnus-icalendar.el.gz.

Signature

(gnus-icalendar-send-buffer-by-mail BUFFER-NAME SUBJECT ORGANIZER)

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/gnus-icalendar.el.gz
(defun gnus-icalendar-send-buffer-by-mail (buffer-name subject organizer)
  (let ((message-signature nil))
    (with-current-buffer gnus-summary-buffer
      (gnus-summary-reply)
      ;; Reply to the organizer, not to whoever sent the invitation. person
      ;; Some calendar systems use specific email address as organizer to
      ;; receive these responses.
      (message-replace-header "To" organizer)
      (message-goto-body)
      (mml-insert-multipart "alternative")
      (mml-insert-empty-tag 'part 'type "text/plain")
      (mml-attach-buffer buffer-name "text/calendar; method=REPLY; charset=UTF-8")
      (message-goto-subject)
      (delete-region (line-beginning-position) (line-end-position))
      (insert "Subject: " subject)
      (message-send-and-exit))))