On Wed, 28 Mar 2007 12:47:09 -0700, Russ Allbery <[EMAIL PROTECTED]> said: 

> Probably part of the problem is that I haven't yet figured out the
> correct way to do PGP/MIME in Gnus (mostly because I haven't looked
> very hard).

        Here is what I use (I am using emacs23, but this should work
 with the emacs-snapshot package in Etch as well)
,----[ Gnus and easypg ]
| ;; The package used for PGP/MIME.
| ;; Valid packages include `epg', `pgg', `gpg' and `mailcrypt'.
| (setq mml2015-use 'epg)
| ;; My key ids
| ;;(setq mml2015-signers  '("BF24424C" "C7261095"))
| (require 'epa-setup)
| (setq
|  mml2015-passphrase-cache-expiry 30   ;; in seconds
|  mml2015-verbose t
|  mml2015-encrypt-to-self t
|  )
| ;;; This was getting too annoying
| ;; (setq mm-verify-option 'known
| ;;       mm-decrypt-option 'known
| ;;       gnus-message-replysign t
| ;;       gnus-message-replyencrypt t)
| 
| ;; Use PGP/MIME by default. Look up mml-sign-alist
| (setq mml-default-sign-method "pgpmime"
|       mml-default-encrypt-method "pgpmime")
| ;; Convenience keystrokes
| (define-key message-mode-map [f7] 'mml-secure-sign-pgpmime)
| (define-key message-mode-map [f8] 'mml-secure-encrypt-pgpmime)
| ;;(define-key message-mode-map "\C-c\C-a" 'mail-interactive-insert-alias)
| 
| ;;; Obsolete, from when I used 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)
| (require 'pgg)
| (setq pgg-passphrase-cache-expiry 30
|       pgg-gpg-use-agent t)
| (setq crypt-confirm-password t
|       crypt-encoded-disable-auto-save t
|       crypt-no-extension-implies-plain t
|       ;      crypt-ignored-filenames ... ; this could be useful
|       )
| ;; gpg
| ;;
| (setq gpg-command-program "gpg" )
`----

        manoj
-- 
Avec!
Manoj Srivastava <[EMAIL PROTECTED]> <http://www.debian.org/~srivasta/>
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to