Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Subject: Re: Gnus posting charsets
Date: Tue, 06 Jun 2006 21:52:38 +0900	[thread overview]
Message-ID: <b4mhd2y4fah.fsf@jpl.org> (raw)
In-Reply-To: <1149584781.421939.250360@i39g2000cwa.googlegroups.com>

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

  reply	other threads:[~2006-06-06 12:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-06  9:06 codebuger
2006-06-06 12:52 ` Katsumi Yamaoka [this message]
2006-06-07 14:41   ` codebuger
2006-06-08  1:29     ` Katsumi Yamaoka
2006-06-09  8:28       ` Ivan Boldyrev
     [not found]       ` <mailman.2787.1149843395.9609.info-gnus-english@gnu.org>
2006-06-10 10:50         ` codebuger

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=b4mhd2y4fah.fsf@jpl.org \
    --to=yamaoka@jpl.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).