From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63501 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Avoiding double encoding in subject Date: Wed, 26 Jul 2006 13:00:47 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1153913445 2953 80.91.229.2 (26 Jul 2006 11:30:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Jul 2006 11:30:45 +0000 (UTC) Original-X-From: ding-owner+m12028@lists.math.uh.edu Wed Jul 26 13:30:44 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 1G5haS-0000Ir-I2 for ding-account@gmane.org; Wed, 26 Jul 2006 13:30:00 +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 1G5haA-0005jL-00; Wed, 26 Jul 2006 06:29:42 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1G5hQG-0005jF-00 for ding@lists.math.uh.edu; Wed, 26 Jul 2006 06:19:28 -0500 Original-Received: from quimby.gnus.org ([80.91.227.211]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1G5hQB-0003Wo-Ko for ding@lists.math.uh.edu; Wed, 26 Jul 2006 06:19:28 -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 1G5hQ5-00039s-00 for ; Wed, 26 Jul 2006 13:19:17 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1G5hPy-0006d3-9v for ding@gnus.org; Wed, 26 Jul 2006 13:19:10 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Jul 2006 13:19:10 +0200 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Jul 2006 13:19:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Original-Lines: 50 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: #vK]N[`vqjuod*|)'[iD7/"3AB-ApT%fmN"LWAg@oS7OesGv~)n[OBTLM#I="J'Y^-7I I/ps7o_'IK@#-Rs{::DZ@O8yS|fexe,XslY[:dNWOb~>?mC-&i_c)say:"\IpA.5U.b]'NY;Pks{lb h.+#6%DpZuaK3dcHB`Av3zc:r!C%~s0&m,tWj]&},qg.+0ww2gK%f!:GK|wMl.I!(voY*1"^li8"~B BNG)9LvPi?^DMR-GVDnZqhu*3Hi,+g=wFhI)BL6&u{EOVEHjVEVq~d?_}lMntWAc3(6?kftjc>_f>! g0wM(qPM$d5]^TT_Qyi&L?LGVG)SHN;Gk/,pkY9,~ Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:bmCjNnrIUcWeLheT5FI0Brtcv8k= X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63501 Archived-At: Hi, when replying to an article who's subject contains an unknown (or invalid) encoding... | Newsgroups: gmane.test | Archived-At: | Message-ID: | Subject: bogus or unknown charset in =?iso-8859-17?Q?=E4?= subject -- i.e. the charset is unknown to (X)Emacs[1] -- and not present in `mm-charset-synonym-alist', Gnus produces a subject like... | Newsgroups: gmane.test | Archived-At: | Message-ID: | Subject: Re: bogus or unknown charset in =?us-ascii?Q?=3D=3Fiso-8859-17=3F?= | =?us-ascii?Q?Q=3F=3DE4=3F=3D?= subject Bad. I'm not sure how Gnus should handle this situation. Some possibilities: (1) Gnus could (probably, I don't know if it is feasible to implement this) mark the Subject as "not decoded" and resend it "as is" without the double[2] us-ascii encoding. Gnus also has to make sure that this mark survives when the article is saved to the drafts folder. Problem: If the given charset is really invalid rather than unknown (the user usually can't decide), Gnus will also produce an incorrect article. (2) Gnus' decoder could replace the unknown/invalid characters with a replacement character ("?", U+FFFD = REPLACEMENT CHARACTER, ...). Problem: It's probably not possible to get the number of replacement characters right. Other suggestions? Bye, Reiner. [1] This may happen when (X)Emacs is to old to support a newly introduced charset. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/