From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55377 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.gnus.general Subject: Re: Trailing whitespace and PGP/MIME Date: Tue, 30 Dec 2003 14:02:53 +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 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1072789577 5830 80.91.224.253 (30 Dec 2003 13:06:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Dec 2003 13:06:17 +0000 (UTC) Original-X-From: ding-owner+M3917@lists.math.uh.edu Tue Dec 30 14:06:10 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 1AbJZa-0007B5-00 for ; Tue, 30 Dec 2003 14:06:10 +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 1AbJZU-0006WH-00; Tue, 30 Dec 2003 07:06:04 -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 1AbJZQ-0006WC-00 for ding@lists.math.uh.edu; Tue, 30 Dec 2003 07:06:00 -0600 Original-Received: from pfepa.post.tele.dk (pfepa.post.tele.dk [195.41.46.235]) by justine.libertine.org (Postfix) with ESMTP id 377293A0036 for ; Tue, 30 Dec 2003 07:05:59 -0600 (CST) Original-Received: from [195.249.83.17] (0xc3f95311.esnxr2.ras.tele.dk [195.249.83.17]) by pfepa.post.tele.dk (Postfix) with ESMTP id D7D4B47FFE3 for ; Tue, 30 Dec 2003 14:05:56 +0100 (CET) Original-To: ding@gnus.org Mail-Followup-To: ding@gnus.org In-Reply-To: (Simon Josefsson's message of "Tue, 30 Dec 2003 12:05:51 +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:55377 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:55377 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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" :-) 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. - --=20 foo -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQE/8Xd9zEN/MEcathkRApd2AKCjjbupG6lNaFYJvE7XofYFhGbEJwCggqrG Ywl7sIQ0GmFpFu8JGG+3oXY=3D =3DBRl1 -----END PGP SIGNATURE-----