'((body . visible)
(body-presentation-method . mime-display-text/plain)))
+(autoload 'fill-flowed "flow-fill")
+
(ctree-set-calist-strictly
'mime-preview-condition
'((type . nil)
(body . visible)
(body-presentation-method . mime-display-text/richtext)))
+(autoload 'vcard-parse-string "vcard")
+(autoload 'vcard-format-string "vcard")
+
+(ctree-set-calist-strictly
+ 'mime-preview-condition
+ '((type . text)(subtype . x-vcard)
+ (body . visible)
+ (body-presentation-method . mime-display-text/x-vcard)))
+
(autoload 'mime-display-application/x-postpet "postpet")
(ctree-set-calist-strictly
(if (not (eq (char-after (1- (point))) ?\n))
(insert "\n")
)
+ (if (equal (cdr (assoc "format" situation)) "flowed")
+ (fill-flowed))
(mime-add-url-buttons)
(run-hooks 'mime-display-text/plain-hook)
))
(enriched-decode beg (point-max))
)))
+(defun mime-display-text/x-vcard (entity situation)
+ (save-restriction
+ (narrow-to-region (point-max)(point-max))
+ (insert
+ (string-as-multibyte
+ (vcard-format-string
+ (vcard-parse-string
+ (mime-entity-content entity)
+ #'vcard-standard-filter))))
+ (if (not (eq (char-after (1- (point))) ?\n))
+ (insert "\n"))
+ (mime-add-url-buttons)
+ (run-hooks 'mime-display-text/x-vcard-hook)))
(defvar mime-view-announcement-for-message/partial
(if (and (>= emacs-major-version 19) window-system)