* elmo-imap4.el (elmo-imap4-session-select-mailbox): Return response
[elisp/wanderlust.git] / elmo / ChangeLog
1 2000-10-27  Yuuichi Teranishi  <teranisi@gohome.org>
2
3         * elmo-imap4.el (elmo-imap4-session-select-mailbox): Return response
4         value if selecting folder succceeded.
5         (Advised by MII Kazuyoshi <mii@isl.ntt.co.jp> for prom-wl.)
6
7 2000-10-26  TAKAHASHI Kaoru  <kaoru@kaisei.org>
8
9         * elmo-util.el (elmo-make-directory): Fixed permission lateral
10         representation.
11
12         * elmo-util.el (elmo-string-matched-member): New function.
13
14 2000-10-26  Yuuichi Teranishi  <teranisi@gohome.org>
15
16         * elmo-util.el (elmo-unintern): New macro.
17         (elmo-number-set-member): Fixed docstring.
18
19         * elmo-imap4.el (elmo-imap4-parse-response): Call `elmo-unintern' for
20         tag token.
21
22 2000-10-25  OKAZAKI Tetsurou  <okazaki@be.to>
23
24         * elmo-imap4.el (elmo-imap4-client-eol): Remove duplicated defvar
25         of `elmo-imap4-status' and `elmo-imap4-reached-tag'.
26
27 2000-10-24  Yuuichi Teranishi  <teranisi@gohome.org>
28
29         * elmo-imap4.el (elmo-imap4-session-select-mailbox): Added argument
30         `no-error'.
31         Added docstring.
32         Return non-nil if selecting folder succeeded.
33         (elmo-imap4-folder-exists-p): Call with argument 'no-error.
34
35 2000-10-23  Yuuichi Teranishi  <teranisi@gohome.org>
36
37         * elmo-maildir.el (elmo-maildir-get-filename): Fixed problem when
38         `file-name-completion' returns t.
39         (Reported by Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>)
40         (elmo-maildir-set-mark): Put `info' part to the files in the cur
41         directory if it does not exist.
42         (elmo-maildir-update-current): Use `while' instead of `mapcar'
43         for iteration.
44
45 2000-10-20  Yuuichi Teranishi  <teranisi@gohome.org>
46
47         * elmo-imap4.el (elmo-imap4-folder-exists-p): Removed `condition-case'
48         enclosure (It's harmful in unplugged status).
49
50         * elmo-pop3.el (elmo-pop3-folder-exists-p): Ditto.
51
52         * mmelmo-1.el: Removed.
53
54         * mmelmo-2.el: Ditto.
55
56         * mmelmo-imap4-1.el: Ditto.
57
58         * mmelmo-imap4-2.el: Ditto.
59
60         * mmelmo-imap4.el: Merged mmelmo-imap4-2.el
61
62         * mmelmo.el: Merged mmelmo-2.el.
63
64         * elmo-version.el (elmo-version): Up to 2.3.92.
65
66 2000-10-19  TAKAHASHI Kaoru  <kaoru@kaisei.org>
67
68         * elmo2.el (elmo-move-msgs, elmo-msgdb-load, elmo-msgdb-save,
69         elmo-update-number): Remove last period in "...done." message.
70         * elmo-archive.el (elmo-archive-msgdb-create-as-numlist-subr1):
71         Ditto.
72         * elmo-cache.el (elmo-cache-expire-by-size,
73         elmo-cache-get-sorted-cache-file-list,
74         elmo-cache-msgdb-create-as-numlist): Ditto.
75         * elmo-dop.el (elmo-dop-save-pending-messages,
76         (elmo-dop-flush-pending-append-operations): Ditto.
77         * elmo-imap4.el (elmo-imap4-msgdb-create): Ditto.
78         * elmo-internal.el (elmo-internal-msgdb-create): Ditto.
79         * elmo-localdir.el (elmo-localdir-msgdb-create-as-numlist,
80         (elmo-localdir-pack-number): Ditto.
81         * elmo-maildir.el (elmo-maildir-msgdb-create): Ditto.
82         * elmo-msgdb.el (elmo-msgdb-sort-by-date): Ditto.
83         * mmelmo-imap4-2.el (mmelmo-imap4-mime-entity-buffer,
84         mime-write-entity-content): Ditto.
85         * pldap.el (ldap-search-basic): Ditto.
86
87 2000-10-18  Yuuichi Teranishi  <teranisi@gohome.org>
88
89         * elmo-version.el (elmo-version): Up to 2.3.91.
90
91         * elmo-filter.el (elmo-filter-folder-diff): Use target folder's diff
92         Only when filter is 'last'.
93
94         * elmo-util.el (elmo-condition-atom-regexp): New constant.
95         (elmo-condition-parse-search-value): Use it.
96         (elmo-read-search-condition-internal): Quote value only when
97         it is not an atom.
98
99 2000-10-18  Kenichi OKADA  <okada@opaopa.org>
100
101         * elmo2.el (elmo-generic-folder-diff): Fix.
102
103 2000-10-17  Kenichi OKADA  <okada@opaopa.org>
104
105         * elmo-msgdb.el (elmo-msgdb-killed-list-length): New function.
106         * elmo-localdir.el (elmo-localdir-list-folder-subr): Fix.
107         * elmo-maildir.el (elmo-maildir-list-folder-subr): Fix.
108         * elmo-archive.el (elmo-archive-list-folder-subr): Fix.
109         * elmo-internal.el (elmo-internal-list-folder-subr): Fix.
110         * elmo-imap4.el (elmo-imap4-max-of-folder): Fix.
111
112 2000-10-17  Akihiro MOTOKI <motoki@da.jp.nec.com>
113
114         * elmo-msgdb.el (elmo-msgdb-search-internal-primitive): Search by
115         extra-fields.
116
117 2000-10-17  Yuuichi Teranishi  <teranisi@gohome.org>
118
119         * elmo-version.el (elmo-version): Up to 2.3.90.
120
121         * elmo-imap4.el (elmo-imap4-list-folder-unread): Check plugged status.
122         (elmo-imap4-list-folder-important): Ditto.
123
124 2000-10-16  Kenichi OKADA  <okada@opaopa.org>
125
126         * elmo-nntp.el (elmo-network-initialize-session): Fix.
127
128 2000-10-16  Kenichi OKADA  <okada@opaopa.org>
129
130         * elmo-nntp.el (elmo-nntp-read-msg): Don't error.
131
132 2000-10-15  Kenichi OKADA  <okada@opaopa.org>
133
134         * elmo-nntp.el (elmo-network-initialize-session):
135         Add starttls negotiation.
136
137 2000-10-15  Masahiro MURATA  <muse@ba2.so-net.ne.jp>
138
139         * elmo-nntp.el (elmo-network-initialize-session): Read greeting
140         response.
141         (elmo-network-setup-session): Define.
142         Call `elmo-nntp-send-mode-reader' when session opened.
143
144 2000-10-13  Yuuichi Teranishi  <teranisi@gohome.org>
145
146         * elmo-multi.el (elmo-multi-list-folder-unread): Fixed.
147
148 2000-10-13  OKAZAKI Tetsurou  <okazaki@be.to>
149
150         * elmo-imap4.el (elmo-imap4-search-internal-primitive): Remove
151         an invalid SPACE character ahead of `SEARCH' command.  Move
152         a valid SPACE character following `SEARCH' from conditional
153         `format' arguments to control-strings.
154
155 2000-10-13  Yuuichi Teranishi  <teranisi@gohome.org>
156
157         * elmo2.el (elmo-call-func-on-markable-msgs): Return t if marking
158         was succeeded.
159
160         * elmo-util.el (elmo-folder-get-spec): Enclose with save-match-data.
161
162 2000-10-12  Yuuichi Teranishi  <teranisi@gohome.org>
163
164         * elmo-localdir.el (elmo-localdir-list-folders-subr): Bind
165         `w32-get-true-file-link-count' as t.
166
167         * elmo-imap4.el (elmo-imap4-read): Abolished.
168         (Renamed to `elmo-read' and moved to elmo-util.el)
169         All other related portions are changed.
170
171         * elmo-util.el (elmo-read): New function.
172         (elmo-condition-parse-search-value): Use it.
173
174 2000-10-11  Yuuichi Teranishi  <teranisi@gohome.org>
175
176         * elmo2.el (elmo-quit): Don't use `elmo-nntp-flush-connection'.
177
178         * elmo-nntp.el (elmo-nntp-session): Define.
179         (elmo-nntp-setting): Abolished.
180         All other related portions are changed.
181         (elmo-nntp-get-server-command): Changed argument.
182         (elmo-nntp-set-server-command): Ditto.
183         (elmo-nntp-xover-p): Ditto.
184         (elmo-nntp-set-xover): Ditto.
185         (elmo-nntp-listgroup-p): Ditto.
186         (elmo-nntp-set-listgroup): Ditto.
187         (elmo-nntp-list-active-p): Ditto.
188         (elmo-nntp-set-list-active): Ditto.
189         (elmo-nntp-xhdr-p): Ditto.
190         (elmo-nntp-set-xhdr): Ditto.
191         (elmo-nntp-flush-connection): Abolished.
192         (elmo-nntp-get-connection): Abolished.
193         (elmo-nntp-get-session): New function.
194         (elmo-network-initialize-session): Defined.
195         (elmo-network-authenticate-session): Ditto.
196         (elmo-nntp-send-mode-reader): Changed argument.
197         (elmo-nntp-send-command): Changed argument.
198         All other related portions are changed.
199         (elmo-nntp-read-response): Ditto.
200         (elmo-nntp-read-raw-response): Ditto.
201         (elmo-nntp-read-contents): Ditto.
202         (elmo-nntp-read-body): Ditto.
203         (elmo-nntp-goto-folder): Abolished.
204         (elmo-nntp-select-group): New function.
205         All other related portions are changed.
206         (This function substitutes `elmo-nntp-goto-folder')
207         (elmo-nntp-msgdb-create-by-header): Rewrite.
208         (elmo-nntp-get-overview): Eliminated.
209         (elmo-nntp-get-message): Ditto.
210         (elmo-nntp-open-connection) Abolished.
211         (elmo-nntp-read-msg): Rewrite.
212         (elmo-nntp-post): Ditto.
213         (elmo-nntp-send-data): Abolished.
214         (elmo-nntp-send-buffer): New function.
215         (elmo-nntp-send-data-line): Define as inline function.
216         (elmo-nntp-get-folders-info-prepare): Use session as key.
217         (elmo-nntp-groups-read-response): Changed argument.
218         (elmo-nntp-retrieve-headers): Ditto.
219         (elmo-nntp-msgdb-create-message): Ditto.
220
221         * elmo-msgdb.el (elmo-msgdb-search-internal-primitive): Fixed problem
222         when searching by 'since' or 'before'.
223
224 2000-10-11  TAKAHASHI Kaoru  <kaoru@kaisei.org>
225
226         * elmo-version.el (toplevel): Use product-version-as-string for set
227         verstion-string, if defined.
228
229 2000-10-11  OKAZAKI Tetsurou  <okazaki@be.to>
230
231         * elmo-util.el: Doc fixes.
232
233 2000-10-10  TAKAHASHI Kaoru  <kaoru@kaisei.org>
234
235         * elmo-archive.el (toplevel): Use product-provide.
236         * elmo-cache.el (toplevel): Ditto.
237         * elmo-database.el (toplevel): Ditto.
238         * elmo-date.el (toplevel): Ditto.
239         * elmo-dop.el (toplevel): Ditto.
240         * elmo-filter.el (toplevel): Ditto.
241         * elmo-imap4.el (toplevel): Ditto.
242         * elmo-internal.el (toplevel): Ditto.
243         * elmo-localdir.el (toplevel): Ditto.
244         * elmo-localnews.el (toplevel): Ditto.
245         * elmo-maildir.el (toplevel): Ditto.
246         * elmo-msgdb.el (toplevel): Ditto.
247         * elmo-multi.el (toplevel): Ditto.
248         * elmo-net.el (toplevel): Ditto.
249         * elmo-nntp.el (toplevel): Ditto.
250         * elmo-pipe.el (toplevel): Ditto.
251         * elmo-pop3.el (toplevel): Ditto.
252         * elmo-util.el (toplevel): Ditto.
253         * elmo-vars.el (toplevel): Ditto.
254         * elmo2.el (toplevel): Ditto.
255         * mmelmo-1.el (toplevel): Ditto.
256         * mmelmo-2.el (toplevel): Ditto.
257         * mmelmo-imap4-1.el (toplevel): Ditto.
258         * mmelmo-imap4-2.el (toplevel): Ditto.
259         * mmelmo-imap4.el (toplevel): Ditto.
260         * mmelmo.el (toplevel): Ditto.
261
262 2000-10-10  Kenichi OKADA  <okada@opaopa.org>
263
264         * elmo-dop.el (elmo-dop-flush-pending-append-operations): Add no-see.
265         (elmo-dop-call-func-on-msgs): Don't delete appends from msgs.
266
267 2000-10-10  Yuuichi Teranishi  <teranisi@gohome.org>
268
269         * elmo-multi.el (elmo-multi-split-mark-alist): Copy and sort alist
270         before splitting.
271         (elmo-multi-split-number-alist): Ditto.
272
273 2000-10-10  TAKAHASHI Kaoru  <kaoru@kaisei.org>
274
275         * elmo-version.el: New file.  Use product.el.
276         * elmo2.el: Add (require 'elmo-version).
277         * elmo-vars.el (elmo-appname, elmo-version): Move to
278         elmo-version.el
279
280 2000-10-09  Yuuichi Teranishi  <teranisi@gohome.org>
281
282         * elmo2.el (elmo-copy-msgs): Set `spec' as 1st argument for
283         `elmo-msgdb-expand-path'.
284         (elmo-msgdb-load): Ditto.
285         Abolished 2nd argument. If 1st argument is not string, treat as spec.
286         (elmo-generic-list-folder-unread): Rewrite.
287         (elmo-generic-list-folder-important): Changed argument.
288         (elmo-list-folder-unread): Ditto.
289         (elmo-list-folder-important): Ditto.
290         (elmo-folder-diff): Rewrite.
291         (elmo-generic-folder-diff): New function.
292         (elmo-multi-get-number-alist-list): Abolished
293         (Renamed to elmo-multi-split-number-alist and moved to elmo-multi.el)
294         (elmo-multi-folder-diff): Moved to elmo-multi.el
295         (toplevel): Removed autoload setting of `elmo-multi-folder-diff'.
296
297         * elmo-pop3.el (elmo-pop3-list-folder): Set `spec' as 1st argument for
298         `elmo-msgdb-expand-path'.
299         (elmo-pop3-msgdb-create-as-numlist): Ditto.
300         (elmo-pop3-read-msg): Ditto.
301         (elmo-pop3-delete-msgs): Ditto.
302         (elmo-pop3-folder-diff): New alias.
303
304         * elmo-pipe.el (elmo-pipe-list-folder): Set `spec' as 1st argument for
305         `elmo-msgdb-expand-path'.
306         (elmo-pipe-list-folder-unread): Changed arguments.
307         (elmo-pipe-list-folder-important): Ditto.
308         (elmo-pipe-folder-diff): New alias.
309
310         * elmo-nntp.el (elmo-nntp-list-folder): Set `spec' as 1st argument for
311         `elmo-msgdb-expand-path'.
312         (elmo-nntp-max-of-folder): Ditto.
313         (elmo-nntp-msgdb-create): Ditto.
314         (elmo-nntp-delete-msgs): Ditto.
315         (elmo-nntp-folder-diff): New alias.
316
317         * elmo-multi.el (elmo-multi-folder-diff): New function.
318         (elmo-multi-split-mark-alist): Ditto.
319         (elmo-multi-split-number-alist): Ditto.
320         (elmo-multi-mark-alist-list): Abolished (Renamed to
321         elmo-multi-split-mark-alist).
322         (elmo-multi-list-folder-unread): Rewrite.
323         (elmo-multi-list-folder-important): Ditto.
324         (elmo-multi-list-folder): Set `spec' as 1st argument for
325         `elmo-msgdb-expand-path'.
326         (elmo-multi-sync-number-alist): Use `elmo-multi-split-number-alist'
327         instead of `elmo-multi-get-number-alist-list'.
328
329         * elmo-msgdb.el (elmo-msgdb-expand-path): Abolished 2nd argument.
330         If 1st argument is not string, treat as spec.
331         (elmo-list-folder-by-location): Set `spec' as 1st argument for
332         `elmo-msgdb-expand-path'.
333         (elmo-msgdb-flist-load): Ditto.
334         (elmo-msgdb-flist-save): Ditto.
335         (elmo-msgdb-delete-path): Ditto.
336         (elmo-msgdb-rename-path): Ditto.
337
338         * elmo-maildir.el (elmo-maildir-set-mark-msgs):
339         Set `spec' as 1st argument for `elmo-msgdb-expand-path'.
340         (elmo-maildir-delete-mark-msgs): Ditto.
341         (elmo-maildir-msgdb-create): Ditto.
342         (elmo-maildir-read-msg): Ditto.
343         (elmo-maildir-delete-msgs): Ditto.
344         (elmo-maildir-list-folder-subr): Ditto.
345         (elmo-maildir-search): Ditto.
346         (elmo-maildir-get-msg-filename): Ditto.
347         (elmo-maildir-pack-number): Ditto.
348         (elmo-maildir-folder-diff): New alias.
349
350         * elmo-localnews.el (elmo-localnews-folder-diff): New alias.
351
352         * elmo-localdir.el (elmo-localdir-list-folder-subr):
353         Set `spec' as 1st argument for `elmo-msgdb-expand-path'.
354         (elmo-localdir-folder-diff): New alias.
355
356         * elmo-internal.el (elmo-internal-list-folder-subr):
357         Set `spec' as 1st argument for `elmo-msgdb-expand-path'.
358         (elmo-internal-list-folder-by-location): Ditto.
359         (elmo-internal-msgdb-create): Ditto.
360         (elmo-internal-delete-msgs): Ditto.
361         (elmo-internal-read-msg): Ditto.
362         (elmo-internal-folder-diff): New alias.
363
364         * elmo-imap4.el (elmo-imap4-folder-diff): New function.
365         (elmo-imap4-list-folder): Set `spec' as 1st argument for
366         `elmo-msgdb-expand-path'.
367         (elmo-imap4-list-folder-unread): Changed arguments.
368         (elmo-imap4-list-folder-important): Ditto.
369
370         * elmo-filter.el (elmo-filter-list-folder-unread): Changed arguments.
371         (elmo-filter-list-folder-important): Ditto.
372         (elmo-filter-folder-diff): New function.
373
374         * elmo-dop.el (elmo-dop-folder-exists-p): Check elmo directory first.
375
376         * elmo-cache.el (elmo-cache-list-folder):
377         Set `spec' as 1st argument for `elmo-msgdb-expand-path'.
378         (elmo-cache-copy-msgs): Ditto.
379         (elmo-cache-folder-diff): New alias.
380
381         * elmo-archive.el (elmo-archive-list-folder-subr):
382         Set `spec' as 1st argument for `elmo-msgdb-expand-path'.
383         (elmo-archive-get-archive-name): Ditto.
384         (elmo-archive-create-file): Ditto.
385         (elmo-archive-append-msg): Ditto.
386         (elmo-archive-copy-msgs): Ditto.
387         (elmo-archive-copy-msgs-froms): Ditto.
388         (elmo-archive-get-msg-filename): Ditto.
389         (elmo-archive-folder-diff): New alias.
390
391 2000-10-06   Daiki Ueno  <ueno@unixuser.org>
392
393         * elmo-vars.el (elmo-imap4-stream-type-alist): New variable.
394         (elmo-pop3-stream-type-alist): New variable.
395         (elmo-nntp-stream-type-alist): New variable.
396
397         * elmo-util.el (elmo-buffer-exists-p): Rewrite as function.
398         (elmo-kill-buffer): Ditto.
399         (elmo-get-network-stream-type): Add 2nd argument `stream-type-alist'.
400         (elmo-network-get-spec): Add 5th argument `stream-type-alist'.
401         (elmo-nntp-get-spec): Take into account `elmo-nntp-stream-type-alist'.
402         (elmo-pop3-get-spec): Take into account `elmo-pop3-stream-type-alist'.
403         (elmo-imap4-get-spec): Take into account
404         `elmo-imap4-stream-type-alist'.
405
406 2000-10-06  Kenichi OKADA  <okada@opaopa.org>
407
408         * elmo-nntp.el (elmo-nntp-list-folders): Fix for `-/'
409         (elmo-nntp-list-folders-get-cache): Ditto.
410
411 2000-10-05  Yuuichi Teranishi  <teranisi@gohome.org>
412
413         * elmo-imap4.el (elmo-imap4-search-internal-primitive): Added space
414         character before 'uid'.
415
416 2000-10-04  Yuuichi Teranishi  <teranisi@gohome.org>
417
418         * elmo-msgdb.el (elmo-msgdb-delete-msgs): Don't save location data.
419
420         * elmo-nntp.el (elmo-nntp-max-of-folder): Fixed.
421
422         * elmo-util.el (elmo-number-set-member): New function.
423         (elmo-number-set-append-list): Ditto.
424         (elmo-number-set-append): Ditto.
425
426         * elmo-msgdb.el (elmo-msgdb-killed-message-p):
427         Use `elmo-number-set-member'.
428         (elmo-living-messages): Ditto.
429         (elmo-msgdb-set-as-killed): Use `elmo-number-set-append'.
430         (elmo-msgdb-append-to-killed-list): Use `elmo-number-set-append-list'.
431
432         * elmo-imap4.el (elmo-imap4-folder-exists-p): Rewrite.
433         (elmo-imap4-add-to-cont-list): Abolished.
434         (elmo-imap4-make-number-set-list): Use `elmo-number-set-append'
435         instead of elmo-imap4-add-to-cont-list.
436
437         * elmo2.el (elmo-msgdb-search): Moved from elmo-msgdb.el.
438         (toplevel): Removed autoload setting for `elmo-imap4-get-connection'.
439
440         * elmo-msgdb.el (elmo-msgdb-search): Moved to elmo2.el.
441
442 2000-10-03  Hiroya Murata      <lapis-lazuli@pop06.odn.ne.jp>
443
444         * elmo-util.el (elmo-condition-parse-search-value):
445         Fixed date parsing.
446
447 2000-10-03  Yuuichi Teranishi  <teranisi@gohome.org>
448
449         * elmo-util.el (elmo-condition-find-key-internal): New function.
450         (elmo-condition-find-key): Ditto.
451
452         * elmo-msgdb.el (elmo-msgdb-search-internal-primitive): New function.
453         (elmo-msgdb-search-internal): Ditto.
454         (elmo-msgdb-search): Ditto.
455
456 2000-10-02  Yuuichi Teranishi  <teranisi@gohome.org>
457
458         * elmo-util.el (elmo-cross-device-link-error-p): Abolished.
459         (elmo-copy-file): Uncheck error condition for `add-name-to-file'.
460
461         * elmo-nntp.el (elmo-nntp-search-primitive): Decode header field.
462         (elmo-nntp-search-primitive): Fixed problem when condition is
463         'unmatch'.
464
465         * elmo-util.el (elmo-buffer-field-primitive-condition-match): Fixed.
466
467         * elmo-nntp.el (elmo-nntp-default-use-xhdr): New variable.
468         (elmo-nntp-xhdr-p): New macro.
469         (elmo-nntp-set-xhdr): Ditto.
470         (elmo-nntp-parse-xhdr-response): New function.
471         (elmo-nntp-retrieve-field): Ditto.
472         (elmo-nntp-search-primitive): Ditto.
473         (elmo-nntp-search): Implemented.
474
475         * elmo-date.el (elmo-date-make-sortable-string): New macro.
476
477         * elmo-archive.el (elmo-archive-search): Set all number list to
478         `elmo-archive-field-condition-match'
479
480         * elmo-localdir.el (elmo-localdir-search): Likewise.
481
482         * elmo-maildir.el (elmo-maildir-search): Likewise.
483
484 2000-10-01  OKAZAKI Tetsurou  <okazaki@be.to>
485
486         * elmo-msgdb.el (elmo-living-messages): New function.
487         * elmo-archive.el (elmo-archive-list-folder-subr): Use it.
488         * elmo-cache.el (elmo-cache-list-folder): Ditto.
489         * elmo-dop.el (elmo-dop-list-folder): Ditto.
490         * elmo-imap4.el (elmo-imap4-list-folder): Ditto.
491         * elmo-internal.el (elmo-internal-list-folder-subr): Ditto.
492         * elmo-localdir.el (elmo-localdir-list-folder-subr): Ditto.
493         * elmo-maildir.el (elmo-maildir-list-folder-subr): Ditto.
494         * elmo-multi.el (elmo-multi-list-folder): Ditto.
495         * elmo-nntp.el (elmo-nntp-list-folder): Ditto.
496         * elmo-pipe.el (elmo-pipe-list-folder): Ditto.
497         * elmo-pop3.el (elmo-pop3-list-folder): Ditto.
498
499 2000-09-29  Yuuichi Teranishi  <teranisi@gohome.org>
500
501         * elmo-maildir.el (elmo-maildir-pack-number): Implemented.
502
503         * elmo-msgdb.el (elmo-msgdb-delete-msgs): Save location data.
504
505         * elmo2.el (elmo-pack-number): Added 'maildir as allowd type.
506
507         * elmo-imap4.el (elmo-imap4-search-internal-primitive): Fixed
508         arguments for `SEARCH' command.
509         (elmo-imap4-parse-string): Set `POS' argument for char-after.
510         All other related portions are changed.
511
512         * elmo-cache.el (elmo-cache-search-all): Added argument `from-msgs'.
513
514         * elmo2.el (elmo-generic-list-folder-unread): Rewrite.
515         (elmo-list-folder-unread): Rewrite.
516         (elmo-list-folder-important): Ditto.
517
518         * elmo-util.el (elmo-filter-get-spec): Rewrite.
519         (elmo-condition-parse-error): New inline function.
520         (elmo-read-search-condition): New function.
521         (elmo-read-search-condition-internal): Ditto.
522         (elmo-parse-search-condition): Rewrite.
523         (elmo-condition-parse): New function.
524         (elmo-condition-parse-or-expr): Ditto.
525         (elmo-condition-parse-and-expr): Ditto.
526         (elmo-condition-parse-primitive): Ditto.
527         (elmo-condition-parse-search-value): Ditto.
528         (elmo-buffer-field-primitive-condition-match): Ditto.
529         (elmo-buffer-field-condition-match): Rewrite.
530         (elmo-file-field-condition-match): Ditto.
531
532         * elmo-msgdb.el (elmo-msgdb-expand-path): Use
533         `elmo-replace-msgid-as-filename' instead of `elmo-safe-filename'.
534
535         * elmo-internal.el (elmo-internal-search): Set `number' and
536         `number-list' argument of `elmo-file-field-condition-match'.
537
538         * elmo-maildir.el (elmo-maildir-search): Ditto.
539
540         * elmo-imap4.el (elmo-imap4-list-folder-unread): Use
541         `msgdb' as argument instead of `mark-alist'.
542         (elmo-imap4-list-folder-important): Use `msgdb' as argument instead of
543         `overview'.
544
545         * elmo-multi.el: Likewise.
546
547         * elmo-pipe.el: Likewise.
548
549         * elmo-imap4.el (elmo-imap4-search-internal-primitive): New function.
550         (elmo-imap4-search-internal): Rewrite.
551         (elmo-imap4-search): Ditto.
552
553         * elmo-filter.el (elmo-filter-list-folder): Rewrite.
554         (elmo-filter-list-folder-unread): Ditto.
555         (elmo-filter-list-folder-important): Ditto.
556         (elmo-filter-search): Rewrite.
557
558         * elmo-cache.el (elmo-cache-search-all): Set `number' and
559         `number-list' argument of `elmo-file-field-condition-match'.
560         (elmo-cache-search): Ditto.
561
562         * elmo-localdir.el: Likewise.
563
564         * elmo-archive.el (elmo-archive-field-condition-match): Added argument
565         number-list and pass it to `elmo-buffer-field-condition-match'.
566         (elmo-archive-field-condition-match): Pass `number-list' to
567         `elmo-archive-field-condition-match'
568
569 2000-09-25  Yuuichi Teranishi  <teranisi@gohome.org>
570
571         * elmo-nntp.el (elmo-nntp-list-folder): Set current group after
572         `listgroup'.
573
574         * elmo2.el (elmo-folder-diff-async-callback): New variable.
575         (elmo-folder-diff-async-callback-data): Ditto.
576         (elmo-folder-diff-async): New function.
577
578         * elmo-net.el (elmo-network-session-name-prefix): New variable.
579         (elmo-network-session-cache-key): Use it as a prefix of the session
580         name.
581         (elmo-network-open-session): Ditto.
582
583         * elmo-imap4.el (elmo-imap4-status-callback): New local variable.
584         (elmo-imap4-status-callback-data): Ditto.
585         (elmo-imap4-server-diff-async-callback): New variable.
586         (elmo-imap4-server-diff-async-callback-data): Ditto.
587         (elmo-imap4-local-variables): Added `elmo-imap4-status-callback' and
588         `elmo-imap4-status-callback-data'.
589         (elmo-imap4-max-of-folder): Set `elmo-imap4-status-callback' and
590         `elmo-imap4-status-callback-data' as nil.
591         (elmo-imap4-server-diff): Ditto.
592         (elmo-imap4-server-diff-async-callback-1): New function.
593         (elmo-imap4-server-diff-async): Ditto.
594         (elmo-imap4-parse-status): Call `elmo-imap4-status-callback'.
595
596 2000-09-24  OKAZAKI Tetsurou  <okazaki@be.to>
597
598         * elmo-util.el (elmo-list-delete): Doc fix.
599         (elmo-delete-lists): Abolish.
600         * elmo2.el (elmo-crosspost-message-delete): Use `elmo-list-delete'
601         instead of `elmo-delete-lists'.
602
603 2000-09-19  Yuuichi Teranishi  <teranisi@gohome.org>
604
605         * elmo-imap4.el (elmo-imap4-make-number-set-list): Copy `msg-list'
606         before `sort'.
607
608 2000-09-18  OKAZAKI Tetsurou  <okazaki@be.to>
609
610         * elmo-imap4.el (elmo-imap4-literal-1): Renamed from
611         `elmo-imap4-literal-subr'.
612         (elmo-imap4-string-1): Renamed from `elmo-imap4-string-subr'.
613         (elmo-imap4-astring-1): Renamed from `elmo-imap4-astring-subr'.
614
615 2000-09-15  Kenichi OKADA  <okada@opaopa.org>
616
617         * elmo-archive.el (elmo-archive-list-folder-subr): Fix.
618         (elmo-archive-list-folder): Fix.
619         (elmo-archive-max-of-folder): Fix.
620
621 2000-09-15  Kenichi OKADA  <okada@opaopa.org>
622
623         * elmo-localdir.el (elmo-localdir-copy-msgs): Use
624          `elmo-localdir-max-of-folder' instead of 'elmo-localdir-list-folder-subr'.
625         (elmo-localdir-append-msg): Ditto.
626         (elmo-localdir-list-folder): Fix for `nonsort'.
627         (elmo-localdir-list-folder-subr): Fix for `killed'.
628         * elmo-maildir.el (elmo-maildir-list-folder): Ditto.
629         (elmo-maildir-list-folder-subr): Ditto.
630         * elmo-archive.el (elmo-archive-list-folder): Ditto.
631         (elmo-archive-list-folder-subr): Ditto.
632         * elmo-internal.el (elmo-internal-list-folder): Ditto.
633         (elmo-internal-list-folder-subr): Ditto.
634
635 2000-09-13  Yuuichi Teranishi  <teranisi@gohome.org>
636
637         * elmo-imap4.el (elmo-imap4-parse-flag-list): Rewrite.
638
639 2000-09-12  Katsumi Yamaoka    <yamaoka@jpl.org>
640
641         * elmo-util.el (elmo-delete-plugged): Fix parenthesis.
642
643 2000-09-11  Yuuichi Teranishi  <teranisi@gohome.org>
644
645         * mmelmo-imap4-2.el (mmelmo-imap4-get-mime-entity):
646         Clear `elmo-imap4-fetch-callback' and `elmo-imap4-fetch-callback-data'.
647
648         * elmo-imap4.el (elmo-network-initialize-session): Skip garbage output
649         before greeting.
650         (elmo-imap4-read-part): Use "body.peek" to fetch part.
651         Clear `elmo-imap4-fetch-callback' and `elmo-imap4-fetch-callback-data'.
652
653 2000-09-06  Yuuichi Teranishi  <teranisi@gohome.org>
654
655         * mmelmo-imap4-2.el (mime-entity-children): Defined.
656
657         * elmo-imap4.el (elmo-imap4-mark-set-on-msgs):
658         Clear `elmo-imap4-fetch-callback' and `elmo-imap4-fetch-callback-data'
659         before STORE command.
660
661 2000-09-04  Yuuichi Teranishi  <teranisi@gohome.org>
662
663         * elmo2.el (elmo-multi-folder-diff): Fixed problem of filter folder.
664
665         * elmo-imap4.el (elmo-imap4-authenticator-alist): Added `plain' entry.
666         (elmo-imap4-send-command): Use `elmo-imap4-current-response' instead
667         of `response'.
668         (elmo-imap4-list-folders): Removed unused local variable.
669         (elmo-network-initialize-session): Ditto.
670         (elmo-imap4-delete-msg-by-id): Ditto.
671         (elmo-imap4-parse-fetch): Ditto.
672         (elmo-imap4-copy-msgs): Ditto.
673         Use `dst-spec' instead of `dst-folder'.
674         (elmo-network-authenticate-session): Check authenticate type `plain'.
675
676 2000-09-01  Yuuichi Teranishi  <teranisi@gohome.org>
677
678         * elmo-imap4.el (elmo-imap4-parse-response): Use string-match for
679         garbage checking.
680         (elmo-imap4-read-part): Use `elmo-imap4-response-value-all' instead of
681         `elmo-imap4-response-value'.
682         (elmo-imap4-parse-response): Return value of `EXPUNGE'.
683
684 2000-08-31  Yuuichi Teranishi  <teranisi@gohome.org>
685
686         * elmo-imap4.el (elmo-imap4-send-command):
687         Cause elmo-imap4-bye-error when current response is BYE.
688         (elmo-imap4-arrival-filter): Changed greeting response value.
689
690         * elmo2.el (elmo-imap4-bye-error): Define.
691
692         * elmo-imap4.el (elmo-imap4-list): Don't call `elmo-imap4-commit'.
693         (elmo-imap4-server-diff): Ditto.
694         (elmo-imap4-response-bye-p): New macro.
695         (elmo-imap4-response-error-text): Get text from BYE response.
696         (elmo-imap4-read-response): Return if BYE response.
697         (elmo-imap4-accept-ok): Cause elmo-imap4-bye-error when BYE response.
698         (elmo-imap4-folder-exists-p): Ditto.
699         (elmo-imap4-commit): Do nothing when different mailbox is selected.
700         (elmo-imap4-parse-bye): New function.
701         (elmo-imap4-parse-response): Remove needless let.
702         Call `elmo-imap4-parse-bye'.
703
704 2000-08-30  Yuuichi Teranishi  <teranisi@gohome.org>
705
706         * elmo-imap4.el (elmo-imap4-folder-exists-p): Don't cause an error when
707         the mailbox does not exist.
708         (elmo-imap4-parse-namespace): Copy `elmo-imap4-extra-namespace-alist'.
709
710 2000-08-30  OKAZAKI Tetsurou  <okazaki@be.to>
711
712         * elmo-imap4.el (elmo-imap4-send-command): Remove unused local variable.
713
714 2000-08-29  Yuuichi Teranishi  <teranisi@gohome.org>
715
716         * elmo-vars.el (elmo-search-mime-charset): Abolished.
717
718         * elmo-pop3.el (elmo-pop3-local-variables): New variable.
719         (elmo-network-initialize-session-buffer): Defined.
720
721         * mmelmo-imap4-2.el (mmelmo-imap4-parse-bodystructure-string):
722         Abolished.
723         (mmelmo-imap4-get-mime-entity): Rewrite.
724
725         * elmo2.el (elmo-error): Capitalize error message.
726
727         * elmo-net.el (elmo-network-initialize-session-buffer): New method.
728         (elmo-network-session-buffer): New macro.
729         (elmo-network-open-session): Use it.
730
731         * elmo-imap4.el: Rewrite.
732
733 2000-08-27 Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
734
735         * elmo-nntp.el (Toplevel): Require 'elmo-net.
736
737 2000-08-27   Daiki Ueno  <ueno@unixuser.org>
738
739         * elmo-imap4.el (elmo-imap4-make-address): Abolish.
740         (elmo-imap4-msgdb-create): Don't request ENVELOPE.
741         (elmo-imap4-create-msgdb-from-overview-string): Use
742         `elmo-msgdb-create-overview-from-buffer'.
743
744 2000-08-26   Daiki Ueno  <ueno@unixuser.org>
745
746         * elmo-imap4.el (elmo-imap4-parse-namespace): Tolerate INBOX regexp.
747         (elmo-imap4-default-hierarchy-delimiter): New variable.
748         (elmo-imap4-list-folders): Use it.
749
750 2000-08-23  Yuuichi Teranishi  <teranisi@gohome.org>
751
752         * elmo-net.el (elmo-network-open-session): Add user and
753         stream-type for process-buffer name.
754
755         * elmo-pop3.el (elmo-network-initialize-session): Call
756         buffer-disable-undo.
757
758         * elmo-imap4.el (elmo-network-initialize-session):
759         Set current-buffer as an argument for `buffer-disable-undo'.
760
761         * elmo-pop3.el (elmo-network-close-session): Don't use
762         `process-live-p'.
763
764         * elmo-vars.el (elmo-default-pop3-authenticate-type):
765         Set default as 'user.
766
767         * mmelmo-imap4-2.el (mmelmo-imap4-get-mime-entity): Rewrite.
768
769         * elmo2.el (elmo-quit): Don't use `elmo-pop3-flush-connection'
770         and `elmo-imap4-flush-connection'.
771
772         * elmo-util.el (toplevel): Removed workaround for timezone y2k.
773         (elmo-pop3-get-spec): Assume auth as symbol.
774         (elmo-open-network-stream): Moved to `elmo-net'.
775
776         * elmo-pop3.el (toplevel): Require 'elmo-net.
777         Define `sasl-cram-md5' to silence byte compilier.
778         (elmo-pop3-connection-cache) Abolished.
779         (elmo-pop3-authenticator-alist) New variable.
780         (elmo-pop3-session): Define.
781         (elmo-pop3-connection-get-process): Abolished.
782         (elmo-pop3-connection-get-buffer): Ditto.
783         (elmo-pop3-close-connection): Ditto.
784         (elmo-pop3-flush-connection): Ditto.
785         (elmo-pop3-get-connection): Ditto.
786         (elmo-pop3-get-session): New function.
787         (Replacement for `elmo-pop3-get-connection').
788         All other related modules are changed.
789         (elmo-network-close-session): Define.
790         (elmo-pop3-send-command): Abolished argument `buffer'.
791         All other related modules are changed.
792         (elmo-pop3-read-response): Likewise.
793         (elmo-pop3-open-connection): Abolished.
794         (elmo-pop3-auth-user): New function.
795         (elmo-pop3-auth-apop): Ditto.
796         (elmo-pop3-auth-cram-md5): Ditto.
797         (elmo-pop3-auth-scram-md5): Ditto.
798         (elmo-pop3-auth-digest-md5): Ditto.
799         (elmo-network-initialize-session): Define.
800         (elmo-network-authenticate-session): Ditto.
801         (elmo-network-setup-session): Ditto.
802
803         * elmo-imap4.el (toplevel): Require 'elmo-net.
804         (elmo-imap4-session): Define.
805         (elmo-imap4-connection-cache): Abolished.
806         (elmo-imap4-password-key): Ditto.
807         (elmo-imap4-flush-connection): Ditto.
808         (elmo-imap4-get-connection): Ditto.
809         All other related modules are changed.
810         (elmo-imap4-get-session): New function
811         (Replacement for `elmo-imap4-get-connection').
812         (elmo-imap4-read-response): Abolished argument `buffer'.
813         All other related modules are changed.
814         (elmo-imap4-send-command): Likewise.
815         (elmo-imap4-select-folder): Abolished.
816         All other related modules are changed.
817         (elmo-imap4-select-mailbox): New function.
818         (Replacement for `elmo-imap4-select-folder').
819         (elmo-imap4-auth-login): Simplify.
820         (Assume current buffer as process buffer)
821         (elmo-imap4-auth-cram-md5): Ditto.
822         (elmo-imap4-auth-digest-md5): Ditto.
823         (elmo-imap4-login): Ditto.
824         (elmo-imap4-open-connection): Abolished.
825         (elmo-imap4-open-connection-1): Abolished.
826         (elmo-network-initialize-sessoin): Define.
827         (elmo-network-authenticate-session): Ditto.
828         (elmo-network-setup-session): Ditto.
829
830         * elmo-net.el: New module.
831
832 2000-08-22   Daiki Ueno  <ueno@unixuser.org>
833
834         * elmo-util.el (elmo-define-error): New function.
835
836         * elmo2.el (elmo-error): Define.
837         (elmo-open-error): Define.
838         (elmo-authenticate-error): Define.
839
840         * elmo-imap4.el (elmo-imap4-error): Abolish.
841         (elmo-imap4-error-type): Abolish.
842         (elmo-imap4-error-process): Abolish.
843         (elmo-imap4-error-message): Abolish
844         (elmo-imap4-list-folders): Don't quote lambda.
845         (elmo-imap4-create-msgdb-from-overview-string): Ditto.
846         (elmo-imap4-parse-namespace): Ditto.
847         (elmo-imap4-open-connection): Rewrite.
848         (elmo-imap4-open-connection-1): Simplified (authenticate only).
849         (elmo-imap4-get-connection): Abolish local variable `result'.
850
851 2000-08-21  Kaoru Takahashi  <kaoru@kaisei.org>
852
853         * elmo-imap4.el (elmo-imap4-open-connection-1): Fixed probrem
854         wrong-type-argument error when auth is nil.
855
856 2000-08-21  Yuuichi Teranishi  <teranisi@gohome.org>
857
858         * elmo-vars.el (elmo-default-imap4-stream-type): New variable.
859         (elmo-default-nntp-stream-type): Ditto.
860         (elmo-default-pop3-stream-type): Ditto.
861         (elmo-network-stream-type-alist): Ditto.
862         (elmo-default-imap4-ssl): Abolished.
863         (elmo-default-nntp-ssl): Ditto.
864         (elmo-default-pop3-ssl): Ditto.
865
866         * elmo-util.el: (toplevel): Removed needless requires.
867         (elmo-network-get-spec): Use `elmo-network-stream-type-alist'.
868         (elmo-open-network-stream): Open network stream according to
869         the value of `elmo-network-stream-type-alist'.
870         (elmo-get-network-stream-type): New function.
871         (elmo-network-stream-type-spec-string): New macro.
872         (elmo-network-stream-type-symbol): Ditto.
873         (elmo-network-stream-type-function): Ditto.
874
875         * elmo-pop3.el (elmo-pop3-get-connection): Follow up changes for
876         network-stream-type. All other related portions are changed.
877         (elmo-pop3-open-connection): Ditto.
878
879         * elmo-nntp.el (elmo-nntp-setting): Follow up changes for
880         network-stream-type. All other related portions are changed.
881
882         * elmo-imap4.el (elmo-imap4-get-connection): Follow up changes for
883         network-stream-type.All other related portions are changed.
884         (elmo-imap4-error): New macro.
885         (elmo-imap4-error-type): Ditto.
886         (elmo-imap4-error-process): Ditto.
887         (elmo-imap4-error-message): Ditto.
888         (elmo-imap4-auth-login): Use `elmo-imap4-error'.
889         (elmo-imap4-auth-cram-md5): Ditto.
890         (elmo-imap4-auth-digest-md5): Ditto.
891         (elmo-imap4-login): Ditto.
892         (elmo-imap4-open-connection): Remove password entry if authentication
893         was in vain.
894         (elmo-imap4-user-at-host): Abolished.
895         (elmo-imap4-password-key): New buffer local variable.
896         (elmo-imap4-open-connection-1): Set value of `elmo-imap4-password-key'
897         using protocol, port, auth and stream-type.
898
899         * elmo-dop.el (elmo-dop-list-folder): Use killed list.
900
901 2000-08-13   Daiki Ueno  <ueno@unixuser.org>
902
903         * elmo-vars.el (elmo-default-imap4-authenticate-type): Default to nil.
904
905         * elmo-util.el (elmo-imap4-get-spec): Assume auth as symbol.
906
907         * elmo-imap4.el (elmo-imap4-user-at-host): New variable.
908         (elmo-imap4-authenticator-alist): New variable.
909         (elmo-imap4-open-connection-1): Rename from
910         elmo-imap4-open-connection.
911         (elmo-imap4-open-connection): Abolish 5th argument `passphrase';
912         only wraps elmo-imap4-open-connection-1.
913         (elmo-imap4-get-connection): Abolish local variable buffer, proc-stat,
914         user-at-host.
915         (elmo-imap4-auth-login): New function.
916         (elmo-imap4-auth-cram-md5): New function.
917         (elmo-imap4-auth-digest-md5): New function.
918         (elmo-imap4-login): New function.
919
920 2000-08-12  Kenichi OKADA  <okada@opaopa.org>
921
922         * elmo-maildir.el (elmo-maildir-delete-folder): Set argument of the
923         function `error'.
924
925 2000-08-12  Kenichi OKADA  <okada@opaopa.org>
926
927         * elmo-pop3.el (elmo-pop3-get-connection): Add `signal'.
928
929 2000-08-08  Yuuichi Teranishi  <teranisi@gohome.org>
930
931         * elmo2.el (elmo-move-msgs): Set value of `unseen'.
932
933 2000-08-06  OKAZAKI Tetsurou  <okazaki@be.to>
934
935         * elmo-imap4.el (elmo-imap4-parse-overview-string): In regexps
936         for server responses, quote `*' regardless of where it appears.
937
938 2000-08-03  Kenichi OKADA  <okada@opaopa.org>
939
940         * elmo-maildir.el (elmo-maildir-commit): New alias.
941
942 2000-08-03  Kenichi OKADA  <okada@opaopa.org>
943
944         * elmo-util.el (elmo-display-progress):
945                 Use `progress-feedback-with-label'.
946
947 2000-08-02  OKAZAKI Tetsurou  <okazaki@be.to>
948
949         * elmo-imap4.el (elmo-imap4-quoted-specials-list): New constant.
950         (elmo-imap4-non-atom-char-regex): Ditto.
951         (elmo-imap4-non-text-char-regex): Ditto.
952         (elmo-imap4-literal-threshold): Ditto.
953         (elmo-imap4-atom-p): New function.
954         (elmo-imap4-quotable-p): Ditto.
955         (elmo-imap4-nil): Ditto.
956         (elmo-imap4-atom): Ditto.
957         (elmo-imap4-quoted): Ditto.
958         (elmo-imap4-literal-subr): Ditto.
959         (elmo-imap4-literal): Ditto.
960         (elmo-imap4-buffer-literal): Ditto.
961         (elmo-imap4-string-subr): Ditto.
962         (elmo-imap4-string): Ditto.
963         (elmo-imap4-buffer-string): Ditto.
964         (elmo-imap4-astring-subr): Ditto.
965         (elmo-imap4-astring): Ditto.
966         (elmo-imap4-buffer-astring): Ditto.
967         (elmo-imap4-nstring): Ditto.
968         (elmo-imap4-buffer-nstring): Ditto.
969         (elmo-imap4-mailbox): New alias.
970         (elmo-imap4-field-body): Ditto.
971         (elmo-imap4-userid): Ditto.
972         (elmo-imap4-password): Ditto.
973         (elmo-imap4-format-quoted): New function.
974         (elmo-imap4-send-command): Rewritten.  Accept a list of command
975         arguments and handle "atom", "quoted" and "literal" string here.
976         (elmo-imap4-list-folders): Use `elmo-imap4-mailbox' for
977         `elmo-imap4-send-command'.
978         (elmo-imap4-folder-exists-p): Likewise.
979         (elmo-imap4-create-folder): Likewise.
980         (elmo-imap4-delete-folder): Likewise.
981         (elmo-imap4-rename-folder): Likewise.
982         (elmo-imap4-max-of-folder): Likewise.
983         (elmo-imap4-check-validity): Likewise.
984         (elmo-imap4-sync-validity): Likewise.
985         (elmo-imap4-server-diff): Likewise.
986         (elmo-imap4-select-folder): Likewise.
987         (elmo-imap4-copy-msgs): Likewise.
988         (elmo-imap4-search-internal): Use `elmo-imap4-astring'.
989         (elmo-imap4-mark-set-on-msgs): Likewise.
990         (elmo-imap4-read-part): Likewise.
991         (elmo-imap4-read-msg): Likewise.
992         (elmo-imap4-open-connection): Use `elmo-imap4-userid' and
993         `elmo-imap4-password' for `elmo-imap4-send-command'.
994         (elmo-imap4-delete-msg-by-id): Use `elmo-imap4-field-body'.
995         (elmo-imap4-append-msg-by-id): Use `elmo-imap4-mailbox' and
996         `elmo-imap4-buffer-literal'.
997         (elmo-imap4-append-msg): Likewise.
998
999         * elmo-imap4.el (elmo-imap4-get-connection): Use `delq' instead of
1000         `delete' for removing dead connection from the connection cache.
1001         Move deletion of the process buffer after that.
1002         (elmo-imap4-list): Change `defsubst' to `defun'.
1003         (elmo-imap4-commit): Make error message verbose.
1004         (elmo-imap4-search): Ditto.
1005         (elmo-imap4-list): Ditto.
1006         (elmo-imap4-select-folder): Ditto.
1007         (elmo-imap4-copy-msgs): Ditto.
1008         (elmo-imap4-delete-msg-by-id): Ditto.
1009         (elmo-imap4-append-msg-by-id): Ditto.
1010         (elmo-imap4-append-msg): Ditto.
1011
1012 2000-07-26  Takaaki MORIYAMA <taka@airlab.cs.ritsumei.ac.jp>
1013
1014         * elmo-archive.el (elmo-archive-get-archive-name): Fixed problem
1015         when dired is used on XEmacs.
1016
1017 2000-07-25  OKAZAKI Tetsurou  <okazaki@be.to>
1018
1019         * elmo-imap4.el (elmo-imap4-process-folder-list): Use `nconc'
1020         instead of `append'.
1021         (elmo-imap4-commit): Use `elmo-imap4-plugged-p' instead of
1022         `elmo-plugged-p' directly.
1023         * elmo-pop3.el (elmo-pop3-commit): Use `elmo-pop3-plugged-p' instead
1024         of `elmo-plugged-p' directly.
1025
1026         * elmo-pop3.el (elmo-pop3-get-connection): Split temporary variable.
1027         Eliminate unused variable.  Use `memq' for checking a process status.
1028         Use `cons' instead of `append' for updating the connection cache.
1029         * elmo-nntp.el (elmo-nntp-get-connection): Likewise.
1030         * elmo-imap4.el (elmo-imap4-get-connection): Likewise.
1031
1032 2000-07-22  OKAZAKI Tetsurou  <okazaki@be.to>
1033
1034         * elmo-imap4.el (elmo-imap4-read-bytes): Advance
1035         `elmo-imap4-read-point' exactly.
1036
1037         * mmelmo-imap4-2.el (mmelmo-imap4-get-mime-entity): Rename
1038         the local variable `folder' to `mailbox'.
1039         Rename the argument `fld' to `folder'.
1040
1041 2000-07-20  Kenichi OKADA  <okada@opaopa.org>
1042
1043         * elmo-pop3.el (elmo-pop3-commit): Do nothing when unplugged.
1044         * elmo-imap4.el (elmo-imap4-commit): Ditto.
1045
1046 2000-07-18  Yuuichi Teranishi  <teranisi@gohome.org>
1047
1048         * elmo-pop3.el (elmo-pop3-use-uidl): New variable.
1049         (elmo-pop3-number-uidl-hash): New buffer-local variable.
1050         (elmo-pop3-uidl-number-hash): Ditto.
1051         (elmo-pop3-size-hash): Ditto.
1052         (elmo-pop3-uidl-done): Ditto.
1053         (elmo-pop3-list-done): Ditto.
1054         (elmo-pop3-connection-get-process): New defmacro.
1055         (elmo-pop3-connection-get-buffer): Ditto.
1056         (elmo-pop3-close-connection): Delete buffer and process.
1057         (elmo-pop3-flush-connection): Don't delete buffer and process.
1058         (elmo-pop3-get-connection): Added optional argument `if-exists'.
1059         Setup UIDL and size hash.
1060         (elmo-pop3-send-command-no-erase): Deleted
1061         (elmo-pop3-send-command): Added optional argument `no-erase'.
1062         (elmo-pop3-parse-uidl-response): New function.
1063         (elmo-pop3-parse-list-response): Set size hash.
1064         (elmo-pop3-list-location): New function.
1065         (elmo-pop3-list-by-uidl-subr): Ditto.
1066         (elmo-pop3-list-by-list): Ditto.
1067         (elmo-pop3-list-folder): Call `elmo-pop3-commit'.
1068         Call `elmo-pop3-list-by-uidl-subr' or `elmo-pop3-list-by-list'.
1069         (elmo-pop3-max-of-folder): Call `elmo-pop3-commit'.
1070         Call `elmo-pop3-list-by-uidl-subr' if `elmo-pop3-use-uidl' is non-nil.
1071         (elmo-pop3-msgdb-create-as-numlist): Added optional argument `msgdb'.
1072         Use uidl.
1073         (elmo-pop3-uidl-to-number): New function.
1074         (elmo-pop3-number-to-uidl): Ditto.
1075         (elmo-pop3-number-to-size): Ditto.
1076         (elmo-pop3-msgdb-create-by-header): Added argument `loc-alist'.
1077         Set number by use of uidl.
1078         (elmo-pop3-msgdb-create-message): Likewise.
1079         Set size, loc-alist in msgdb.
1080         (elmo-pop3-read-msg): Set number by use of uidl.
1081         Added optional argument `msgdb'.
1082         (elmo-pop3-delete-msg): Ditto.
1083         (elmo-pop3-delete-msgs): Added optional argument `msgdb'.
1084         (elmo-pop3-commit): Close connection.
1085
1086         * elmo-pipe.el (elmo-pipe-max-of-folder):
1087         Bind `elmo-pop3-use-uidl' as nil.
1088         (elmo-pipe-drain): Ditto.
1089         Call `elmo-commit'.
1090
1091         * elmo-msgdb.el (elmo-msgdb-delete-msgs): Delete location too.
1092         (elmo-msgdb-overview-entity-set-size): New defsubst.
1093
1094 2000-07-17  Yuuichi Teranishi  <teranisi@gohome.org>
1095
1096         * elmo-vars.el (elmo-use-killed-list): New variable
1097         (Renamed from `elmo-nntp-use-killed-list').
1098         (elmo-nntp-use-killed-list): Eliminated.
1099
1100         * elmo-msgdb.el (elmo-msgdb-expand-path):
1101         Changed expanding msgdb path for elmo-multi.
1102
1103         * elmo-archive.el, elmo-cache.el, elmo-database.el, elmo-date.el,
1104         elmo-dop.el, elmo-filter.el, elmo-imap4.el, elmo-internal.el,
1105         elmo-localdir.el, elmo-localnews.el, elmo-maildir.el, elmo-msgdb.el,
1106         elmo-multi.el, elmo-nntp.el, elmo-pipe.el, elmo-pop3.el,
1107         elmo-util.el, elmo-vars.el, elmo2.el, mmelmo-1.el, mmelmo-2.el,
1108         mmelmo-imap4-1.el, mmelmo-imap4-2.el, mmelmo-imap4.el, mmelmo.el
1109         (toplevel): Deleted time-stamp line.
1110
1111         * elmo2.el (elmo-clear-killed ): Defined as function
1112         (Abolished defining as a backend function).
1113         All other related modules are changed.
1114
1115 2000-07-14  Hiroshi Tsutsui <tsutsui@easter.kuee.kyoto-u.ac.jp>
1116
1117         * elmo-cache.el (elmo-cache-clear-killed): Fixed.
1118
1119 2000-07-13  Yuuichi Teranishi  <teranisi@gohome.org>
1120
1121         * elmo-msgdb.el (elmo-msgdb-append-to-killed-list): New function.
1122
1123 2000-07-12  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
1124
1125         * elmo-pop3.el (elmo-pop3-clear-killed): New alias.
1126
1127 2000-07-11  Yuuichi Teranishi  <teranisi@gohome.org>
1128
1129         * elmo-nntp.el (elmo-nntp-max-of-folder): Use killed list in
1130         asynchronous folder check.
1131
1132         * elmo2.el (elmo-move-msgs): Don't move message when buffer-size is 0.
1133
1134         * elmo-nntp.el (elmo-nntp-delete-msgs): Check the value of
1135         `elmo-nntp-use-killed-list'.
1136         (elmo-nntp-list-folder): Use killed list.
1137         (elmo-nntp-max-of-folder): Ditto.
1138         (elmo-nntp-msgdb-create): Set killed list.
1139
1140         * elmo-vars.el (elmo-nntp-use-killed-list): New user option.
1141
1142         * elmo2.el (elmo-clear-killed): New backend function.
1143         All other related modules are changed.
1144
1145 2000-07-07  OKAZAKI Tetsurou  <okazaki@be.to>
1146
1147         * elmo-util.el (elmo-imap4-spec-folder): Use
1148         `elmo-imap4-spec-mailbox'; Mark as obsolete.
1149         All callers changed.
1150
1151 2000-06-22  Yuuichi Teranishi  <teranisi@gohome.org>
1152
1153         * mmelmo-2.el (initialize-instance):
1154         Use `mime-buffer-entity-buffer-internal' instead of
1155         `mime-entity-buffer'.
1156
1157         * mmelmo-imap4-2.el (mmelmo-imap4-mime-entity-buffer): New function.
1158         (mime-entity-body): Implemented.
1159         (mime-goto-header-start-point): Deleted.
1160         (mime-goto-body-end-point): Ditto.
1161         (mime-entity-point-min): Ditto.
1162         (mime-entity-point-max): Ditto.
1163         (mime-entity-children): Ditto.
1164         (mime-insert-header): Use `mime-buffer-entity-buffer-internal'
1165         instead of `mime-entity-buffer'.
1166         (mime-entity-header-buffer): Ditto.
1167         (mime-entity-body-buffer): Ditto.
1168         (mime-write-entity-content): Ditto.
1169
1170         * pldap.el (ldap-static-if): New macro.
1171         (toplevel): Use it instead of `static-if'.
1172
1173 2000-06-19  Yuuichi Teranishi  <teranisi@gohome.org>
1174
1175         * pldap.el (ldap-search-basic): Don't collect 'dn' value even if it is
1176         included in `attrs' argument.
1177
1178 2000-06-16  Yuuichi Teranishi  <teranisi@gohome.org>
1179
1180         * elmo-util.el (elmo-get-passwd): Use old backquote style.
1181
1182         * pldap.el (ldap-ldif-safe-char-regexp): New constant.
1183         (ldap-ldif-safe-init-char-regexp): Ditto.
1184         (ldap-ldif-safe-string-regexp): Ditto.
1185         (ldap/ldif-safe-string-p): New macro.
1186         (ldap/ldif-insert-field): Ditto.
1187         (ldap-modify): Use it.
1188         (ldap-add): Ditto.
1189         (ldap-search-basic): Consider `attrsonly' also when `attrs' is nil.
1190         (ldap-decode-attribute): Decode only when `attr' is consp.
1191         (ldap-delete): Bind `ret'.
1192         (toplevel): Require 'cl at compile time.
1193         Removed (require 'poe) and (require 'std11).
1194         (pldap-version): Eliminated.
1195         (ldap-search-basic): Removed auth and dn binding.
1196         (ldap-ldif-field-name-regexp): New constant.
1197         (ldap-ldif-field-head-regexp): Ditto.
1198         (ldap-ldif-next-field-head-regexp): Ditto.
1199         (ldap/collect-field): Use `ldap-ldif-field-head-regexp'.
1200         (ldap/field-end): New function.
1201         (ldap/field-body): Use it.
1202         (ldap/collect-field): Ditto.
1203         (ldap-search-basic): Use `ldap/field-body'.
1204
1205 2000-06-15  Yuuichi Teranishi  <teranisi@gohome.org>
1206
1207         * pldap.el (ldap-default-attribute-encoder): New user option.
1208         (ldap/field-body): Decode base64 string.
1209         (ldap/collect-field): Ditto.
1210         (ldap-encode-attribute): New function.
1211         (ldap-add-entries): Use it.
1212         (ldap-modify-entries): Ditto.
1213         (ldap-search-entries): Enclosed decoding function with
1214         `with-temp-buffer' and set as unibyte.
1215         (ldap-search-basic): Set process buffer as unibyte.
1216
1217         * elmo-util.el (elmo-folder-identical-system-p):
1218         Eliminated name space checking.
1219
1220         * pldap.el: New module.
1221         toplevel: Changed condition to detect built-in ldap feature.
1222         (ldap-delete): Enclosed call-process with `with-temp-buffer'.
1223         (ldap-add): Added error handling.
1224         (ldap-modify): Ditto.
1225         (ldap-delete): Ditto.
1226
1227 2000-06-03  OKAZAKI Tetsurou  <okazaki@be.to>
1228
1229         * elmo-localdir.el (elmo-localdir-msgdb-create-as-numlist):
1230         Initialize local variables with `let'.  Inline a temporary
1231         variable for the progress percentage.  Sort `setq' to reduce
1232         function call in the while-loop.
1233
1234         * mmelmo.el (mmelmo-get-original-buffer): Move `save-excursion'
1235         into the conditional branch.
1236
1237 2000-05-30  OKAZAKI Tetsurou  <okazaki@be.to>
1238
1239         * elmo2.el (elmo-move-msgs): Replace `append' with `nconc'.
1240         Move a conditional out of the while-loop.
1241
1242 2000-05-27  Masahiro MURATA  <muse@ba2.so-net.ne.jp>
1243
1244         * elmo-msgdb.el (elmo-msgdb-overview-get-entity): Use
1245         elmo-msgdb-overview-get-entity-by-number.
1246         (elmo-msgdb-overview-get-entity-by-number): Don't use catch and
1247         throw.
1248
1249 2000-05-26  OKAZAKI Tetsurou  <okazaki@be.to>
1250
1251         * elmo-localdir.el (elmo-localdir-pack-number): Renamed
1252         the local variable for a packed number self descriptively.
1253
1254 2000-05-21  Masahiro MURATA  <muse@ba2.so-net.ne.jp>
1255
1256         * elmo2.el (elmo-msgdb-load): Remove elmo-msgdb-overview-hashtb.
1257         * elmo-localdir.el (elmo-localdir-pack-number): Use
1258         `elmo-msgdb-overview-get-entity' instead of
1259         `elmo-msgdb-overview-get-entity-by-number'.
1260         * elmo-msgdb.el (elmo-msgdb-overview-hashtb): Removed.
1261         (elmo-msgdb-search-overview-entity): Removed.
1262         (elmo-msgdb-overview-get-entity): Change argument. Get overview entity
1263         by message-id or number.
1264         (elmo-msgdb-delete-msgs): Use `elmo-msgdb-overview-get-entity'
1265         instead of `elmo-msgdb-overview-get-entity-by-number'.
1266
1267 2000-05-20  Masahiro MURATA  <muse@ba2.so-net.ne.jp>
1268
1269         * elmo-vars.el (elmo-use-overview-hashtb): New variable. If
1270         non-nil, use hash table for overview.
1271         (elmo-hash-maximum-size): New variable.
1272         * elmo-msgdb.el (elmo-msgdb-overview-hashtb): New variable.
1273         (elmo-msgdb-make-overview-hashtb): New function.
1274         (elmo-msgdb-clear-overview-hashtb): New function.
1275         (elmo-clear-hash-val): New macro.
1276         All other related modules are changed.
1277
1278 2000-05-18  Yuuichi Teranishi  <teranisi@gohome.org>
1279
1280         * elmo2.el (elmo-move-msgs): If there's other message with
1281         same message-id, don't use cache.
1282
1283 2000-05-18  Nishimoto Masaki <nishimoto@gaju.org>
1284
1285         * elmo-localdir.el (elmo-localdir-pack-number): Fixed problem when
1286         number is already packed.
1287
1288 2000-05-15  OKAZAKI Tetsurou  <okazaki@be.to>
1289
1290         * elmo-vars.el: Doc fixes. Trim trailing whitespace.
1291
1292 2000-05-12  Masahiro MURATA  <muse@ba2.so-net.ne.jp>
1293
1294         * elmo-vars.el (elmo-display-progress-threshold): New variable.
1295         All other related modules are changed.
1296
1297 2000-05-11  Yuuichi Teranishi  <teranisi@gohome.org>
1298
1299         * elmo-msgdb.el (elmo-msgdb-sort-by-date): Fixed a problem
1300         of refiling failure on Maildir.
1301
1302 2000-05-10  Masahiro MURATA  <muse@ba2.so-net.ne.jp>
1303
1304         * elmo-msgdb.el (elmo-msgdb-get-decoded-cache): get string of
1305         decoded mime-charset with cache.
1306         (elmo-msgdb-overview-entity-get-from): Ditto.
1307         (elmo-msgdb-overview-entity-get-subject): Ditto.
1308         * elmo-vars.el (elmo-use-decoded-cache): New variable.
1309
1310 2000-05-10  Kenichi OKADA  <okada@opaopa.org>
1311
1312         * elmo-utils.el (elmo-get-passwd): Set timeout of password.
1313         (elmo-remove-passwd): Fill password with 0 before erase.
1314         * elmo-vars.el (elmo-passwd-life-time): New variable.
1315
1316 \f
1317 2000-05-10  Yuuichi Teranishi  <teranisi@gohome.org>
1318
1319         * elmo-cache.el (elmo-buffer-cache-add):
1320         Set message cache buffer as unibyte.
1321
1322 2000-05-07  Masahiro MURATA  <muse@ba2.so-net.ne.jp>
1323
1324         * elmo-archive.el (elmo-archive-list-folders): Fix base-folder
1325         become nil.
1326
1327 2000-04-28  Yuuichi Teranishi  <teranisi@gohome.org>
1328
1329         * elmo-nntp.el (elmo-nntp-list-folders): Remove progress gauge
1330         when display is finished.
1331         (elmo-nntp-msgdb-create): Ditto.
1332         (elmo-nntp-groups-read-response): Ditto.
1333         (elmo-nntp-retrieve-headers): Ditto.
1334         (elmo-nntp-msgdb-create-message): Ditto.
1335         * elmo-pop3.el (elmo-pop3-retrieve-headers): Ditto.
1336         (elmo-pop3-msgdb-create-message): Ditto.
1337
1338 2000-04-24  Yuuichi Teranishi  <teranisi@elmo.dq.isl.ntt.co.jp>
1339
1340         * elmo-maildir.el (elmo-maildir-msgdb-create):
1341         Use `elmo-msgdb-sort-by-date'.
1342
1343 2000-04-20  Yuuichi Teranishi  <teranisi@gohome.org>
1344
1345         * elmo2.el (elmo-read-msg-no-cache):
1346         Eliminated arguments after `outbuf'.
1347         Don't use cache even if it exists.
1348         (elmo-read-msg): Don't pass arguments after `outbuf' to
1349         `elmo-read-msg-no-cache'.
1350
1351 2000-04-15  Yuuichi Teranishi  <teranisi@elmo.dq.isl.ntt.co.jp>
1352
1353         * elmo-archive.el (elmo-archive-list-folders):
1354         Use `file-name-directory' if base folder does not exist.
1355
1356 2000-04-14  Nishimoto Masaki <nishimoto@gaju.org>
1357
1358         * elmo-archive.el (elmo-archive-list-folders): Don't use
1359         `file-name-directory'.
1360
1361 2000-04-07  Yuuichi Teranishi  <teranisi@gohome.org>
1362
1363         * elmo-dop.el (elmo-dop-queue-flush): Add optional argument `force'.
1364         If `force' is non-nil, try flushing all operation queues.
1365
1366 2000-04-03  Yuuichi Teranishi  <teranisi@gohome.org>
1367
1368         * elmo-pop3.el (elmo-pop3-open-connection): Enclose with
1369         as-binary-process.
1370
1371 2000-03-29  Daiki Ueno <ueno@kiss.kake.info.waseda.ac.jp>
1372
1373         * elmo-util.el (elmo-display-progress): Fixed.
1374
1375 2000-03-27  Daiki Ueno <ueno@kiss.kake.info.waseda.ac.jp>
1376
1377         * elmo-util.el (elmo-display-progress): New function.
1378         All other related modules are changed.
1379