Function: gnus-notifications-get-photo-file
gnus-notifications-get-photo-file is a byte-compiled function defined
in gnus-notifications.el.gz.
Signature
(gnus-notifications-get-photo-file MAIL-ADDRESS)
Documentation
Get a temporary file with an image for MAIL-ADDRESS.
You have to delete the temporary image yourself using
delete-image.
Returns nil if no image found.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-notifications.el.gz
(defun gnus-notifications-get-photo-file (mail-address)
"Get a temporary file with an image for MAIL-ADDRESS.
You have to delete the temporary image yourself using
`delete-image'.
Returns nil if no image found."
(let ((photo (gnus-notifications-get-photo mail-address)))
(when photo
(let ((photo-file (make-temp-file "gnus-notifications-photo-"))
(coding-system-for-write 'binary))
(with-temp-file photo-file
(insert photo))
photo-file))))