Function: gnus-notifications-get-photo

gnus-notifications-get-photo is a byte-compiled function defined in gnus-notifications.el.gz.

Signature

(gnus-notifications-get-photo MAIL-ADDRESS)

Documentation

Get photo for mail address.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/gnus-notifications.el.gz
(defun gnus-notifications-get-photo (mail-address)
  "Get photo for mail address."
  (let ((google-photo (when (and gnus-notifications-use-google-contacts
                                 (fboundp 'google-contacts-get-photo))
                        (ignore-errors
                          (gnus-funcall-no-warning
			   'google-contacts-get-photo mail-address)))))
    (if google-photo
        google-photo
      (when gnus-notifications-use-gravatar
        (let ((gravatar (ignore-errors
                          (gravatar-retrieve-synchronously mail-address))))
          (if (eq gravatar 'error)
              nil
            (plist-get (cdr gravatar) :data)))))))