From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65073 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: (Re-)coding problems forwarding calendar attachment Date: Thu, 23 Aug 2007 13:42:23 +0900 Organization: Emacsen advocacy group Message-ID: References: <87d4xfenht.fsf@obelix.mork.no> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1187844259 29463 80.91.229.12 (23 Aug 2007 04:44:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Aug 2007 04:44:19 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M13583@lists.math.uh.edu Thu Aug 23 06:44:17 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1IO4YH-0007aS-RC for ding-account@gmane.org; Thu, 23 Aug 2007 06:44:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1IO4XH-0008OH-EW; Wed, 22 Aug 2007 23:43:11 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1IO4XG-0008O3-2C for ding@lists.math.uh.edu; Wed, 22 Aug 2007 23:43:10 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1IO4XE-0001O4-Hs for ding@lists.math.uh.edu; Wed, 22 Aug 2007 23:43:09 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1IO4XC-0005Jk-00 for ; Thu, 23 Aug 2007 06:43:07 +0200 Original-Received: from [66.225.201.151] (port=50850 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.63) (envelope-from ) id 1IO4Wc-0000Hz-8b for ding@gnus.org; Wed, 22 Aug 2007 23:42:31 -0500 X-Hashcash: 1:20:070823:ding@gnus.org::N4dlm/YGZchvNrCi:00007POC 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.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:FkLC/Jeqe17ukEn59RCCCWsz+Ak= X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65073 Archived-At: >>>>> Bj=F8rn Mork wrote: > I have problems forwarding calendar attachments using a current CVS > Gnus. > I don't really know if this posting will survive since I'm posting it > using Gnus, but I'm trying to force it to 8bit latin1 (knowing that > there are really utf-8 characters embedded within this article). Maybe it survived, if the changes that I made in the CVS trunk solve your problem. ;-) > This is how the original Microsoft generated blob looks like: > ------_=3D_NextPart_001_01C7E4B1.D35AB8EB > Content-Type: text/calendar; method=3DREQUEST; name=3D"meeting.ics" > Content-Transfer-Encoding: 8bit > Content-class: urn:content-classes:calendarmessage [...] > So they are using > - 8bit encoding, > - mime-type text/calendar, > - default charset, > - vCalendar version 2.0 > This all looks good to me. According to RFC2445, the default charset > for an iCalendar object is UTF-8, and the text within the object looks > like valid UTF-8 to me. I've modified Gnus so as to use UTF-8 by default for decoding text/calender parts. > If I try to forward a mail like this, Gnus will recode the attachment > using it's own defaults: > - quoted-printable encoding, > - mime-type text/calendar, > - charset utf-8, > - vCalendar version 2.0 > But when sendting it I get the annoying question > "Non-printable characters found. Continue sending? (d, r, i, e, ?)" > and even if I answer "i" to ignore, the contents > is changed resulting in invalid UTF-8: It is because Gnus doesn't decode the text/calendar part since Gnus doesn't know the default charset for it, and inserts raw UTF-8 data in the message buffer. [...] > If I try to forward a raw copy of the mail with the attachment (C-u 2 > C-c C-f), I get the mime-headers unchanged as expected. (You don't need `C-u' in Gnus buffers; just type `2 C-c C-f'.) Now you can simply use `C-c C-f' and Gnus will not make such a question. Even if you have to use `2 C-c C-f' in order not to re-encode the text/calendar part, you will not be prompted for a question now. Or is it better that Gnus always uses the raw form for text/calendar parts regardless of the prefix argument? > But I get the same annoying question and the contents is still > changed adding a "=C3" in front of the UTF-8 multibyte characters > resulting in invalid UTF-8: This is due to a bug in mml.el.