From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/47463 Path: main.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: coding-system for drafts Date: Wed, 30 Oct 2002 10:36:01 +0900 Organization: Emacsen advocacy group Sender: owner-ding@hpc.uh.edu Message-ID: References: <84adl2llk6.fsf@crybaby.uni-duisburg.de> <84y98htj5s.fsf@crybaby.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035942024 22493 80.91.224.249 (30 Oct 2002 01:40:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 30 Oct 2002 01:40:24 +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 186hqC-0005pt-00 for ; Wed, 30 Oct 2002 02:40:16 +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 186hmn-0001TU-00; Tue, 29 Oct 2002 19:36:45 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 29 Oct 2002 19:37:29 -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 TAA12587 for ; Tue, 29 Oct 2002 19:37:14 -0600 (CST) Original-Received: (qmail 4181 invoked by alias); 30 Oct 2002 01:36:16 -0000 Original-Received: (qmail 4176 invoked from network); 30 Oct 2002 01:36:16 -0000 Original-Received: from unknown (HELO mars.web-hosting.com) (207.228.244.150) by gnus.org with SMTP; 30 Oct 2002 01:36:16 -0000 Original-Received: from localhost ([207.228.245.242]) by mars.web-hosting.com (8.11.1/8.11.1) with ESMTP id g9U1aFj21200 for ; Tue, 29 Oct 2002 20:36:15 -0500 (EST) Original-To: ding@gnus.org Mail-Copies-To: never X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2.92 (sparc-sun-solaris2.6) Cancel-Lock: sha1:udoPTM/X8RaosLkOvMtdny1kRHo= X-Hashcash: 021030:ding@gnus.org:8a4b1f53faa6d0a5 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:47463 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:47463 >>>>> In <84y98htj5s.fsf@crybaby.uni-duisburg.de> >>>>> kai.grossjohann@uni-duisburg.de (Kai Gro=DFjohann) wrote: > Katsumi Yamaoka writes: >> 3. Under FSF Emacs, read a draft file as raw-text into a buffer >> if the value of message-draft-coding-system is iso-2022-7bit, >> otherwise use the value of message-draft-coding-system itself >> to read a file. In the former case, decode the buffer >> contents as emacs-mule if there are over-7-bit data in a >> buffer, otherwise decode the contents using the value of >> message-draft-coding-system. > Why can't you read a draft as iso-2022-7bit? After all, that's the > coding system that was used for saving it, too. Yes, of course. However, there might be draft files which have been saved as emacs-mule before updating Gnus. Those files can't be read as iso-2022-7-bit. Is it superfluous? > And then, you could write the encoding of the draft into a header. It's coincidence. I got the same proposal from Daiki Ueno before one month and a half. > Then a missing header means to do what has been done up to now so we > stay backwards compatible. WDYT? Although it is rational apparently, it takes efforts that: We have to read a draft file twice, however large a file may be. We should use a local-hook like write-contents-hooks for adding an extra header, though it isn't difficult. An extra header should be deleted before sending. Gnus can do it, don't other programs use the same draft? Since message-draft-coding-system is not a user option, I didn't think we should do so. And it is an important point, what coding-system should we use for decoding when there is no extra header? After all, I think it is the same as the present way to assume that it is emacs-mule. --=20 Katsumi Yamaoka