From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/33490 Path: main.gmane.org!not-for-mail From: "Georg C. F. Greve" Newsgroups: gmane.emacs.gnus.general Subject: Crypto MIME issues... two bugs in gnus Date: 23 Nov 2000 22:48:50 +0100 Organization: GNU Project Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: main.gmane.org 1035169586 25406 80.91.224.250 (21 Oct 2002 03:06:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:06:26 +0000 (UTC) Cc: zsh@cs.rochester.edu (ShengHuo ZHU) Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by mailhost.sclp.com (Postfix) with ESMTP id 69397D049A for ; Thu, 23 Nov 2000 16:52:29 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id PAB06269; Thu, 23 Nov 2000 15:52:19 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 23 Nov 2000 15:49:36 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id PAA08397 for ; Thu, 23 Nov 2000 15:49:25 -0600 (CST) Original-Received: from mail.arcor-ip.de (mail-ffm-p.arcor-ip.de [145.253.2.10]) by mailhost.sclp.com (Postfix) with ESMTP id 365A6D049A for ; Thu, 23 Nov 2000 16:49:50 -0500 (EST) Original-Received: from fusebox.gnu-hamburg (145.253.176.89) by mail.arcor-ip.de; 23 Nov 2000 22:49:19 +0100 Original-Received: from reason.gnu-hamburg (root@reason.gnu-hamburg [10.129.4.1]) by fusebox.gnu-hamburg (8.11.1/8.11.1) with ESMTP id eANLnIw28659; Thu, 23 Nov 2000 22:49:18 +0100 Original-Received: (from greve@localhost) by reason.gnu-hamburg (8.11.1/8.11.1/Debian 8.11.0-6) id eANLmsc04727; Thu, 23 Nov 2000 22:48:54 +0100 Original-To: ding@gnus.org X-Home-Page: http://www.gnu.org/people/greve.html X-ICQ-Number: 10016966 X-Request-PGP: mailto:greve-public@fusebox.hanse.de X-PGP-Affinity: will accept encrypted messages for GNU Privacy Guard Original-Lines: 95 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:33490 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:33490 --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Transfer-Encoding: quoted-printable Hi! Alright, I did some searching in the code for the reasons of my encryption problems with the recent gnus and found them in the gnus code.=20 Problem 1: when sending out encrypted mail, the Cc and Bcc fields get ignored Problem 2: I never get prompted for recipients in order to make sure they are correct I will confine myself to mailcrypt here as gpg.el does not work for me and mailcrypt does support GPG very well... but the problems would be similar with gpg.el. When doing proper MIME crypto mails, gnus calls mc-encrypt-generic which takes the recipients as an argument and basically only asks for Recipients if there are none specified.=20 If I put this into my .gnus: =2D------- (defun mc-encrypt-generic (&optional recipients scheme start end from sign) "*Generic function to encrypt a region of data." =20=20 (save-excursion (or start (setq start (point-min-marker))) (or (markerp start) (setq start (copy-marker start))) (or end (setq end (point-max-marker))) (or (markerp end) (setq end (copy-marker end))) (run-hooks 'mc-pre-encryption-hook) =20=20=20=20 ;; this will force it to prompt us for recipients: (setq recipients (mc-cleanup-recipient-headers (read-string "Recipients: " recipients))) =20=20=20=20 (or scheme (setq scheme mc-default-scheme)) (if (funcall (cdr (assoc 'encryption-func (funcall scheme))) recipients start end from sign) (progn (run-hooks 'mc-post-encryption-hook) t)))) =2D------- (essentially the original function - only modified in so far as it ALWAYS asks for recipients) , it does solve Problem 2 for me. There is no other way because only the mc-encrypt-message can be made to ask for recipients. But this still leaves Problem 1. Well. Mailcrypt only gets the CONTENT stripped of all headers. Which means that it has no chance to guess the recipients - this would be the job of gnus in this case. It seems that it is done in mml-generate-mime-1 - which apparently only pays attention to the "To:" field. Unfortunately the function is pretty big and I would not like to create my own version of it. So as far as I can see the switch to Crypto MIME introduced two "bugs" in gnus (they are not really bugs - more like missing features that "became" missing by going to Crypto MIME): 1.) When gathering the recipients, gnus should pay attention to the Cc: and Bcc: fields. 2.) There should be an option to make gnus ask for crypto recipients. Possibly giving all the To:, Cc:, Bcc: addresses as default. Oh. And one other thing. When doing: <#multipart encrypt=3Dpgpmime recipients=3D"someone@someplace"> gnus does not pass along the recipients parameter. I can see that because my function change shown above allows me to see the recipients passed to mc-encrypt-generic. They are ALWAYS just the people on the To: line regardless of Cc:, Bcc: or "recipients" option. Alright, I hope this will prove helpful enough to solve the remaining problems quickly... Regards, Georg =2D-=20 Georg C. F. Greve the monthly GNU forum in English, German,=20 French, Spanish and Japanese. Check it out=20 at http://brave-gnu-world.org/ --=-=-=-- --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP MESSAGE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.5 and Gnu Privacy Guard iD8DBQE6HZDGbvivwoZXSsoRApFGAJwKev67N21mzKmxxyIR6+r5smbUHwCeK57E 8vpebkGvOMj0VROkUWa1YDs= =UhZF -----END PGP MESSAGE----- --==-=-=--