From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55375 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: Trailing whitespace and PGP/MIME Date: Tue, 30 Dec 2003 12:31:08 +0100 Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1072783903 29299 80.91.224.253 (30 Dec 2003 11:31:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Dec 2003 11:31:43 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M3915@lists.math.uh.edu Tue Dec 30 12:31:37 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 1AbI65-0003Ub-00 for ; Tue, 30 Dec 2003 12:31:37 +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 1AbI5r-0006Fv-00; Tue, 30 Dec 2003 05:31:23 -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 1AbI5j-0006Fp-00 for ding@lists.math.uh.edu; Tue, 30 Dec 2003 05:31:15 -0600 Original-Received: from yxa.extundo.com (178.230.13.217.in-addr.dgcsystems.net [217.13.230.178]) by justine.libertine.org (Postfix) with ESMTP id 271483A0036 for ; Tue, 30 Dec 2003 05:31:15 -0600 (CST) Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.10/8.12.10) with ESMTP id hBUBV9AU021246 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 30 Dec 2003 12:31:10 +0100 Original-To: Ivan Boldyrev Mail-Copies-To: nobody X-Hashcash: 0:031230:boldyrev@cgitftp.uiggm.nsc.ru:ad9d2f3bc4e5e733 X-Hashcash: 0:031230:ding@gnus.org:3f3b301c07d82532 In-Reply-To: (Ivan Boldyrev's message of "Tue, 30 Dec 2003 15:04:44 +0600") User-Agent: Gnus/5.1004 (Gnus v5.10.4) Emacs/21.3.50 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:55375 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:55375 Ivan Boldyrev writes: >> 2003-10-27 Simon Josefsson >> >> * mm-bodies.el (mm-body-encoding): Don't use QP when message body >> only consists of short lines and ASCII, when >> mm-use-ultra-safe-encoding. Refer to 'About foo' thread in >> gnus-bug, e.g. , for more discussion. >> This make it possible to pipe the raw RFC 822 message into 'gpg' >> and have the signature work. > > It's true only for Plain PGP. Yes, that was the intent. > 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. > 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). > 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))))) (eq bits '7bit)) bits) ((and (not mm-use-ultra-safe-encoding) > BTW, is gnus-bug archived somewhere? See .