From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67799 Path: news.gmane.org!not-for-mail From: Lloyd Zusman Newsgroups: gmane.emacs.gnus.general Subject: Guidance concerning something I want to do with charsets Date: Tue, 18 Nov 2008 21:27:17 -0500 Organization: Take a hippopotamus to lunch today. Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1227061823 27198 80.91.229.12 (19 Nov 2008 02:30:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Nov 2008 02:30:23 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16248@lists.math.uh.edu Wed Nov 19 03:31:26 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1L2cqh-00009n-Oc for ding-account@gmane.org; Wed, 19 Nov 2008 03:31:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1L2cod-0000C5-Ai; Tue, 18 Nov 2008 20:29:15 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1L2coa-0000Br-H0 for ding@lists.math.uh.edu; Tue, 18 Nov 2008 20:29:12 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1L2coY-0001Mb-2a for ding@lists.math.uh.edu; Tue, 18 Nov 2008 20:29:12 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1L2coh-0008Qe-00 for ; Wed, 19 Nov 2008 03:29:19 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L2coQ-0002Mp-G9 for ding@gnus.org; Wed, 19 Nov 2008 02:29:02 +0000 Original-Received: from 209.59.210.144 ([209.59.210.144]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Nov 2008 02:29:02 +0000 Original-Received: from ljz by 209.59.210.144 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Nov 2008 02:29:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 65 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 209.59.210.144 User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (darwin) Cancel-Lock: sha1:iNfJ4lHW85nyIQMwNMBjacWVDhE= Cache-Post-Path: purity-of-essence.net!unknown@nadie.us X-Cache: nntpcache 3.0.2 (see http://www.nntpcache.com/) X-Spam-Score: -1.5 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67799 Archived-At: I've been using gnus since it first came out, but during all this time, I never did a whole lot with charsets. I just used to always cause it to post in 7-bit ascii, and then later, I converted it to handle 8-bit ascii and the ISO-8859-1 charset for when I'm composing messages in Spanish. However, now I'm thinking that I want to enter the 21st century with regard to charsets, and I really don't know much about the topic, at least with regard to emacs and gnus. I have a specific setup that I'd like to implement in gnus, and I'm wondering if anyone here would be willing to give me some initial guidance as to how to proceed. I'm not looking for someone to solve my problem for me or write my code; rather, I'm just hoping that I could be given a very general overview of what I need to do, with some pointers to the appropriate docs. I'll do the rest. I'm using emacs 23.0.60.1 and gnus version "No Gnus v0.11", recently obtained via CVS. OK, here's what I want to accomplish: 1. For each group that I'm viewing in gnus, I'd like to associate a default charset. Initially, this will either be UTF-8 or ISO-8859-1, with the default being ISO-8859-1. I believe that I make this group-specific setting via the `charset' attribute of the Group Parameters, correct? But I'm not sure where to set the default charset that will be used if I don't set this group parameter. 2. For each group that I'm viewing, I want to set my own variable which specifies whether or not the logic in Item 3 (see below) will be performed for that group. This variable would either be set to `t' or `nil' for each group. Should I set this user-specific variable in the Group Parameters, or is there some other mechanism that I should use? 3. This is the part that I know the least about. If the variable described in Item 2 is `nil', then the logic described here is not performed. However, if this variable is set to `t' for a given group, then I want gnus to look at the Content-Type header of all incoming messages in this group, and to use it as the charset for displaying each of these messages. However, I want to make use of the following specific logic (pseudo-code): if Content-Type specifies UTF-8 use UTF-8 as the charset else use ISO-8859-1 as the charset 4. In all cases, the charset selected via Items 1, 2, and 3 should be used both for decoding the message for display *and* for encoding my replies and follow-ups. I don't know much about how to do this, either. Is this a common set of tasks which are easy to perform in gnus, or am I trying to do something that is as idiosyncratic as many of the other tasks that I tend to want to perform? Thanks for any guidance and pointers that any of you might be able to offer me. -- Lloyd Zusman ljz@asfast.com God bless you.