From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61919 Path: news.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.gnus.general,gmane.mail.mh-e.devel Subject: Re: Gnus 5.10.6 problems with PGP/MIME (test cases) Date: Thu, 09 Feb 2006 14:24:55 +0900 Message-ID: <82f83936-8fb8-44a4-bb15-949ca44b6e72@well-done.deisui.org> References: <19643.1137028354@juniper.net> <25107.1137439020@olgas.newt.com> <73630.1137440939@juniper.net> <31430.1137488443@juniper.net> <85906.1137521874@juniper.net> <53032.1137578648@juniper.net> <8b63142a-b090-4783-a3a5-0832d7289f38@well-done.deisui.org> <26653.1139305204@juniper.net> <9bda6607-510b-468c-bd1e-ec9b8865cdd2@well-done.deisui.org> <15566.1139355525@juniper.net> <7334ab51-5c86-4d97-92cb-21f2e7debd8d@well-done.deisui.org> <086fafe1-6999-41f0-8a3d-cf042757aeef@well-done.deisui.org> <89375.1139412469@juniper.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1139462725 1392 80.91.229.2 (9 Feb 2006 05:25:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Feb 2006 05:25:25 +0000 (UTC) Cc: ding@gnus.org, mh-e-devel@lists.sourceforge.net Original-X-From: ding-owner+m10448@lists.math.uh.edu Thu Feb 09 06:25:16 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 1F74Ir-0004QE-G4 for ding-account@gmane.org; Thu, 09 Feb 2006 06:25:14 +0100 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 1F74In-00033j-00; Wed, 08 Feb 2006 23:25:09 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1F74Hm-00033b-00 for ding@lists.math.uh.edu; Wed, 08 Feb 2006 23:24:06 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1F74Hj-0000IP-IR for ding@lists.math.uh.edu; Wed, 08 Feb 2006 23:24:06 -0600 Original-Received: from g96069.scn-net.ne.jp ([210.231.96.69] helo=well-done.deisui.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1F74Hi-0006pR-00 for ; Thu, 09 Feb 2006 06:24:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=well-done.deisui.org) by well-done.deisui.org with esmtp (Exim 4.60) (envelope-from ) id 1F74He-0008Sz-Iy; Thu, 09 Feb 2006 14:23:58 +0900 Original-To: "Mark D. BaTo: Mark D. Baushke" , Katsumi Yamaoka X-Attribution: DU In-Reply-To: Mark D. Baushke's message of "Wed, 08 Feb 2006 07:27:49 -0800" User-Agent: T-gnus/6.17.3 (based on No Gnus v0.3) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 XEmacs/21.4.17 (i386-debian-linux) MULE X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61919 gmane.mail.mh-e.devel:11609 Archived-At: >>>>> In <89375.1139412469@juniper.net> >>>>> "Mark D. Baushke" wrote: > > > Currently, `pgg-gpg-encrypt-region' doesn't seem to support raw > > > binary data because it uses `pgg-as-lbt', which converts LF to > > > CRLF. Should it be simply removed? > > > > Just one suggestion: This change breaks API. So it would be safe to > > first make sure the caller of pgg-encrypt-region (i.e. Gnus' PGP/MIME > > code) supplies input data which have CRLF line endings and then remove > > pgg-as-lbt. > Doing this means that you should add the --textmode switch as the line > endings would now be CRLF rather than being the native line ending that > GnuPG would be expecting. I forgot this effect of --textmode. Then, no API compatibility issue should arise as long as pgg-text-mode is set properly. The attached patch should be sufficient for Gnus. > If you need to force CRLF or use pgg-as-lbt on the region, pgg-as-lbt is just redundant since there is no application which requires implicit conversion of line-endings to CRLF _and_ to mark the data as binary. >>>>> In >>>>> Katsumi Yamaoka wrote: > >>> I attach a patch which allows users to select text-mode or binary-mode > >>> by setting pgg-text-mode. > >>> +(defvar pgg-text-mode nil > >>> + "If t, inform the recipient that the input is text.") > >> Even if it is useful, may we make it default to t? > > Hmm, I feel that it is natural to let the default be the same as GnuPG. > You're right. However, Gnus users have been using it only with > text for a long time. Gnus users? People who would become happy with enabling pgg-text-mode by default are not Gnus users but (only a few) Gnus developers. If a Gnus developer properly set pgg-text-mode in his code, Gnus users need not be aware of it. So, I think it is not worth changing it.