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