[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gnus posting charsets
From: |
Katsumi Yamaoka |
Subject: |
Re: Gnus posting charsets |
Date: |
Tue, 06 Jun 2006 21:52:38 +0900 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
Well, I might be mistaken, so I thank anyone who corrects me.
>>>>> In <1149584781.421939.250360@i39g2000cwa.googlegroups.com>
>>>>> codebuger@gmail.com wrote:
> Good day, All:
> I have emacs 22.0.50 from cvs (gentoo ebuild) and gnus version 5.11.
> So, my question:
> I read some news groups in koi8-r (fido7), some in iso-8859-1 (comp,
> ...) and so on. How to teach gnus send messages in different encodings?
I think the best way is to make `mm-coding-system-priorities' a
group parameter and have a value per group. For example:
--8<---------------cut here---------------start------------->8---
;; Set the default value of `mm-coding-system-priorities'.
(eval-after-load "gnus-sum"
'(add-to-list
'gnus-newsgroup-variables
'(mm-coding-system-priorities
. '(iso-8859-1 koi8-r utf-8))))
;; Prefer `koi8-r' in the fido7 hierarchy.
(add-to-list
'gnus-parameters
'("\\`fido7\\."
(mm-coding-system-priorities '(koi8-r iso-8859-1 utf-8))))
;; Prefer `utf-8' in the catap hierarchy.
(add-to-list
'gnus-parameters
'("\\`catap\\."
(mm-coding-system-priorities '(utf-8 iso-8859-1))))
--8<---------------cut here---------------end--------------->8---
> I probe gnus-group-posting-charset-alist and other, that works in emacs
> 21 but not in 22.
I cannot recall how it behaved in the past, though. Now it
decides whether to MIME-encode non-ASCII text in a message
header, and whether to use the 8bit encoding (which appears in
the Content-Transfer-Encoding header) in a message body. See
the documentation of `gnus-group-posting-charset-alist' for
details.
> If I do:
> (setq mm-coding-system-priorities '(iso-8859-1 koi8-r utf-8))
> emacs sends messages in koi8-r when can encode, if no - sends in utf-8.
> But I like something like this:
> (setq gnus-group-posting-charset-alist '((".*catap.*" utf-8 (utf-8))
> (".*fido7.*" koi8-r (koi8-r))))
`gnus-group-posting-charset-alist' contains the element for the
fido7 hierarchy by default. Therefore, what you need to add
will be the following:
--8<---------------cut here---------------start------------->8---
(eval-after-load "gnus-msg"
'(add-to-list
'gnus-group-posting-charset-alist
'("^catap\\.[^,]*\\(,[ \t\n]*catap\\.[^,]*\\)*$" utf-8 (utf-8))))
--8<---------------cut here---------------end--------------->8---
> Can anybody to help me? Thanks.
> With best regards, Evgeniy Zamriy.
> P.S.: Sorry, my english isn't good. :-(
Me too. ;-)