2010-10-08 Katsumi Yamaoka <yamaoka@jpl.org>
+ * gnus-gravatar.el (gnus-treat-from-gravatar)
+ (gnus-treat-mail-gravatar): Bind gnus-gravatar-too-ugly to nil when
+ called interactively.
+
* gnus-art.el (gnus-mime-view-part-externally)
(gnus-mime-view-part-internally): Make predicate function passed to
gnus-mime-view-part-as-type assume argument is a mime type, not a list
(gnus-with-article-buffer
(if (memq 'from-gravatar gnus-article-wash-types)
(gnus-delete-images 'from-gravatar)
- (gnus-gravatar-transform-address "from" 'from-gravatar))))
+ (let ((gnus-gravatar-too-ugly
+ (unless buffer-read-only ;; When type `W D g'
+ gnus-gravatar-too-ugly)))
+ (gnus-gravatar-transform-address "from" 'from-gravatar)))))
;;;###autoload
(defun gnus-treat-mail-gravatar ()
(gnus-with-article-buffer
(if (memq 'mail-gravatar gnus-article-wash-types)
(gnus-delete-images 'mail-gravatar)
- (gnus-gravatar-transform-address "cc" 'mail-gravatar)
- (gnus-gravatar-transform-address "to" 'mail-gravatar))))
+ (let ((gnus-gravatar-too-ugly
+ (unless buffer-read-only ;; When type `W D h'
+ gnus-gravatar-too-ugly)))
+ (gnus-gravatar-transform-address "cc" 'mail-gravatar)
+ (gnus-gravatar-transform-address "to" 'mail-gravatar)))))
(provide 'gnus-gravatar)