From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/19406 Path: main.gmane.org!not-for-mail From: Shenghuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: 0.58 error in multipart. Date: 01 Dec 1998 00:22:17 -0500 Organization: Computer Dept of U Rochester Sender: owner-ding@hpc.uh.edu Message-ID: <2nn258sagm.fsf@zsh.cs.rochester.edu> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 X-Trace: main.gmane.org 1035157761 11425 80.91.224.250 (20 Oct 2002 23:49:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:49:21 +0000 (UTC) Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id AAA10916 for ; Tue, 1 Dec 1998 00:23:51 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.1/8.9.1) with ESMTP id XAB14539; Mon, 30 Nov 1998 23:23:38 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 30 Nov 1998 23:23:22 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id XAA16124 for ; Mon, 30 Nov 1998 23:23:12 -0600 (CST) Original-Received: from cayuga.cs.rochester.edu (cayuga.cs.rochester.edu [192.5.53.209]) by sclp3.sclp.com (8.8.5/8.8.5) with SMTP id AAA10904 for ; Tue, 1 Dec 1998 00:23:04 -0500 (EST) Original-Received: from slate.cs.rochester.edu (slate.cs.rochester.edu [192.5.53.101]) by cayuga.cs.rochester.edu (8.6.9/O) with ESMTP id AAA19785 for ; Tue, 1 Dec 1998 00:23:01 -0500 Original-Received: from brain.cs.rochester.edu (heart.cs.rochester.edu [192.5.53.109]) by slate.cs.rochester.edu (8.6.9/O) with ESMTP id AAA02743 for ; Tue, 1 Dec 1998 00:22:58 -0500 Original-Received: (from zsh@localhost) by brain.cs.rochester.edu (8.9.0/8.8.5) id AAA01597; Tue, 1 Dec 1998 00:22:19 -0500 Original-To: ding@gnus.org X-Attribution: ZSH X-Face: 'IF:e51ib'Qbl^(}l^&4-J`'P!@[4~O|&k#:@Gld#b/]oMq&`&FVY._3+b`mzp~Jeve~/#/ ERD!OTe<86UhyN=l`mrPY)M7_}`Ktt\K+58Z!hu7>qU,i.N7TotU[FYE(f1;}`g2xj!u*l`^&=Q!g{ *q|ddto|nkt"$r,K$[)"|6,elPH= GJ6Q User-Agent: Gnus/5.070058 (Pterodactyl Gnus v0.58) XEmacs/20.4 (Emerald) Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 47 Xref: main.gmane.org gmane.emacs.gnus.general:19406 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:19406 >>>>> "Lloyd" == Lloyd Zusman writes: Lloyd> It seems that in some (all?) cases of text/plain decoding Lloyd> within a multipart message, the `mm-decode-string' function Lloyd> returns `nil'. I hope that this patch sheds some light on this Lloyd> problem. Sorry, I make a mistake in mm-decode-string. Fixed. ChangeLog: Tue Dec 1 00:15:36 1998 Shenghuo ZHU * mm-bodies.el (mm-decode-string): Return original string if not decode. -- Shenghuo :- cut --------------------------------- --- mm-bodies.el 1998/12/01 05:14:05 1.1 +++ mm-bodies.el 1998/12/01 05:14:44 @@ -172,14 +172,16 @@ (defun mm-decode-string (string charset) "Decode STRING with CHARSET." (setq charset (or charset rfc2047-default-charset)) - (when (featurep 'mule) - (let (mule-charset) - (when (and charset - (setq mule-charset (mm-charset-to-coding-system charset)) - enable-multibyte-characters - (or (not (eq mule-charset 'ascii)) - (setq mule-charset rfc2047-default-charset))) - (mm-decode-coding-string string mule-charset))))) + (or + (when (featurep 'mule) + (let (mule-charset) + (when (and charset + (setq mule-charset (mm-charset-to-coding-system charset)) + enable-multibyte-characters + (or (not (eq mule-charset 'ascii)) + (setq mule-charset rfc2047-default-charset))) + (mm-decode-coding-string string mule-charset)))) + string)) (provide 'mm-bodies)