From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63882 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.gnus.general Subject: gnus-article-decode-charset Date: Wed, 25 Oct 2006 23:17:29 +0900 Message-ID: <877iyomqdi.fsf@catnip.gol.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161786351 3162 80.91.229.2 (25 Oct 2006 14:25:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Oct 2006 14:25:51 +0000 (UTC) Original-X-From: ding-owner+m12409@lists.math.uh.edu Wed Oct 25 16:25:47 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GcjhB-000216-Py for ding-account@gmane.org; Wed, 25 Oct 2006 16:25:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1Gcjgp-0005Q8-00; Wed, 25 Oct 2006 09:25:07 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1GcjcC-0005Q3-00 for ding@lists.math.uh.edu; Wed, 25 Oct 2006 09:20:20 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.52) id 1GcjaG-0005I1-5u for ding@lists.math.uh.edu; Wed, 25 Oct 2006 09:20:20 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Gcja8-0005TP-00 for ; Wed, 25 Oct 2006 16:18:12 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GcjZX-0000Oi-O7 for ding@gnus.org; Wed, 25 Oct 2006 16:17:35 +0200 Original-Received: from 203-216-96-133.dsl.gol.ne.jp ([203.216.96.133]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Oct 2006 16:17:35 +0200 Original-Received: from miles by 203-216-96-133.dsl.gol.ne.jp with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Oct 2006 16:17:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 36 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 203-216-96-133.dsl.gol.ne.jp System-Type: i686-pc-linux-gnu Cancel-Lock: sha1:uRl0ozqp/1b3KZJpsZ/e/Pwvlms= X-Spam-Note: SpamAssassin invocation failed Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63882 Archived-At: Aka `(C-u) W M C' in summary buffer. I often try to use this command when a message I get is apparently mis-decoded (due to faulty header info or whatever), but it rarely seems to work like I expect it to, and often doesn't give useful results at all. I'm wondering if I'm using it incorrectly, or whether it's broken. The main problem is: What version of the message does W M C operate on? What I _expect_ is that it would (1) fetch the original message, (2) remove any mime wrapping like base-64, resulting in a unibyte buffer full of raw message bytes, and then (3) just call (decode-coding-region ... 'whatever) Sometimes it appears to be trying to operate on whatever the currently _displayed_ contents are, which is usually completely wrong. If I try to work around this by manually fetching the "original" message using `C-u g', that usually fails to work too, either because the original is base-64 encoded, or even when that's not true, apparently because the way it displays the raw bytes isn't what W M C is expecting. Also, since I often need to guess and try several different encodings before I find the proper one, it's generally more convenient if it starts from the beginning each time (applying decoding X to the failed results of decoding Y usually doesn't work very well :-). Anyway, any comments on how this command does/should work? Thanks, -Miles -- I'd rather be consing.