X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=texi%2Fgnus.texi;h=7bbbb71ccf6c86cfdeb5585a650a3e2ddf96ccf4;hb=231fcc921b53b1dc32f9a945319f999e5ba4bda8;hp=c8a22cc0bde33478b919a48d33abf6a66470b7fc;hpb=8b4dd1da397e1318e77eee3dd337a271db699e5a;p=elisp%2Fgnus.git- diff --git a/texi/gnus.texi b/texi/gnus.texi index c8a22cc..7bbbb71 100644 --- a/texi/gnus.texi +++ b/texi/gnus.texi @@ -9458,6 +9458,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 @@ -9475,6 +9476,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 @@ -9948,6 +9950,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 @@ -11735,6 +11779,40 @@ matched string will be substituted. Similarly, the elements @samp{\\1} up to @samp{\\9} will be substituted with the text matched by the groupings 1 through 9. +@findex nnmail-split-fancy-with-parent +@code{nnmail-split-fancy-with-parent} is a function which allows you to +split followups into the same groups their parents are in. Sometimes +you can't make splitting rules for all your mail. For example, your +boss might send you personal mail regarding different projects you are +working on, and as you can't tell your boss to put a distinguishing +string into the subject line, you have to resort to manually moving the +messages into the right group. With this function, you only have to do +it once per thread. + +To use this feature, you have to set @code{nnmail-treat-duplicates} to a +non-nil value. And then you can include +@code{nnmail-split-fancy-with-parent} using the colon feature, like so: +@lisp +(setq nnmail-split-fancy + '(| (: nnmail-split-fancy-with-parent) + ;; other splits go here + )) +@end lisp + +This feature works as follows: when @code{nnmail-treat-duplicates} is +non-nil, Gnus records the message id of every message it sees in the +file specified by the variable @code{nnmail-message-id-cache-file}, +together with the group it is in (the group is omitted for non-mail +messages). When mail splitting is invoked, the function +@code{nnmail-split-fancy-with-parent} then looks at the References (and +In-Reply-To) header of each message to split and searches the file +specified by @code{nnmail-message-id-cache-file} for the message ids. +When it has found a parent, it returns the corresponding group name. It +is recommended that you set @code{nnmail-message-id-cache-length} to a +somewhat higher number than the default so that the message ids are +still in the cache. (A value of 5000 appears to create a file some +300 kBytes in size.) + @node Group Mail Splitting @subsection Group Mail Splitting