From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/56277 Path: main.gmane.org!not-for-mail From: Ivan Boldyrev Newsgroups: gmane.emacs.gnus.general Subject: Re: [gnu.emacs.gnus] Automatically sign/encrypt messages Date: Wed, 04 Feb 2004 12:37:03 +0600 Organization: this field is intentionally left blank Sender: ding-owner@lists.math.uh.edu Message-ID: References: <4nfzdst77z.fsf@collins.bwh.harvard.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: sea.gmane.org 1075885357 21990 80.91.224.253 (4 Feb 2004 09:02:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Feb 2004 09:02:37 +0000 (UTC) Original-X-From: ding-owner+M4817=ding+2Daccount=gmane.org@lists.math.uh.edu Wed Feb 04 10:02:29 2004 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 1AoIvV-0007o8-00 for ; Wed, 04 Feb 2004 10:02:29 +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 1AoIvU-0003yt-00 for ding-account@gmane.org; Wed, 04 Feb 2004 03:02:28 -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 1AoIvI-0003yj-00 for ding@lists.math.uh.edu; Wed, 04 Feb 2004 03:02:16 -0600 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id F3B253A0079 for ; Wed, 4 Feb 2004 03:02:14 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AoIvF-0007LK-00 for ; Wed, 04 Feb 2004 10:02:13 +0100 Original-Received: from p232.bass4.sinor.ru ([217.70.108.232]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed Feb 4 09:02:13 2004 Original-Received: from boldyrev+nospam by p232.bass4.sinor.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed Feb 4 09:02:13 2004 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Original-Lines: 40 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p232.bass4.sinor.ru X-Comment-To: Ted Zlatanov X-Request-PGP: hkp://sks.keyserver.penguin.de X-PGP-KeyID: 0xA5BDD19856098673 (1024D) X-PGP-Fingerprint: 3640 E637 EE3D AA51 A59F 3306 A5BD D198 5609 8673 X-Mantra: OM MANI PADME HUM X-Livejournal: http://www.livejournal.com/users/lispnik/ X-Greenpeace: No animals were harmed in this message Mail-Copies-To: nobody Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAADFBMVEX+UDD+b1X+jXj///9m 0ZukAAABCElEQVQoU63OrU5jYRCA4cGsWARiJQKPoAIEhpwEi9orwK/tBZCQgCGEcAUVkJAUUYfb fHrDpghkTYOBBEEpoaX09HsQ5/BzAbzuyWQmE74U349Zzh8YTyblO25HrxcvUoWn8fLvE0WF0TB+ zKUar4Oj1srPGnn36uHverUzvVnrkBsIw0EDujuE8qzD7LyfCLa03ZxeVAfmB+2ip0SY7fR4kAtC qQU2CSNVh0m4xj26Sfj1BbmJW/xPIq/W+EdoYoxL9eRJ1iKsgzJ1CBsJhjqEvQQHCsK0sGBS5ESw rf9nv/5aj3byUuERjCrkBvQquISlGs/opxqzhrslNRzHog/kqU+89714A9pRDYgA4v5gAAAAAElF TkSuQmCC User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:56277 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:56277 --=-=-= On 8643 day of my life Ted Zlatanov wrote: > Is it OK if I make a new function based on the attached message? > > I'll call it mml-secure-message-encrypt-or-sign-pgpmime > > Feel free to make alternate suggestions or tell me I'm wrong :) If there is a recipient with key in To and number of recipients without a keys in Bcc or Cc, the hook will not let send a message (because it will attempt to encrypt, but fail). It also useful to check if there is only one recipient in To (and maybe, try to check every recipient's key; then it worth to process Cc/Bcc as well). It's also would be nice to check recipients with regexps... -- Ivan Boldyrev Today is the first day of the rest of your life. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.3.4 (GNU/Linux) iQEVAwUAQCCTEg4ALcwzZFpVAQJ9vgf/Xz23VifYXwY8zlxHg5OJ2lhuAG4hL9+p WOQGf1Zq/+9T/hJupzYT8l6kN6ciaplQd8ix8UgIIif6Lm48oM0YMArvTfX7GzFI fJZZpTpk1GvWJe+Bu+0Gymi9Se3JT0QXgYPD+RYyRQtcOHu/bJRSStc4klWluV+C 44ghMeNWVWTKEQ7ZWSmrSU/DyEcZWzY+ayGaPx3v8ojZ7L+PcbGEfw7Z5VVcP/HJ 1gCGVLaaIsPXC8XiK+pkw0YKfxTIhCGBHGnRBSRpEkEtV7xaUJB98jHYPW4taQ7X qYtqzposrLiJa1h78NcJuec1BSOCkHr+jIUgOiYiWIQ41JDdsYVvGw== =LGML -----END PGP SIGNATURE----- --=-=-=--