* set mime display per group?
@ 2011-02-09 22:50 Damon Haley
0 siblings, 0 replies; 4+ messages in thread
From: Damon Haley @ 2011-02-09 22:50 UTC (permalink / raw)
To: info-gnus-english
Hi, I was wondering if there is anyway to configure gnus to have
different 'mutlipart/alternative' display settings per group.
I know there is an example in the manual showing how to custom configure
nnrss groups by setting mm-discouraged-alternatives in the
gnus-parameters variable:
Example from manual:
;; display `text/html' parts in nnrss groups.
(add-to-list
'gnus-parameters
'("\\`nnrss:" (mm-discouraged-alternatives nil)))
What I would like to do is have a secondary select nnimap server use a
'mm-automatic-display' setting of 'text/plan' rather than my default
'text/html.'
Here are my default MIME settings:
gnus-buttonized-mime-types '("multipart/signed" "multipart/alternative")
mm-discouraged-alternatives '("text/html" "text/richtext")
mm-automatic-display '("text/html")
Is there a way to scope these settings to just apply to a group or even
just one mail server?
Thanks,
Damon
--
mmm, "If you are not paying for it, | |} /\ /\/\ [] /\| H /\ |_ E Y
/::* > you're not the customer; | \/ I /\/ Y |_ I S |_
\ |::/ you're the chicken being sold." | @ S S |_
Aa./:::\ - blue_chicken | - /\/\ /\ I L . C [] /\/\
\:::::::| |
\:::::/ Say 'cluck' to long email | Say 'cluck no' to HTML mail
\:::/ http://email.is-not-s.ms | http://www.asciiribbon.org
\:/\:/
|_ \__ _______________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: set mime display per group?
2011-02-14 3:53 ` Lars Ingebrigtsen
2011-04-12 20:02 ` Damon Haley
@ 2011-04-12 20:38 ` Damon Haley
1 sibling, 0 replies; 4+ messages in thread
From: Damon Haley @ 2011-04-12 20:38 UTC (permalink / raw)
To: info-gnus-english
Hi gnus folk,
I finally figured this out. Essentially the code below resets my
discouraged-alternatives for the fastmail IMAP account, but discourages
html for everything else.
;; Set the default value of mm-discouraged-alternatives.
(eval-after-load "gnus-sum"
'(add-to-list
'gnus-newsgroup-variables
'(mm-discouraged-alternatives
. '("text/html" "image/.*" "text/richtext"))))
;; display `text/html' parts in fastmail groups.
(add-to-list
'gnus-parameters
'("^nnimap\\+fastmail:" (mm-discouraged-alternatives nil)))
It's obviously the same code in the manual for showing nrss groups as
html when text is displayed for everything else.
Does anyone know how I could re-write the above code to only take effect
on gnus topics such as Lars suggested was possible below?
Do I put something like (mm-discouraged-alternatives nil) in the
gnus-topic-edit-parameters buffer?
If topic based display is not possible, how could I re-write the code
above to specify multiple IMAP groups rather than matching my
entire secondary-select IMAP server?
I don't know elisp yet, but I'm slowly trying to pick up some of it over the
next year.
Thanks,
Damon
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Damon Haley <vinylisl@ssl-mail.com> writes:
>
>> Here are my default MIME settings:
>>
>> gnus-buttonized-mime-types '("multipart/signed" "multipart/alternative")
>> mm-discouraged-alternatives '("text/html" "text/richtext")
>>
>> Is there a way to scope these settings to just apply to a group or even
>> just one mail server?
>
> There's a lot of ways. You could arrange your groups in topics, and add
> these as topic parameters, or you could set them from a suitable group
> entry hook, like `gnus-summary-mode-hook'.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: set mime display per group?
2011-02-14 3:53 ` Lars Ingebrigtsen
@ 2011-04-12 20:02 ` Damon Haley
2011-04-12 20:38 ` Damon Haley
1 sibling, 0 replies; 4+ messages in thread
From: Damon Haley @ 2011-04-12 20:02 UTC (permalink / raw)
To: info-gnus-english
Hi gnus folk,
I finally figured this out. Essentially the code below resets my
discouraged-alternatives for the fastmail IMAP account, but discourages
html for everything else.
;; Set the default value of mm-discouraged-alternatives.
(eval-after-load "gnus-sum"
'(add-to-list
'gnus-newsgroup-variables
'(mm-discouraged-alternatives
. '("text/html" "image/.*" "text/richtext"))))
;; display `text/html' parts in fastmail groups.
(add-to-list
'gnus-parameters
'("^nnimap\\+fastmail:" (mm-discouraged-alternatives nil)))
It's obviously the same code in the manual for showing nrss groups as
html when text is displayed for everything else.
Does anyone know how I could re-write the above code to only take effect
on gnus topics such as Lars suggested was possible below?
Do I put something like (mm-discouraged-alternatives nil) in the
gnus-topic-edit-parameters buffer?
If topic based display is not possible, how could I re-write the code
above to specify multiple IMAP groups rather than matching my
entire secondary-select IMAP server?
I don't know elisp yet, but I'm slowly trying to pick up some of it over the
next year.
Thanks,
Damon
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Damon Haley <vinylisl@ssl-mail.com> writes:
>
>> Here are my default MIME settings:
>>
>> gnus-buttonized-mime-types '("multipart/signed" "multipart/alternative")
>> mm-discouraged-alternatives '("text/html" "text/richtext")
>>
>> Is there a way to scope these settings to just apply to a group or even
>> just one mail server?
>
> There's a lot of ways. You could arrange your groups in topics, and add
> these as topic parameters, or you could set them from a suitable group
> entry hook, like `gnus-summary-mode-hook'.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: set mime display per group?
[not found] <mailman.28.1297292248.9144.info-gnus-english@gnu.org>
@ 2011-02-14 3:53 ` Lars Ingebrigtsen
2011-04-12 20:02 ` Damon Haley
2011-04-12 20:38 ` Damon Haley
0 siblings, 2 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2011-02-14 3:53 UTC (permalink / raw)
To: info-gnus-english
Damon Haley <vinylisl@ssl-mail.com> writes:
> Here are my default MIME settings:
>
> gnus-buttonized-mime-types '("multipart/signed" "multipart/alternative")
> mm-discouraged-alternatives '("text/html" "text/richtext")
> mm-automatic-display '("text/html")
>
> Is there a way to scope these settings to just apply to a group or even
> just one mail server?
There's a lot of ways. You could arrange your groups in topics, and add
these as topic parameters, or you could set them from a suitable group
entry hook, like `gnus-summary-mode-hook'.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-04-12 20:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-09 22:50 set mime display per group? Damon Haley
[not found] <mailman.28.1297292248.9144.info-gnus-english@gnu.org>
2011-02-14 3:53 ` Lars Ingebrigtsen
2011-04-12 20:02 ` Damon Haley
2011-04-12 20:38 ` Damon Haley
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).