mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
emacs: support text/calendar mime type
Replace text/x-vcalendar with text/calendar, while maintaining support and backwards compatibility for text/x-vcalendar. Code by David Edmondson <dme@dme.org>
This commit is contained in:
parent
b32831e5b8
commit
cfdc9a472d
1 changed files with 5 additions and 1 deletions
|
@ -729,7 +729,7 @@ current buffer, if possible."
|
||||||
(run-hook-with-args 'notmuch-show-insert-text/plain-hook msg depth))))
|
(run-hook-with-args 'notmuch-show-insert-text/plain-hook msg depth))))
|
||||||
t)
|
t)
|
||||||
|
|
||||||
(defun notmuch-show-insert-part-text/x-vcalendar (msg part content-type nth depth declared-type)
|
(defun notmuch-show-insert-part-text/calendar (msg part content-type nth depth declared-type)
|
||||||
(notmuch-show-insert-part-header nth declared-type content-type (plist-get part :filename))
|
(notmuch-show-insert-part-header nth declared-type content-type (plist-get part :filename))
|
||||||
(insert (with-temp-buffer
|
(insert (with-temp-buffer
|
||||||
(insert (notmuch-show-get-bodypart-content msg part nth))
|
(insert (notmuch-show-get-bodypart-content msg part nth))
|
||||||
|
@ -747,6 +747,10 @@ current buffer, if possible."
|
||||||
result)))
|
result)))
|
||||||
t)
|
t)
|
||||||
|
|
||||||
|
;; For backwards compatibility.
|
||||||
|
(defun notmuch-show-insert-part-text/x-vcalendar (msg part content-type nth depth declared-type)
|
||||||
|
(notmuch-show-insert-part-text/calendar msg part content-type nth depth declared-type))
|
||||||
|
|
||||||
(defun notmuch-show-insert-part-application/octet-stream (msg part content-type nth depth declared-type)
|
(defun notmuch-show-insert-part-application/octet-stream (msg part content-type nth depth declared-type)
|
||||||
;; If we can deduce a MIME type from the filename of the attachment,
|
;; If we can deduce a MIME type from the filename of the attachment,
|
||||||
;; do so and pass it on to the handler for that type.
|
;; do so and pass it on to the handler for that type.
|
||||||
|
|
Loading…
Reference in a new issue