From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/47098 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: pgg doesn't seem to like me Date: Thu, 10 Oct 2002 17:18:33 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: <20021001172713.05F1E3B8CE@athene.jamux.com> <87d6quugw5.fsf@athene.jamux.com> <87adly6kck.fsf@mail.paradoxical.net> <874rc5vs16.fsf@athene.jamux.com> <874rc57u6e.fsf@mail.paradoxical.net> <873croy9g1.fsf@athene.jamux.com> <87elb5qyrx.fsf@athene.jamux.com> <87adlskjh3.fsf@athene.jamux.com> <878z1bic4s.fsf@athene.jamux.com> <87lm56sxj4.fsf@athene.jamux.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1034263144 14263 127.0.0.1 (10 Oct 2002 15:19:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 10 Oct 2002 15:19:04 +0000 (UTC) Cc: ding@gnus.org Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17zf5a-0003hr-00 for ; Thu, 10 Oct 2002 17:19:03 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17zf5V-0005eG-00; Thu, 10 Oct 2002 10:18:57 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 10 Oct 2002 10:19:40 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id KAA19756 for ; Thu, 10 Oct 2002 10:19:24 -0500 (CDT) Original-Received: (qmail 22904 invoked by alias); 10 Oct 2002 15:18:36 -0000 Original-Received: (qmail 22899 invoked from network); 10 Oct 2002 15:18:35 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by gnus.org with SMTP; 10 Oct 2002 15:18:35 -0000 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) by yxa.extundo.com (8.12.6/8.12.6) with ESMTP id g9AFIYFt022378; Thu, 10 Oct 2002 17:18:34 +0200 Original-To: jam@jamux.com (John A. Martin) Mail-Copies-To: nobody X-Hashcash: 0:021010:jam@jamux.com:9357a604ef2c314e X-Hashcash: 0:021010:ding@gnus.org:9080754c3fcd17aa In-Reply-To: <87lm56sxj4.fsf@athene.jamux.com> (jam@jamux.com's message of "Thu, 10 Oct 2002 00:55:27 -0400") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-debian-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:47098 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:47098 jam@jamux.com (John A. Martin) writes: > >> Encrypted pgpmime (combined) messages mailed to myself show > >> extraneous Ctrl-M characters at the end of all body lines. > > Simon> I can't reproduce this with PGG and GnuPG CVS. Do you use > Simon> PGG? Which OpenPGP implementation? Does this patch help? > > Simon> --- mml2015.el.~6.53.~ 2002-10-04 00:56:39.000000000 +0200 > Simon> +++ mml2015.el 2002-10-10 00:33:58.000000000 +0200 > Simon> @@ -662,6 +662,9 @@ > Simon> (if (condition-case err > Simon> (prog1 > Simon> (pgg-decrypt-region (point-min) > Simon> (point-max)) > Simon> + (goto-char (point-min)) > Simon> + (while (search-forward "\r\n" nil t) > Simon> + (replace-match "\n" t t)) > Simon> (setq decrypt-status > Simon> (with-current-buffer > Simon> mml2015-result-buffer > Simon> (buffer-string)))) > > pgg gives no change from before with the setup above with or without > the patch. As before, the same messages decrypted by gpg on the > command line or by mhe/mailcrypt are OK. Hm. Can you make a proper bug report (M-x gnus-bug) so I can see which emacs, operating system, etc you use, and other settings? Or send me an encrypted mail, then I can see if it is encrypting or decrypting that is buggy. > >> Signed only pgp messages mailed to myself are QP encoded and > >> show extraneous Ctrl-M characters at the end of all body lines > >> when verified and displayed by gnus. > > Simon> I think I fixed the QP, but I don't see the ^M. > > Still same as before with or without the patch above. Probably same bug. Is the message properly verified otherwise? > >> Encrypted pgp (combined) messages are not encoded, signed, nor > >> encrypted. > > Simon> Or sent, as it generated a elisp error, I presume. I think > Simon> I fixed this. > > Before, no elisp error and the messages were sent plaintext! > > Now encrypted pgp (combined) messages are signed and encrypted but > when decrypted in gnus show extraneous Ctrl-M characters at the end of > all body lines. The same messages decrypted by gpg on the command > line or by mhe/mailcrypt are OK. That's probably good then, only the ^M bug left. > >> cat textfile|gpg -sat|/usr/sbin/sendmail myself; cat inbox/1 > >> > >> cat textfile|gpg -seatr myself|/usr/sbin/sendmail myself > >> cat inbox/1|gpg > >> > >> In other words, why should gnus pgp muck with pgp not mime? > >> Mhe/mailcrypt does not. Gnus/mailcrypt does not[1]. > > Simon> Do you still see any differences? > > No change from before except that the pgp(no-mime) encrypted messages > are signed and encrypted but gnus shows the ^M. Ok, maybe this is due to some combination of OS and emacs version that I don't use. > The pgp(no-mime) signed messages are QP and so not verified by gpg > on the command line. I recall some discussion about whether cleartext armored OpenPGP messages should be QP'd or not when mml1991.el was added, and that the outcome was that they should. It seems ugly to me, and I don't see why it would be necessary, but maybe I forgot. > Is there an easy way to tell for sure that the messages are being > processed by pgg and not by anyone else that should not be involved. Other than checking the configuration or edebugging everything, I don't know. > Since the encrypted messages look OK when decrypted on the command > line maybe something wrong is happening after gnus decrypting? Yup. Or your terminal is simply hiding the ^M's...