From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55388 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 21:56:07 +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 1072817789 24603 80.91.224.253 (30 Dec 2003 20:56:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Dec 2003 20:56:29 +0000 (UTC) Original-X-From: ding-owner+M3928@lists.math.uh.edu Tue Dec 30 21:56:26 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 1AbQuf-0006dP-00 for ; Tue, 30 Dec 2003 21:56:26 +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 1AbQuZ-0007zU-00; Tue, 30 Dec 2003 14:56:19 -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 1AbQuT-0007yX-00 for ding@lists.math.uh.edu; Tue, 30 Dec 2003 14:56:13 -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 7ABD73A0063 for ; Tue, 30 Dec 2003 14:56:11 -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 hBUKu9AU000543 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 30 Dec 2003 21:56:10 +0100 Original-To: ding@gnus.org Mail-Copies-To: nobody X-Hashcash: 0:031230:ding@gnus.org:3ef99bac8209679c In-Reply-To: (Jesper Harder's message of "Tue, 30 Dec 2003 14:02:53 +0100") 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:55388 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:55388 Jesper Harder writes: > Simon Josefsson writes: > >> Jesper Harder writes: >> >>> implementations MUST make sure that no trailing whitespace is >>> present after the MIME encoding has been applied. >>> >>> Fixing it the obvious way would, however, break the intention of this >>> change: >>> >>> 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. >> >> I think detecting if there are trailing SPC, and using QP in that case >> is reasonable. Does this work? >> >> - (save-excursion (re-search-forward "^From " nil t)))) >> + (save-excursion (or (re-search-forward "^From " nil t) >> + (re-search-forward " $" nil t))))) > > Yes, but this was what I meant by "the obvious way" :-) Ah. > It'll fix pgp/mime, but it will also force QP for inline pgp if you > use a signature -- which for a lot of people means _always_ -- thus > more or less reverting the intention of your previous change. Ah. Hm. Er. So what IS the right thing? The MUST above is for PGP/MIME, yes, but the _reason_ the MUST is there in the document is about as valid for plain PGP as it is for PGP/MIME, I think, arguing that the obvious approach is the right. One (non-)solution is to warn the user whenever the message content may not work reliably with plain PGP and ask the user if she wants to continue, or use PGP/MIME instead. There are many things on this list now, e.g., non-ASCII, trailing unencoded SPC, data that look dash escaped. This would be a useful feature, but just move the problem into the face of the user instead of solving it, and I doubt most users understand nor want to understand the problem.