EasyPG 1.07 Released
[packages] / xemacs-packages / cookie / spook.el
1 ;;; spook.el --- spook phrase utility for overloading the NSA line eater
2
3 ;; Copyright (C) 1988, 1993 Free Software Foundation, Inc.
4
5 ;; Maintainer: FSF
6 ;; Keywords: games
7 ;; Created: May 1987
8
9 ;; This file is part of XEmacs.
10
11 ;; XEmacs is free software; you can redistribute it and/or modify
12 ;; it under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation; either version 2, or (at your option)
14 ;; any later version.
15
16 ;; XEmacs is distributed in the hope that it will be useful,
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 ;; GNU General Public License for more details.
20
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with XEmacs; see the file COPYING.  If not, write to the
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24 ;; Boston, MA 02111-1307, USA.
25
26 ;;; Synched up with: FSF 21.1
27
28 ;;; Commentary:
29
30 ;; Steve Strassmann <straz@media-lab.media.mit.edu> didn't write
31 ;; this, and even if he did, he really didn't mean for you to use it
32 ;; in an anarchistic way.
33 ;;
34 ;; To use this:
35 ;;  Just before sending mail, do M-x spook.
36 ;;  A number of phrases will be inserted into your buffer, to help
37 ;;  give your message that extra bit of attractiveness for automated
38 ;;  keyword scanners.  Help defeat the NSA trunk trawler!
39
40 ;;; Code:
41
42 (require 'cookie1)
43
44 ; Variables
45 (defgroup spook nil
46   "Spook phrase utility for overloading the NSA line eater."
47   :prefix "spook-"
48   :group 'games)
49
50 (defcustom spook-phrases-file (locate-data-file "spook.lines")
51   "Keep your favorite phrases here."
52   :type 'file
53   :group 'spook)
54
55 (defcustom spook-phrase-default-count 15
56   "Default number of phrases to insert."
57   :type 'integer
58   :group 'spook)
59
60 ;;;###autoload
61 (defun spook ()
62   "Adds that special touch of class to your outgoing mail."
63   (interactive)
64   (cookie-insert spook-phrases-file
65                  spook-phrase-default-count
66                  "Checking authorization..."
67                  "Checking authorization...Approved"))
68
69 ;;;###autoload
70 (defun snarf-spooks ()
71   "Return a vector containing the lines from `spook-phrases-file'."
72   (cookie-snarf spook-phrases-file
73                 "Checking authorization..."
74                 "Checking authorization...Approved"))
75
76 ;; Note: the implementation that used to take up most of this file has been
77 ;; cleaned up, generalized, gratuitously broken by esr, and now resides in
78 ;; cookie1.el.
79
80 (provide 'spook)
81
82 ;;; spook.el ends here