From: Lars Ingebrigtsen <larsi@gnus.org>
To: Dave Abrahams <dave@boostpro.com>
Cc: ding@gnus.org
Subject: Re: Display thumbnail for mime button?
Date: Tue, 23 Feb 2016 13:13:47 +1100 [thread overview]
Message-ID: <87vb5g5g2s.fsf@gnus.org> (raw)
In-Reply-To: <m28u2c2wh5.fsf@eno.apple.com> (Dave Abrahams's message of "Mon, 22 Feb 2016 14:47:50 -0800")
Dave Abrahams <dave@boostpro.com> writes:
> I have a program that can generate a thumbnail image for any file that
> might be attached to a message. I'd love to be able to have Gnus
> make the corresponding MIME button look like that thumbnail. Is there a
> way?
Let's see... the insertion of the MIME buttons is done by
`gnus-insert-mime-button'. And the format of the button is determined
by the `gnus-mime-button-line-format' variable. So you could add a
user-defined format spec, and then return a string with an image display
property. The MIME handle is available in the dynamically bound
"handle" variable.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
prev parent reply other threads:[~2016-02-23 2:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-22 22:47 Dave Abrahams
2016-02-23 2:13 ` Lars Ingebrigtsen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vb5g5g2s.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=dave@boostpro.com \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).