From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/47507 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.gnus.general Subject: Re: posting-charset abolition Date: Fri, 01 Nov 2002 07:51:21 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: <4n3cqmy93k.fsf@benko.bwh.harvard.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1036133758 5349 80.91.224.249 (1 Nov 2002 06:55:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 1 Nov 2002 06:55:58 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 187Vil-0001O1-00 for ; Fri, 01 Nov 2002 07:55:56 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 187Vh3-0001I2-00; Fri, 01 Nov 2002 00:54:09 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 01 Nov 2002 00:54:47 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id AAA21765 for ; Fri, 1 Nov 2002 00:54:10 -0600 (CST) Original-Received: (qmail 3745 invoked by alias); 1 Nov 2002 06:53:21 -0000 Original-Received: (qmail 3740 invoked from network); 1 Nov 2002 06:53:20 -0000 Original-Received: from pfepc.post.tele.dk (193.162.153.4) by gnus.org with SMTP; 1 Nov 2002 06:53:20 -0000 Original-Received: from defun.localdomain (0xc3f952d0.esnxr1.ras.tele.dk [195.249.82.208]) by pfepc.post.tele.dk (Postfix) with ESMTP id 64274262D6A for ; Fri, 1 Nov 2002 07:53:14 +0100 (CET) Original-To: ding@gnus.org In-Reply-To: (Katsumi Yamaoka's message of "Fri, 01 Nov 2002 11:43:52 +0900") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-redhat-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:47507 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:47507 --=-=-= Katsumi Yamaoka writes: > Yes. It can be done by using message-header-hook or something. > However, though I haven't seen the source code in details yet, I > think there is a more smart solution. Because, even if I use > the following codes to remove CTE:8, CTE is added if necessary. > > (eval-after-load "gnus-msg" > '(if (boundp 'gnus-group-posting-charset-alist) > (let ((news (assq 'message-this-is-news > gnus-group-posting-charset-alist))) > (if news > (setcdr news '(nil nil)))))) I think this is a kludge. Shouldn't we rather fix `mm-body-encoding' to return the proper CTE for 7bit charsets? What do you think about this fix? --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=mm-bodies.el.diff --- /home/harder/gnus/lisp/mm-bodies.el Wed Aug 7 16:57:09 2002 +++ mm-bodies.el Fri Nov 1 07:35:07 2002 @@ -143,6 +143,7 @@ bits) ((and (not mm-use-ultra-safe-encoding) (not longp) + (not (eq '7bit (cdr (assq charset mm-body-charset-encoding-alist)))) (or (eq t (cdr message-posting-charset)) (memq charset (cdr message-posting-charset)) (eq charset mail-parse-charset))) --=-=-=--