From 35b14d7e4d9fdd74290f0e588bfd65955c3d71c4 Mon Sep 17 00:00:00 2001 From: ShengHuo ZHU Date: Wed, 1 Nov 2000 01:09:34 +0000 Subject: [PATCH] 2000-10-31 Jorge Godoy * gnus.texi: gnus-gpg document. --- texi/ChangeLog | 4 ++++ texi/gnus.texi | 46 +++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/texi/ChangeLog b/texi/ChangeLog index 04873fc9a..48c64cdc8 100644 --- a/texi/ChangeLog +++ b/texi/ChangeLog @@ -1,3 +1,7 @@ +2000-10-31 Jorge Godoy + + * gnus.texi: gnus-gpg document. + 2000-10-31 Simon Josefsson * gnus.texi (NNTP): Explain `port'. diff --git a/texi/gnus.texi b/texi/gnus.texi index f2823ed4f..31ba2315e 100644 --- a/texi/gnus.texi +++ b/texi/gnus.texi @@ -936,7 +936,7 @@ certainly be much faster. @cindex NNTPSERVER @cindex @sc{nntp} server If this variable is not set, Gnus will take a look at the -@code{NNTPSERVER} environment variable. If that variable isn't set, +@env{NNTPSERVER} environment variable. If that variable isn't set, Gnus will see whether @code{gnus-nntpserver-file} (@file{/etc/nntpserver} by default) has any opinions on the matter. If that fails as well, Gnus will try to use the machine running Emacs as an @sc{nntp} server. That's a long shot, though. @@ -9499,6 +9499,7 @@ This is the delimiter mentioned above. By default, it is @samp{^L} @cindex reply @cindex followup @cindex post +@cindex using gpg @kindex C-c C-c (Post) All commands for posting and mailing will put you in a message buffer @@ -9516,6 +9517,7 @@ on your setup (@pxref{Posting Server}). * Posting Styles:: An easier way to specify who you are. * Drafts:: Postponing messages and rejected messages. * Rejected Articles:: What happens if the server doesn't like your article? +* Using GPG:: How to use GPG and MML to sign and encrypt messages @end menu Also see @pxref{Canceling and Superseding} for information on how to @@ -9989,6 +9991,48 @@ The rejected articles will automatically be put in a special draft group (@pxref{Drafts}). When the server comes back up again, you'd then typically enter that group and send all the articles off. +@node Using GPG +@section Using GPG +@cindex using gpg + +Gnus has an ALPHA support to GPG that's provided by @file{gpg.el} and +@file{mml2015.el}. When viewing signed or encrypted messages, Gnus automatically +asks if you want to verify or decrypt them. + +To use this correctly with GPG, you'll need the following lisp code in your +@file{~/.emacs} or @file{~/.gnus}: + +@lisp +(setq mml2015-use 'gpg) +(setq gpg-temp-directory "~/.gnupg/tmp") +@end lisp + +The @code{gpg-temp-directory} need to point to a directory with permissions set +to 700, for your own safety. + +If you want to benefit of PGP2.6 compatibility, you might create a script named +@file{gpg-2comp} with these instructions: + +@code{ +#!/bin/sh +exec gpg --rfc1991 \"\$\@\" +} + +If you don't want to use such compatibility, you can add the following line to +your @file{~/.emacs} or @file{~/.gnus}: + +@lisp +(setq gpg-command-default-alist (quote ((gpg . "gpg") (gpg-2comp . "gpg")))) +@end lisp + +To sign or encrypt your message you may choose to use the MML Security menu or +@kbd{M-m s p} to sign your message using PGP/MIME, @kbd{M-m s s} to sign your +message using S/MIME. There's also @kbd{M-m c p} to encrypt your message with +PGP/MIME and @kbd{M-m c s} to encrypt using S/MIME. + +Gnus will ask for your passphrase three times and then it will send your +message, if you've typed it correctly. + @node Select Methods @chapter Select Methods -- 2.25.1