2004-09-04 13:13:48 +00:00
|
|
|
;;; pgg-def.el --- functions/macros for defining PGG functions
|
|
|
|
|
2006-02-06 15:23:23 +00:00
|
|
|
;; Copyright (C) 1999, 2002, 2003, 2004, 2005,
|
2008-01-07 02:45:14 +00:00
|
|
|
;; 2006, 2007, 2008 Free Software Foundation, Inc.
|
2004-09-04 13:13:48 +00:00
|
|
|
|
|
|
|
;; Author: Daiki Ueno <ueno@unixuser.org>
|
|
|
|
;; Created: 1999/11/02
|
|
|
|
;; Keywords: PGP, OpenPGP, GnuPG
|
|
|
|
|
|
|
|
;; This file is part of GNU Emacs.
|
|
|
|
|
|
|
|
;; GNU Emacs is free software; you can redistribute it and/or modify
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
2007-07-25 04:50:21 +00:00
|
|
|
;; the Free Software Foundation; either version 3, or (at your option)
|
2004-09-04 13:13:48 +00:00
|
|
|
;; any later version.
|
|
|
|
|
|
|
|
;; GNU Emacs is distributed in the hope that it will be useful,
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
;; along with GNU Emacs; see the file COPYING. If not, write to the
|
2005-07-04 17:55:18 +00:00
|
|
|
;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
;; Boston, MA 02110-1301, USA.
|
2004-09-04 13:13:48 +00:00
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
(defgroup pgg ()
|
|
|
|
"Glue for the various PGP implementations."
|
2004-11-04 10:06:40 +00:00
|
|
|
:group 'mime
|
2005-02-09 15:50:47 +00:00
|
|
|
:version "22.1")
|
2004-09-04 13:13:48 +00:00
|
|
|
|
|
|
|
(defcustom pgg-default-scheme 'gpg
|
|
|
|
"Default PGP scheme."
|
|
|
|
:group 'pgg
|
|
|
|
:type '(choice (const :tag "GnuPG" gpg)
|
|
|
|
(const :tag "PGP 5" pgp5)
|
|
|
|
(const :tag "PGP" pgp)))
|
|
|
|
|
|
|
|
(defcustom pgg-default-user-id (user-login-name)
|
|
|
|
"User ID of your default identity."
|
|
|
|
:group 'pgg
|
|
|
|
:type 'string)
|
|
|
|
|
|
|
|
(defcustom pgg-default-keyserver-address "subkeys.pgp.net"
|
|
|
|
"Host name of keyserver."
|
|
|
|
:group 'pgg
|
|
|
|
:type 'string)
|
|
|
|
|
|
|
|
(defcustom pgg-query-keyserver nil
|
|
|
|
"Whether PGG queries keyservers for missing keys when verifying messages."
|
2005-02-09 15:50:47 +00:00
|
|
|
:version "22.1"
|
2004-09-04 13:13:48 +00:00
|
|
|
:group 'pgg
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
(defcustom pgg-encrypt-for-me t
|
|
|
|
"If t, encrypt all outgoing messages with user's public key."
|
|
|
|
:group 'pgg
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
(defcustom pgg-cache-passphrase t
|
|
|
|
"If t, cache passphrase."
|
|
|
|
:group 'pgg
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
(defcustom pgg-passphrase-cache-expiry 16
|
|
|
|
"How many seconds the passphrase is cached.
|
|
|
|
Whether the passphrase is cached at all is controlled by
|
|
|
|
`pgg-cache-passphrase'."
|
|
|
|
:group 'pgg
|
|
|
|
:type 'integer)
|
|
|
|
|
Merge from gnus--rel--5.10
Patches applied:
* gnus--rel--5.10 (patch 179-183)
- Update from CVS
2006-12-25 Daiki Ueno <ueno@unixuser.org>
* lisp/pgg-def.el (pgg-passphrase-coding-system): Default to nil instead of
locale-coding-system.
* lisp/pgg-gpg.el (pgg-gpg-process-region): Encode passphrase with eol-type
LF.
2006-12-29 Jouni K. Sepp,Ad(Bnen <jks@iki.fi>
* lisp/gnus/nnimap.el (nnimap-expunge-search-string): Mention
nnimap-search-uids-not-since-is-evil in docstring.
2006-12-28 Reiner Steib <Reiner.Steib@gmx.de>
* lisp/gnus/spam.el: Revert to make-obsolete-variable because
define-obsolete-variable-alias is not supported in Emacs 21.
2006-12-28 Daiki Ueno <ueno@unixuser.org>
* lisp/gnus/gnus-sum.el (gnus-summary-next-article): Make sure we are in the
summary buffer.
2006-12-27 Reiner Steib <Reiner.Steib@gmx.de>
* lisp/gnus/spam.el (spam-ifile-path, spam-ifile-database-path)
(spam-bogofilter-path): Use define-obsolete-variable-alias instead of
make-obsolete-variable.
2006-12-26 Reiner Steib <Reiner.Steib@gmx.de>
* lisp/gnus/message.el (message-make-fqdn): Fix comment.
(message-bogus-system-names): Add ".local".
* lisp/gnus/spam.el (spam-ifile-path, spam-ifile-program)
(spam-ifile-database-path, spam-ifile-database)
(spam-bogofilter-path, spam-bogofilter-program): Rename variables.
Don't use "path" inappropriately.
(spam-spamoracle-database, spam-get-ifile-database-parameter): Fix doc
strings.
(spam-check-ifile, spam-ifile-register-with-ifile)
(spam-check-bogofilter, spam-bogofilter-register-with-bogofilter): Use
new variable names.
* lisp/gnus/gnus-art.el (gnus-treat-display-x-face, gnus-treat-display-face)
(gnus-treat-display-smileys): Simplify using
gnus-image-type-available-p.
* lisp/gnus/gnus-ems.el (gnus-image-type-available-p): Use display-images-p if
available.
2006-12-22 Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus/nnrss.el (nnrss-fetch): Replace buffer's contents with the decoded
one after turning on the buffer's multibyteness instead of decoding
them directly in the unibyte buffer that causes unexpected conversion
in Emacs 23 (unicode).
2006-12-29 Reiner Steib <Reiner.Steib@gmx.de>
* man/gnus.texi (Customizing Articles): Add index entries for all
gnus-treat-* variables.
2006-12-29 Jouni K. Sepp,Ad(Bnen <jks@iki.fi>
* man/gnus.texi (IMAP): Fix incorrect explanation of
nnimap-search-uids-not-since-is-evil in documentation for
nnimap-expunge-search-string.
2006-12-27 Reiner Steib <Reiner.Steib@gmx.de>
* man/gnus.texi (ifile spam filtering): Rename spam-ifile-database-path to
spam-ifile-database.
2006-12-26 Reiner Steib <Reiner.Steib@gmx.de>
* man/gnus.texi (Spam Package Configuration Examples): Don't encourage to
rebind C-s.
2006-12-26 Jouni K. Sepp,Ad(Bnen <jks@iki.fi>
* man/gnus.texi (Group Parameters, Group Maintenance, Topic Commands)
(Mail Group Commands, Expiring Mail, IMAP): Add index entries for
"expiring mail".
(IMAP): Document nnimap-search-uids-not-since-is-evil and
nnimap-nov-is-evil.
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-576
2006-12-30 15:34:42 +00:00
|
|
|
(defcustom pgg-passphrase-coding-system nil
|
2006-09-07 05:58:54 +00:00
|
|
|
"Coding system to encode passphrase."
|
|
|
|
:group 'pgg
|
|
|
|
:type 'coding-system)
|
|
|
|
|
2004-09-04 13:13:48 +00:00
|
|
|
(defvar pgg-messages-coding-system nil
|
|
|
|
"Coding system used when reading from a PGP external process.")
|
|
|
|
|
|
|
|
(defvar pgg-status-buffer " *PGG status*")
|
|
|
|
(defvar pgg-errors-buffer " *PGG errors*")
|
|
|
|
(defvar pgg-output-buffer " *PGG output*")
|
|
|
|
|
|
|
|
(defvar pgg-echo-buffer "*PGG-echo*")
|
|
|
|
|
|
|
|
(defvar pgg-scheme nil
|
|
|
|
"Current scheme of PGP implementation.")
|
|
|
|
|
2006-02-10 05:08:29 +00:00
|
|
|
(defvar pgg-text-mode nil
|
|
|
|
"If t, inform the recipient that the input is text.")
|
|
|
|
|
2004-09-04 13:13:48 +00:00
|
|
|
(defmacro pgg-truncate-key-identifier (key)
|
2006-07-24 07:32:16 +00:00
|
|
|
`(if (> (length ,key) 8) (substring ,key -8) ,key))
|
2004-09-04 13:13:48 +00:00
|
|
|
|
|
|
|
(provide 'pgg-def)
|
|
|
|
|
|
|
|
;;; arch-tag: c425f3ab-ed75-4055-bb46-431a418c94b7
|
|
|
|
;;; pgg-def.el ends here
|