From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: adehay@nerim.net (=?iso-8859-15?q?Aur=E9lien_DEHAY?=) Newsgroups: gmane.emacs.help Subject: pgg and archiving Date: Sun, 16 Nov 2003 16:42:56 +0100 Organization: Nerim -- xDSL Internet Provider Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <873ccouxof.fsf@adehay.net1.nerim.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1068997515 5986 80.91.224.253 (16 Nov 2003 15:45:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 16 Nov 2003 15:45:15 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 16 16:45:10 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ALP5K-00047f-00 for ; Sun, 16 Nov 2003 16:45:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ALQ1q-0000MF-D0 for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Nov 2003 11:45:38 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed.tiscali.ch!feed1.news.be.easynet.net!nerim.net!biggoron.nerim.net!not-for-mail Original-Newsgroups: gnu.emacs.gnus,gnu.emacs.help Original-Followup-To: gnu.emacs.gnus Original-Lines: 64 Original-NNTP-Posting-Host: adehay.net1.nerim.net Original-X-Trace: biggoron.nerim.net 1068997376 47459 213.41.151.9 (16 Nov 2003 15:42:56 GMT) Original-X-Complaints-To: abuse@nerim.net Original-NNTP-Posting-Date: Sun, 16 Nov 2003 15:42:56 +0000 (UTC) User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:O1uPgqnHWY5bH/+BHO+yOsYsJc8= Original-Xref: shelby.stanford.edu gnu.emacs.gnus:68738 gnu.emacs.help:118347 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:14288 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14288 Hello. I've got a strange (well, not so in fact) beahviour with Gnus and Pgg. I setup pgg for always signing mails I wrote, and Gnus to archive all my mails in a group. When I send a mail, Pgg ask 2 times my passphrase: one for signing out mail, one for signing archive mail, even if I configure Pgg to keep the passphrase for a couple of minutes. If someone can give me an answer or, even better, a solution, it would be nice. Here is the part of .gnus concerning archive and pgg (the archive folder is on an imap server): ;; -*-*-*-*-*-{ GnuPG }-*-*-*-*-*-*- (require 'pgg) (autoload 'pgg-encrypt-region "pgg" "Encrypt the current region." t) (autoload 'pgg-decrypt-region "pgg" "Decrypt the current region." t) (autoload 'pgg-sign-region "pgg" "Sign the current region." t) (autoload 'pgg-verify-region "pgg" "Verify the current region." t) (autoload 'pgg-insert-key "pgg" "Insert the ASCII armored public key." t) (autoload 'pgg-snarf-keys-region "pgg" "Import public keys in the current region." t) ;; Emacs should always decrypt and verify emails ;; automatically (setq mm-verify-option 'always) (setq mm-decrypt-option 'always) (setq gnus-buttonized-mime-types '("multipart/encrypted" "multipart/signed")) ;; Automcatically sign when sending mails (defun will-you-sign () (interactive) (if (y-or-n-p "Do you want to sign this message? ") (mml-secure-message-sign-pgpmime))) (add-hook 'gnus-message-setup-hook 'will-you-sign) (setq pgg-cache-passphrase 't) (setq pgg-passphrase-cache-expiry 180) (setq message-send-mail-function 'message-send-mail-with-sendmail) (setq gnus-message-archive-group "Inbox.Sent") ;; Change imap-mail to your own server (setq gnus-message-archive-method '(nnimap "localhost")) (setq gnus-gcc-mark-as-read t) Regards. -- Aurélien DEHAY http://logicielslibres.info