28c2b826df02489b3aa56694208943dbde7589f2
[elisp/semi.git] / ChangeLog.pgpgpg
1 1999-05-21  Katsumi Yamaoka   <yamaoka@jpl.org>
2
3         * mime-pgp.el (mime-pgp-fetch-key): Returns nil if the fetched key
4         is discarded.
5
6 1999-05-17  KOSEKI Yoshinori  <kose@yk.NetLaputa.ne.jp>
7
8         * mime-pgp.el (mime-verify-application/pgp-signature): Specify the
9         name of `sig-file' explicitly for `mime-pgp-check-signature'.
10         (mime-pgp-check-signature): Accept new arg `sig-file' and feed its
11         value to the verify command.
12
13 1999-05-13  Katsumi Yamaoka   <yamaoka@jpl.org>
14
15         * mime-edit.el (mime-edit-decode-message-in-buffer): Call
16         `mime-edit-decode-single-part-in-buffer' with return value of
17         `mime-read-Content-Disposition'; don't modify the header if the
18         buffer is narrowed to a part.
19         (mime-edit-decode-single-part-in-buffer): Accept the optional arg
20         `content-disposition' and inherit it into the editing buffer.
21
22 1999-05-13  OKUNISHI Fujikazu <fuji0924@mbox.kyoto-inet.or.jp>
23
24         * mime-mc.el (mime-mc-pgp50-process-region,
25         mime-mc-gpg-process-region): Bind `shell-command-switch' to the
26         value of `mime-mc-shell-command-switch'.
27         (mime-mc-shell-command-switch): New user option.
28
29 1999-05-12  Katsumi Yamaoka   <yamaoka@jpl.org>
30
31         * mime-edit.el (mime-edit-decode-multipart-in-buffer): Use
32         `pgp-encrypted' or `pgp-signed' for the value of `subtype' if the
33         protocol "application/pgp-encrypted" or "application/pgp-signature"
34         is declared; attempt to decrypt the encrypted part with the new
35         function `mime-edit-decrypt-application/pgp-encrypted' and strip
36         sender, recipients and useless tags from the decrypted part.
37         (TopLevel): Autoload "mime-pgp" for the function
38         `mime-edit-decrypt-application/pgp-encrypted'.
39
40         * mime-pgp.el (mime-edit-decrypt-application/pgp-encrypted): New
41         function.
42         (mime-pgp-detect-version): Allow some leading garbage lines.
43
44 1999-04-16  Katsumi Yamaoka   <yamaoka@jpl.org>
45
46         * mime-play.el (mime-show-echo-buffer): Make it returns the list of
47         window, start and end positions of inserted text; adjust a window
48         height to the value of `mime-echo-window-height' whenever this
49         function is called; bind `window-min-height' to 1 during splitting
50         a window vertically.
51
52         * mime-pgp.el (mime-pgp-fetch-key): Enclose a tcp process with
53         a temp buffer.
54         (mime-pgp-show-fetched-key-for-pgp50): Always use
55         `mime-show-echo-buffer' for displaying a fetched key; optimize its
56         window height.
57         (mime-pgp-show-fetched-key): Likewise.
58         (mime-pgp-keyserver-port): Replace "HTTP" with "HKP" in doc string.
59         (mime-verify-application/pgp-signature): Optimize a height of window
60         where some informations are displayed.
61         (mime-pgp-parse-verify-error): Likewise.
62         (mime-pgp-show-echo-buffer): New macro.
63         (mime-pgp-parse-verify-error-for-pgp): Make it to accept an arg
64         `output-buffer' and to return the list of expected key-ID, start
65         position and lines to be shown a result.
66         (mime-pgp-parse-verify-error-for-pgp50): Likewise.
67         (mime-pgp-parse-verify-error-for-gpg): Likewise.
68         (mime-pgp-parse-verify-error): Likewise.
69         (mime-pgp-check-signature): Returns a start position and lines
70         to be used for how a result should be displayed in echo window.
71         (mime-pgp-detect-version): Bug fix -- save restriction before
72         narrowing.
73
74 1999-04-15  Katsumi Yamaoka   <yamaoka@jpl.org>
75
76         * mime-pgp.el (mime-add-application/pgp-keys): Use
77         `mime-insert-entity-content' and `mime-pgp-detect-version' to get
78         public keys.
79         (mime-decrypt-application/pgp-encrypted): Use
80         `mime-entity-detect-pgp-version' instead of
81         `mime-pgp-detect-version'.
82         (mime-verify-application/pgp-signature): Likewise.
83         (mime-entity-detect-pgp-version): Function to detect PGP version
84         from entity content; renamed from `mime-pgp-detect-version'.
85         (mime-pgp-detect-version): New function to detect PGP version in
86         the buffer.
87
88 1999-04-13  Hirokazu FUKUI    <fukui@atesoft.advantest.co.jp>
89
90         * mime-pgp.el (mime-add-application/pgp-keys): Call
91         `buffer-substring' in entity's buffer.
92
93 1999-04-15  Katsumi Yamaoka   <yamaoka@jpl.org>
94
95         * mime-mc.el (mime-mc-insert-public-key, mime-mc-encrypt-region,
96         mime-mc-traditional-sign-region, mime-mc-sign-region,
97         mime-mc-snarf-keys, mime-mc-fetch-key, mime-mc-decrypt,
98         mime-mc-verify, mime-mc-comment): Use `mime-mc-symbol'.
99         (mime-mc-symbol): New macro.
100         (mime-mc-symbol-format-alist): New variable.
101
102 1999-04-14  Katsumi Yamaoka   <yamaoka@jpl.org>
103
104         * mime-edit.el (mime-edit-insert-key): Prompt for user id if prefix
105         arg is given.
106
107         * mime-mc.el (mime-mc-insert-public-key): Fix bug - referring to
108         undefined variable.
109
110 1999-04-14  Katsumi Yamaoka   <yamaoka@jpl.org>
111
112         * mime-ui-en.texi, mime-ui-ja.texi: Sync up with .sgml files.
113         * mime-ui-en.sgml, mime-ui-ja.sgml: Modify a description for
114         simplified `pgp-function-alist'.
115
116         * semi-def.el (pgp-function-alist): Simplify. Use
117         `mime-mc-encrypt-region', `mime-mc-traditional-sign-region',
118         `mime-mc-sign-region' and `mime-mc-fetch-key' for it.
119
120         * mime-mc.el (mime-mc-insert-public-key, mime-mc-snarf-keys,
121         mime-mc-decrypt, mime-mc-verify): Add doc strings.
122         (mime-mc-encrypt-region, mime-mc-traditional-sign-region,
123         mime-mc-sign-region, mime-mc-fetch-key): New functions.
124         (TopLevel): Add autoloads "mc-gpg", "mc-pgp5" and "mc-pgp" for the
125         functions `mc-gpg-fetch-key', `mc-gpg-sign-region',
126         `mc-pgp50-fetch-key', `mc-pgp50-sign-region', `mc-pgp-fetch-key'
127         and `mc-pgp-sign-region'.
128
129         * mime-pgp.el (mime-pgp-fetch-key): Kill useless buffers after
130         fetching.
131         (mime-pgp-show-fetched-key-for-pgp50, mime-pgp-show-fetched-key):
132         Show fetched key in the window of `mime-echo-buffer-name' if it is
133         alive, otherwise use `display-buffer'; minimize the window height;
134         return buffer object to be killed.
135
136 1999-04-14  Katsumi Yamaoka   <yamaoka@jpl.org>
137
138         * mime-pgp.el (mime-pgp-fetch-key,
139         mime-pgp-show-fetched-key-for-pgp,
140         mime-pgp-show-fetched-key-for-pgp50,
141         mime-pgp-show-fetched-key-for-gpg): New functions.
142         (mime-pgp-show-fetched-key): New macro.
143         (mime-pgp-fetch-timeout, mime-pgp-http-proxy-server-port,
144         mime-pgp-http-proxy-server-address,
145         mime-pgp-http-proxy-url-template, mime-pgp-keyserver-port,
146         mime-pgp-keyserver-address, mime-pgp-keyserver-url-template): New
147         user options.
148         (mime-pgp-key-expected-regexp-alist,
149         mime-pgp-bad-signature-regexp-alist,
150         mime-pgp-good-signature-regexp-alist,
151         mime-pgp-default-language-alist, mime-pgp-command-alist): Change
152         the customization group to `mime-pgp'.
153         (mime-pgp): New group for customization.
154
155         * mime-mc.el (mime-mc-pgp50-process-region,
156         mime-mc-gpg-process-region): Deactivate passwd if detecting the
157         value of `micalg' is failed and `mc-passwd-timeout' is nil; remove
158         useless `progn's.
159         (mime-mc-comment-alist, mime-mc-omit-micalg,
160         mime-mc-shell-file-name): Change the customization group to
161         `mime-mc'.
162         (mime-mc): New group for customization.
163
164 1999-04-14  Katsumi Yamaoka   <yamaoka@jpl.org>
165
166         * mime-mc.el (mime-mc-pgp50-sign-region, mime-mc-gpg-sign-region):
167         Return nil if an erorr has occurred during detecting the value of
168         `micalg'.
169         (mime-mc-pgp50-process-region, mime-mc-gpg-process-region): Don't
170         signal an error. Return non-nil if success, otherwise nil with
171         error message.
172
173         * mime-edit.el (mime-edit-translate-buffer): Do `undo-boundary'
174         before translating.
175
176 1999-04-13  Katsumi Yamaoka   <yamaoka@jpl.org>
177
178         * mime-mc.el (mime-mc-pgp50-sign-region, mime-mc-gpg-sign-region):
179         Don't deactivate passwd during detecting the value of `micalg' even
180         if `mc-passwd-timeout' is set to nil.
181         (mime-mc-gpg-process-region): Print this function name for
182         debugging.
183
184 1999-04-12  Katsumi Yamaoka   <yamaoka@jpl.org>
185
186         * mime-pgp.el (mime-pgp-check-signature): Return nil if neither bad
187         nor good.
188
189 1999-04-09  Katsumi Yamaoka   <yamaoka@jpl.org>
190
191         * mime-mc.el (mime-mc-pgp-encrypt-region, mime-mc-pgp-sign-region,
192         mime-mc-process-region, mime-mc-pgp50-encrypt-region,
193         mime-mc-pgp50-sign-region, mime-mc-pgp50-process-region,
194         mime-mc-gpg-encrypt-region, mime-mc-gpg-sign-region,
195         mime-mc-gpg-process-region, mime-mc-insert-public-key): Identify
196         the version of SEMI as a comment field of ASCII armor.
197         (mime-mc-replace-comment-field): New function.
198         (mime-mc-comment): New macro.
199         (mime-mc-comment-alist): New user option.
200         (TopLevel): Require `mime-def'.
201
202 1999-04-08  Katsumi Yamaoka   <yamaoka@jpl.org>
203
204         * mime-mc.el (mime-mc-pgp-sign-region): Omit the micalg parameter
205         if the value of `mime-mc-omit-micalg' is non-nil.
206         (mime-mc-pgp50-sign-region, mime-mc-gpg-sign-region): Detect and
207         cache the value of message integrity check algorithm before signing
208         and use it for the micalg parameter if the value of
209         `mime-mc-omit-micalg' is nil.
210         (mime-mc-gpg-process-region): Show boundary in
211         `mc-gpg-debug-buffer'.
212         (mime-mc-pgp-process-region, mime-mc-pgp50-process-region,
213         mime-mc-gpg-process-region): Add doc string.
214         (mime-mc-micalg-alist): New variable.
215         (mime-mc-omit-micalg): New user option.
216         (TopLevel): Require `alist' and `std11'.
217
218         * mime-pgp.el (TopLevel): Add comment that this module is based on
219         draft-yamamoto-openpgp-mime-00.txt (OpenPGP/MIME) as well.
220
221 1999-04-06  Katsumi Yamaoka   <yamaoka@jpl.org>
222
223         * mime-pgp.el (mime-pgp-bad-signature-post-function-pgp50-us): New
224         function.
225         (mime-verify-application/pgp-signature): Say "Checking signature..."
226         before verifying; say "Can't check signature" if public key is not
227         available.
228         (mime-pgp-parse-verify-error): Goto beginning of buffer, eval forms
229         and set window start.
230         (mime-pgp-parse-verify-error-for-pgp): Use it
231         (mime-pgp-parse-verify-error-for-pgp50): Use it.
232         (mime-pgp-parse-verify-error-for-gpg): Use it.
233         (mime-pgp-check-signature): Rewrite for detecting "BAD signature".
234         (mime-pgp-bad-signature-post-function): New macro.
235         (mime-pgp-bad-signature-regexp): New macro.
236         (mime-pgp-bad-signature-regexp-alist): New user option.
237
238         * mime-ui-en.texi, mime-ui-ja.texi: Sync up with .sgml files.
239         * mime-ui-en.sgml, mime-ui-ja.sgml (mime-mc-setversion): Use <var>,
240         </var> token in doc string.
241
242 1999-04-06  Keiichi Suzuki  <keiichi@nanap.org>
243
244         * mime-pgp.el (mime-view-application/pgp): Support PGP5.X and
245         GnuPG format.
246
247 1999-04-05  Katsumi Yamaoka   <yamaoka@jpl.org>
248
249         * mime-pgp.el (mime-pgp-parse-verify-error): Use
250         `with-current-buffer' instead of `save-current-buffer'.
251         (mime-pgp-check-signature): Use `with-current-buffer' instead of
252         `save-current-buffer'; add comment about PGP 5.0i.
253