From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55382 Path: main.gmane.org!not-for-mail From: Ivan Boldyrev Newsgroups: gmane.emacs.gnus.general Subject: Re: Trailing whitespace and PGP/MIME Date: Tue, 30 Dec 2003 19:12:49 +0600 Organization: this field is intentionally left blank Sender: ding-owner@lists.math.uh.edu Message-ID: <9boetq1mb2.fsf@cgitftp.uiggm.nsc.ru> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1072806650 3545 80.91.224.253 (30 Dec 2003 17:50:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Dec 2003 17:50:50 +0000 (UTC) Original-X-From: ding-owner+M3922@lists.math.uh.edu Tue Dec 30 18:50:45 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AbO0y-0004dj-00 for ; Tue, 30 Dec 2003 18:50:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1AbO0n-00079P-00; Tue, 30 Dec 2003 11:50:33 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AbJpY-0006ao-00 for ding@lists.math.uh.edu; Tue, 30 Dec 2003 07:22:40 -0600 Original-Received: from cgitftp.uiggm.nsc.ru (cgitftp.uiggm.nsc.ru [194.226.187.1]) by justine.libertine.org (Postfix) with ESMTP id E18413A0036 for ; Tue, 30 Dec 2003 07:22:38 -0600 (CST) Original-Received: from cgitftp.uiggm.nsc.ru (localhost.localdomain [127.0.0.1]) by cgitftp.uiggm.nsc.ru (8.12.1-20030917/8.12.1) with ESMTP id hBUDM6qt017813 for ; Tue, 30 Dec 2003 19:22:11 +0600 Original-Received: (from uucp@localhost) by cgitftp.uiggm.nsc.ru (8.12.1-20030917/8.12.1/Submit) with UUCP id hBUDM6UJ017812 for ding@gnus.org; Tue, 30 Dec 2003 19:22:06 +0600 Original-Received: by localhost (Postfix, from userid 500) id 340BB4607; Tue, 30 Dec 2003 19:12:50 +0600 (NOVT) X-Comment-To: Simon Josefsson Original-To: ding@gnus.org Mail-Followup-To: never@localhost.libertine.org X-Request-PGP: hkp://subkeys.pgp.net:11371 X-PGP-KeyID: 0xA5BDD19856098673 (1024D) X-PGP-Fingerprint: 3640 E637 EE3D AA51 A59F 3306 A5BD D198 5609 8673 X-Mantra: OM MANI PADME HUM X-Greenpeace: No animals were harmed in this message X-Face: PH}*k.3oBVs#UXxo9T/`6!vlSI.1C@7ht0^wH,DeRlG\)j3v:@^jABw--/o=BTWpuau^vQM ]WU)p;0L%v?QTVD%s^Cy#D User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:55382 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:55382 On 8608 day of my life Simon Josefsson wrote: >> PGP/MIME uses detached signatures, that cannot be verified with >> piping. > > Well... technically, it can be verified by piping after glueing the > detached signature together with the data. I believe Gnus uses this > if you use Mailcrypt as the backend, because mailcrypt can't verify > detached signatures. If you do preprocessing such as gluing, you can do MIME decoding as well :) >> My opinion is that whitespaces must be removed from PGP/MIME-encoded >> messages but not from Plain PGP-encoded ones. > > I agree for PGP/MIME, and probably for plain PGP as well (although the > number of problems with plain PGP and CTE's have almost made me > consider it a lost cause). Plain PGP is considered harmful :) So it is up to message composer responsibility to deal with "^From" and " $" in Plain PGP messages. BTW, some MTA can decode one-part MIME-encoded messages and deliver them as 8bit, for example. But multipart messages (and PGP/MIME) are never decoded by correct MTA. So, even if we will encode Plain PGP messages, it will be probably decoded anyway. So, it is useless. Plain PGP must be supported, but with note: NO WARRANTY. THERE IS NO WARRANTY OF CORRECT DELIVERY OF PLAIN PGP MESSAGES. USE IT ON YOU OWN RISK. >> But it is current state of Gnus, isn't it? > > I don't think so, I was able to reproduce the problem with PGP/MIME > too. However, this patch should fix it. > > --- mm-bodies.el.~6.29.~ 2003-12-26 06:32:11.000000000 +0100 > +++ mm-bodies.el 2003-12-30 12:26:57.000000000 +0100 > @@ -132,7 +132,8 @@ > (cond > ((and (not longp) > (not (and mm-use-ultra-safe-encoding > - (save-excursion (re-search-forward "^From " nil t)))) > + (save-excursion (or (re-search-forward "^From " nil t) > + (re-search-forward " $" nil t))))) It's is better to do encoding always if we use PGP/MIME. Or even use (not mm-use-ultra-safe-encoding) >> BTW, is gnus-bug archived somewhere? > > See . Cool :) I use leafnode, so I don't see that articles at quimby never expire... --=20 Ivan Boldyrev =F5 =D6=C5=CE=DD=C9=CE=D9 =CC=C5=C7=DE=C5 =D0=CF=CC= =D5=DE=C9=D4=D8 =D0=D2=CF=DD=C5=CE=C9=C5, =DE=C5=CD =D2=C1=DA=D2=C5=DB=C5= =CE=C9=C5.