Gnus development mailing list
 help / color / mirror / Atom feed
* Which hook for auto-MIME-decoding?
@ 1999-11-21  3:09 Lloyd Zusman
  1999-12-01 18:59 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Lloyd Zusman @ 1999-11-21  3:09 UTC (permalink / raw)


In certain newsgroups, I'd like for all MIME attachments to be
automatically decoded when I enter the article.  In other words, I'd
like the `gnus-mime-view-all-parts' function (which is normally mapped
to `W M v') to automatically get run when I enter the articles in
these selected newsgroups.

However, I can't figure out which hook to use for this.  Both
`gnus-article-mode-hook' and `gnus-article-prepare-hook' don't seem to
be the right places.

The code that I want to insert into the appropriate hook function is
this:

  (cond
   ((string-match "MY-NEWSGROUP-PATTERN" gnus-newsgroup-name)
    (gnus-mime-view-all-parts)))

Any ideas?

Thanks in advance.

-- 
 Lloyd Zusman
 ljz@asfast.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Which hook for auto-MIME-decoding?
  1999-11-21  3:09 Which hook for auto-MIME-decoding? Lloyd Zusman
@ 1999-12-01 18:59 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-12-01 18:59 UTC (permalink / raw)


Lloyd Zusman <ljz@asfast.com> writes:

> However, I can't figure out which hook to use for this.  Both
> `gnus-article-mode-hook' and `gnus-article-prepare-hook' don't seem to
> be the right places.

I've now made the latter hook be run after the MIME stuff has been
done. 

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-12-01 18:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-21  3:09 Which hook for auto-MIME-decoding? Lloyd Zusman
1999-12-01 18:59 ` Lars Magne Ingebrigtsen

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).