[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

selectively disabling HTML rendering?

From: Mike Small
Subject: selectively disabling HTML rendering?
Date: Tue, 07 Apr 2015 17:13:53 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix)

Is there an easy way to selectively disable HTML rendering, dependent
upon header info? I've come up with the following, which does what I
want, but I don't like its chances across emacs upgrades:

(defun mms-gnus-mime-display-alternative (handle)
  "My own function for displaying mime multipart/alternative articles in Gnus
Use by placing in gnus-mime-multipart-functions.

Beware when upgrading. Some of this is copied out of and makes assumptions about
gnus-mime-display-part from version 5.13 of Gnus.  It also bypasses 
gnus-mime-display-multipart-as-mixed and 
  (let ((id (1+ (length gnus-article-mime-handle-alist)))
         (if (string= (get-text-property 0 'from (car handle))
             (list "text/html")
    (push (cons id handle) gnus-article-mime-handle-alist)
    (gnus-mime-display-alternative (cdr handle) nil nil id)))

Mike Small

reply via email to

[Prev in Thread] Current Thread [Next in Thread]