From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61876 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general,gmane.mail.mh-e.devel Subject: Re: Gnus 5.10.6 problems with PGP/MIME (test cases) Date: Tue, 07 Feb 2006 16:46:25 +0900 Organization: Emacsen advocacy group Message-ID: References: <19643.1137028354@juniper.net> <26554.1137393402@juniper.net> <25107.1137439020@olgas.newt.com> <73630.1137440939@juniper.net> <31430.1137488443@juniper.net> <85906.1137521874@juniper.net> <53032.1137578648@juniper.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1139298430 3968 80.91.229.2 (7 Feb 2006 07:47:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Feb 2006 07:47:10 +0000 (UTC) Cc: mdb@gnu.org, mh-e-devel@lists.sourceforge.net, ding@gnus.org Original-X-From: ding-owner+m10405@lists.math.uh.edu Tue Feb 07 08:47:07 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 1F6NZ2-00087X-EB for ding-account@gmane.org; Tue, 07 Feb 2006 08:47:04 +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 1F6NYx-00045C-00; Tue, 07 Feb 2006 01:46:59 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1F6NYe-000457-00 for ding@lists.math.uh.edu; Tue, 07 Feb 2006 01:46:40 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1F6NYa-0007bM-Fg for ding@lists.math.uh.edu; Tue, 07 Feb 2006 01:46:40 -0600 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1F6NYY-0004u3-00 for ; Tue, 07 Feb 2006 08:46:34 +0100 Original-Received: from [205.234.185.198] (port=39138 helo=mail.jpl.org) by washington.hostforweb.net with esmtpa (Exim 4.52) id 1F6NZf-0007oU-Av; Tue, 07 Feb 2006 01:47:43 -0600 Original-To: Daiki Ueno 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.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:QbhMGgd+iS6rsCj2pj/KITjiorY= X-Hashcash: 1:20:060207:ueno@unixuser.org::hKbeV+jiQVxnJdpC:000000000000000000000000000000000000000000000KY7 X-Hashcash: 1:20:060207:mdb@gnu.org::+GywhyE0cr8iSpg4:0000006T6A X-Hashcash: 1:20:060207:mh-e-devel@lists.sourceforge.net::toCWozm8ntNtsxdA:000000000000000000000000000002Pxg X-Hashcash: 1:20:060207:ding@gnus.org::0liZMnB8c37FUweP:00003wfG X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61876 gmane.mail.mh-e.devel:11594 Archived-At: >>>>> In >>>>> Daiki Ueno wrote: >>>>>> In >>>>>> Katsumi Yamaoka wrote: >> Thank you for the information. I roughly understood that >> `gpg --textmode' generates a *text* packet and recipients should >> treat it as text because it is *text*. > Though I have not yet read entire discussion, you are talking about > non-MIME encryption? No, I thought that it includes not only non-MIME encryption but also MIME encryption. > If so, it might be preferable that --textmode is specified only in > that case. If --textmode is specified, gpg _itself_ converts line > ending. `pgg-gpg-encrypt-region' always inserts CR in every line ending of text using `(pgg-as-lbt START END 'CRLF BODY)'. So, if the --textmode option is not specified, gpg doesn't treat sending data as text and recipients will see ^Ms in a decrypted message. However, only recipients who use Gnus will never see ^Ms because `pgg-gpg-process-region' uses `raw-text-dos' when reading a decrypted message from a temp file, and furthermore, `mml2015-pgg-decrypt' converts CRLF to LF. > On the GNU/Linux system: > $ ruby -e 'puts("abc\r\ndef\r\nghi\r\n")' > test.txt > $ gpg -q --encrypt --textmode -r ueno@unixuser.org test.txt > $ gpg -q --decrypt test.txt.gpg > test.txt > You need a passphrase to unlock the secret key for > user: "Daiki Ueno " > ... > $ hd test.txt > 00000000 61 62 63 0a 64 65 66 0a 67 68 69 0a |abc.def.ghi.| > 0000000c > All CRLF are converted to LF. Yes, that's right. > This might cause a problem if you send an > encrypted and signed data in RFC1847 encapsulation (RFC3156, section > 6.1). After decryption, it does no longer contain the signed material > identical as before encryption. That's indeed a problem. Do you know the way to verify it using Gnus? I don't know what mml command do that. In addition, do you have an idea to solve the ^Ms problem that I mentioned above? > Please add *me* to the Cc: list if you mention changes obviously > conflicting with my intension such as below. Otherwise, I will not be > aware of them. I'm sorry to have not informed it to you. I must do it from the next time. I thought informing it to you was not necessary because I found out someone added --textmode in Gnus of the Emacs version (i.e., Gnus v5.11) before I did it. I couldn't discover who did it in Emacs when, though.