From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/7453 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.user Subject: Re: Gnus posting charsets Date: Tue, 06 Jun 2006 21:52:38 +0900 Organization: Emacsen advocacy group Message-ID: References: <1149584781.421939.250360@i39g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1149601274 2597 80.91.229.2 (6 Jun 2006 13:41:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Jun 2006 13:41:14 +0000 (UTC) Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Tue Jun 06 15:41:12 2006 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fnbnr-0006IY-Tm for gegu-info-gnus-english@m.gmane.org; Tue, 06 Jun 2006 15:41:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fnbnr-0002kM-EY for gegu-info-gnus-english@m.gmane.org; Tue, 06 Jun 2006 09:41:03 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 72 Original-X-Trace: individual.net yGuTSg4/kWctW/1c8B0DcgqdFa+uWq+vGLROP++KWAt5xmGsI= X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:gT5ugG7ZzVHE7fNkrkbiHpLxxxM= Original-Xref: shelby.stanford.edu gnu.emacs.gnus:77636 Original-To: info-gnus-english@gnu.org X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:7453 Archived-At: 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. ;-)