1 ;;; nnfolder.el --- mail folder access for Gnus
2 ;; Copyright (C) 1995 Free Software Foundation, Inc.
4 ;; Author: Scott Byer <byer@mv.us.adobe.com>
5 ;; Lars Magne Ingebrigtsen <larsi@ifi.uio.no>
6 ;; Masanobu UMEDA <umerin@flab.flab.fujitsu.junet>
7 ;; Keywords: news, mail
9 ;; This file is part of GNU Emacs.
11 ;; GNU Emacs is free software; you can redistribute it and/or modify
12 ;; it under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation; either version 2, or (at your option)
16 ;; GNU Emacs is distributed in the hope that it will be useful,
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;; GNU General Public License for more details.
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with GNU Emacs; see the file COPYING. If not, write to
23 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
27 ;; For an overview of what the interface functions do, please see the
30 ;; Various enhancements by byer@mv.us.adobe.com (Scott Byer).
38 (defvar nnfolder-directory
(expand-file-name "~/Mail/")
39 "The name of the mail box file in the users home directory.")
41 (defvar nnfolder-active-file
42 (concat (file-name-as-directory nnfolder-directory
) "active")
43 "The name of the active file.")
45 ;; I renamed this variable to somehting more in keeping with the general GNU
48 (defvar nnfolder-ignore-active-file nil
49 "If non-nil, causes nnfolder to do some extra work in order to determine the true active ranges of an mbox file.
50 Note that the active file is still saved, but it's values are not
51 used. This costs some extra time when scanning an mbox when opening
54 ;; Note that this variable may not be completely implemented yet. -SLB
56 (defvar nnfolder-always-close nil
57 "If non-nil, nnfolder attempts to only ever have one mbox open at a time.
58 This is a straight space/performance trade off, as the mboxes will have to
59 be scanned every time they are read in. If nil (default), nnfolder will
60 attempt to keep the buffers around (saving the nnfolder's buffer upon group
61 close, but not killing it), speeding some things up tremendously, especially
62 such things as moving mail. All buffers always get killed upon server close.")
64 (defvar nnfolder-newsgroups-file
65 (concat (file-name-as-directory nnfolder-directory
) "newsgroups")
66 "Mail newsgroups description file.")
68 (defvar nnfolder-get-new-mail t
69 "If non-nil, nnfolder will check the incoming mail file and split the mail.")
71 (defvar nnfolder-prepare-save-mail-hook nil
72 "Hook run narrowed to an article before saving.")
76 (defconst nnfolder-version
"nnfolder 1.0"
79 (defconst nnfolder-article-marker
"X-Gnus-Article-Number: "
80 "String used to demarcate what the article number for a message is.")
82 (defvar nnfolder-current-group nil
)
83 (defvar nnfolder-current-buffer nil
)
84 (defvar nnfolder-status-string
"")
85 (defvar nnfolder-group-alist nil
)
86 (defvar nnfolder-buffer-alist nil
)
87 (defvar nnfolder-active-timestamp nil
)
89 (defmacro nnfolder-article-string
(article)
90 (` (concat "\n" nnfolder-article-marker
(int-to-string (, article
)) " ")))
94 (defvar nnfolder-current-server nil
)
95 (defvar nnfolder-server-alist nil
)
96 (defvar nnfolder-server-variables
98 (list 'nnfolder-directory nnfolder-directory
)
99 (list 'nnfolder-active-file nnfolder-active-file
)
100 (list 'nnfolder-newsgroups-file nnfolder-newsgroups-file
)
101 (list 'nnfolder-get-new-mail nnfolder-get-new-mail
)
102 '(nnfolder-current-group nil
)
103 '(nnfolder-current-buffer nil
)
104 '(nnfolder-status-string "")
105 '(nnfolder-group-alist nil
)
106 '(nnfolder-buffer-alist nil
)
107 '(nnfolder-active-timestamp nil
)))
111 ;;; Interface functions
113 (defun nnfolder-retrieve-headers (sequence &optional newsgroup server
)
115 (set-buffer nntp-server-buffer
)
117 (let ((delim-string (concat "^" rmail-unix-mail-delimiter
))
118 article art-string start stop
)
119 (nnfolder-possibly-change-group newsgroup
)
120 (set-buffer nnfolder-current-buffer
)
121 (goto-char (point-min))
122 (if (stringp (car sequence
))
125 (setq article
(car sequence
))
126 (setq art-string
(nnfolder-article-string article
))
127 (set-buffer nnfolder-current-buffer
)
128 (if (or (search-forward art-string nil t
)
129 ;; Don't search the whole file twice! Also, articles
130 ;; probably have some locality by number, so searching
131 ;; backwards will be faster. Especially if we're at the
132 ;; beginning of the buffer :-). -SLB
133 (search-backward art-string nil t
))
135 (setq start
(or (re-search-backward delim-string nil t
)
137 (search-forward "\n\n" nil t
)
138 (setq stop
(1- (point)))
139 (set-buffer nntp-server-buffer
)
140 (insert (format "221 %d Article retrieved.\n" article
))
141 (insert-buffer-substring nnfolder-current-buffer start stop
)
142 (goto-char (point-max))
144 (setq sequence
(cdr sequence
)))
146 ;; Fold continuation lines.
147 (set-buffer nntp-server-buffer
)
148 (goto-char (point-min))
149 (while (re-search-forward "\\(\r?\n[ \t]+\\)+" nil t
)
150 (replace-match " " t t
))
153 (defun nnfolder-open-server (server &optional defs
)
154 (nnheader-init-server-buffer)
155 (if (equal server nnfolder-current-server
)
157 (if nnfolder-current-server
158 (setq nnfolder-server-alist
159 (cons (list nnfolder-current-server
160 (nnheader-save-variables nnfolder-server-variables
))
161 nnfolder-server-alist
)))
162 (let ((state (assoc server nnfolder-server-alist
)))
165 (nnheader-restore-variables (nth 1 state
))
166 (setq nnfolder-server-alist
(delq state nnfolder-server-alist
)))
167 (nnheader-set-init-variables nnfolder-server-variables defs
)))
168 (setq nnfolder-current-server server
)))
170 (defun nnfolder-close-server (&optional server
)
173 (defun nnfolder-server-opened (&optional server
)
174 (and (equal server nnfolder-current-server
)
176 (buffer-name nntp-server-buffer
)))
178 (defun nnfolder-request-close ()
179 (let ((alist nnfolder-buffer-alist
))
181 (nnfolder-close-group (car (car alist
)) nil t
)
182 (setq alist
(cdr alist
))))
183 (setq nnfolder-buffer-alist nil
184 nnfolder-group-alist nil
))
186 (defun nnfolder-status-message (&optional server
)
187 nnfolder-status-string
)
189 (defun nnfolder-request-article (article &optional newsgroup server buffer
)
190 (nnfolder-possibly-change-group newsgroup
)
191 (if (stringp article
)
194 (set-buffer nnfolder-current-buffer
)
195 (goto-char (point-min))
196 (if (search-forward (nnfolder-article-string article
) nil t
)
198 (re-search-backward (concat "^" rmail-unix-mail-delimiter
) nil t
)
201 (or (and (re-search-forward
202 (concat "^" rmail-unix-mail-delimiter
) nil t
)
204 (goto-char (point-max)))
206 (let ((nntp-server-buffer (or buffer nntp-server-buffer
)))
207 (set-buffer nntp-server-buffer
)
209 (insert-buffer-substring nnfolder-current-buffer start stop
)
210 (goto-char (point-min))
211 (while (looking-at "From ")
213 (insert "X-From-Line: ")
217 (defun nnfolder-request-group (group &optional server dont-check
)
219 (nnmail-activate 'nnfolder
)
220 (nnfolder-possibly-change-group group
)
221 (and (assoc group nnfolder-group-alist
)
225 (nnfolder-get-new-mail group
)
226 (let* ((active (assoc group nnfolder-group-alist
))
228 (range (car (cdr active
)))
229 (minactive (car range
))
230 (maxactive (cdr range
)))
231 ;; I've been getting stray 211 lines in my nnfolder active
232 ;; file. So, let's make sure that doesn't happen. -SLB
233 (set-buffer nntp-server-buffer
)
237 (insert (format "211 %d %d %d %s\n"
238 (1+ (- maxactive minactive
))
239 minactive maxactive group
))
242 ;; Don't close the buffer if we're not shutting down the server. This way,
243 ;; we can keep the buffer in the group buffer cache, and not have to grovel
244 ;; over the buffer again unless we add new mail to it or modify it in some
247 (defun nnfolder-close-group (group &optional server force
)
248 ;; Make sure we _had_ the group open.
249 (if (or (assoc group nnfolder-buffer-alist
)
250 (equal group nnfolder-current-group
))
252 (nnfolder-possibly-change-group group
)
254 (set-buffer nnfolder-current-buffer
)
255 ;; If the buffer was modified, write the file out now.
256 (and (buffer-modified-p) (save-buffer))
258 nnfolder-always-close
)
259 ;; If we're shutting the server down, we need to kill the
260 ;; buffer and remove it from the open buffer list. Or, of
261 ;; course, if we're trying to minimize our space impact.
263 (kill-buffer (current-buffer))
264 (setq nnfolder-buffer-alist
(delq (assoc group
265 nnfolder-buffer-alist
)
266 nnfolder-buffer-alist
)))))))
267 (setq nnfolder-current-group nil
268 nnfolder-current-buffer nil
)
271 (defun nnfolder-request-create-group (group &optional server
)
272 (nnmail-activate 'nnfolder
)
273 (or (assoc group nnfolder-group-alist
)
275 (setq nnfolder-group-alist
276 (cons (list group
(setq active
(cons 1 0)))
277 nnfolder-group-alist
))
278 (nnmail-save-active nnfolder-group-alist nnfolder-active-file
)))
281 (defun nnfolder-request-list (&optional server
)
282 (if server
(nnfolder-get-new-mail))
284 (nnmail-find-file nnfolder-active-file
)
285 (setq nnfolder-group-alist
(nnmail-get-active))))
287 (defun nnfolder-request-newgroups (date &optional server
)
288 (nnfolder-request-list server
))
290 (defun nnfolder-request-list-newsgroups (&optional server
)
292 (nnmail-find-file nnfolder-newsgroups-file
)))
294 (defun nnfolder-request-post (&optional server
)
295 (mail-send-and-exit nil
))
297 (defalias 'nnfolder-request-post-buffer
'nnmail-request-post-buffer
)
299 (defun nnfolder-request-expire-articles
300 (articles newsgroup
&optional server force
)
301 (nnfolder-possibly-change-group newsgroup
)
302 (let* ((days (or (and nnmail-expiry-wait-function
303 (funcall nnmail-expiry-wait-function newsgroup
))
307 (nnmail-activate 'nnfolder
)
310 (set-buffer nnfolder-current-buffer
)
311 (while (and articles is-old
)
312 (goto-char (point-min))
313 (if (search-forward (nnfolder-article-string (car articles
)) nil t
)
316 (> (nnmail-days-between
317 (current-time-string)
319 (point) (progn (end-of-line) (point))))
322 (and gnus-verbose-backends
323 (message "Deleting article %s..." (car articles
)))
324 (nnfolder-delete-mail))
325 (setq rest
(cons (car articles
) rest
))))
326 (setq articles
(cdr articles
)))
327 (and (buffer-modified-p) (save-buffer))
328 ;; Find the lowest active article in this group.
329 (let* ((active (car (cdr (assoc newsgroup nnfolder-group-alist
))))
330 (marker (concat "\n" nnfolder-article-marker
))
332 (activemin (cdr active
)))
333 (goto-char (point-min))
334 (while (and (search-forward marker nil t
)
335 (re-search-forward number nil t
))
336 (setq activemin
(min activemin
337 (string-to-number (buffer-substring
340 (setcar active activemin
))
341 (nnmail-save-active nnfolder-group-alist nnfolder-active-file
)
342 (nconc rest articles
))))
344 (defun nnfolder-request-move-article
345 (article group server accept-form
&optional last
)
346 (nnfolder-possibly-change-group group
)
347 (let ((buf (get-buffer-create " *nnfolder move*"))
350 (nnfolder-request-article article group server
)
353 (buffer-disable-undo (current-buffer))
355 (insert-buffer-substring nntp-server-buffer
)
356 (goto-char (point-min))
357 (while (re-search-forward
358 (concat "^" nnfolder-article-marker
)
359 (save-excursion (search-forward "\n\n" nil t
) (point)) t
)
360 (delete-region (progn (beginning-of-line) (point))
361 (progn (forward-line 1) (point))))
362 (setq result
(eval accept-form
))
366 (nnfolder-possibly-change-group group
)
367 (set-buffer nnfolder-current-buffer
)
368 (goto-char (point-min))
369 (if (search-forward (nnfolder-article-string article
) nil t
)
370 (nnfolder-delete-mail))
376 (defun nnfolder-request-accept-article (group &optional last
)
377 (and (stringp group
) (nnfolder-possibly-change-group group
))
378 (let ((buf (current-buffer))
380 (goto-char (point-min))
381 (cond ((looking-at "X-From-Line: ")
382 (replace-match "From "))
383 ((not (looking-at "From "))
384 (insert "From nobody " (current-time-string) "\n")))
386 (nnfolder-request-list)
389 (goto-char (point-min))
390 (search-forward "\n\n" nil t
)
392 (while (re-search-backward (concat "^" nnfolder-article-marker
) nil t
)
393 (delete-region (point) (progn (forward-line 1) (point))))
394 (setq result
(car (nnfolder-save-mail (and (stringp group
) group
)))))
396 (set-buffer nnfolder-current-buffer
)
397 (and last
(buffer-modified-p) (save-buffer))))
398 (nnmail-save-active nnfolder-group-alist nnfolder-active-file
)
401 (defun nnfolder-request-replace-article (article group buffer
)
402 (nnfolder-possibly-change-group group
)
404 (set-buffer nnfolder-current-buffer
)
405 (goto-char (point-min))
406 (if (not (search-forward (nnfolder-article-string article
) nil t
))
408 (nnfolder-delete-mail t t
)
409 (insert-buffer-substring buffer
)
410 (and (buffer-modified-p) (save-buffer))
414 ;;; Internal functions.
416 (defun nnfolder-delete-mail (&optional force leave-delim
)
417 ;; Beginning of the article.
422 (re-search-backward (concat "^" rmail-unix-mail-delimiter
) nil t
)
423 (if leave-delim
(progn (forward-line 1) (point))
424 (match-beginning 0)))
427 (or (and (re-search-forward (concat "^" rmail-unix-mail-delimiter
)
429 (if (and (not (bobp)) leave-delim
)
430 (progn (forward-line -
2) (point))
431 (match-beginning 0)))
433 (delete-region (point-min) (point-max)))))
435 (defun nnfolder-possibly-change-group (group)
436 (or (file-exists-p nnfolder-directory
)
437 (make-directory (directory-file-name nnfolder-directory
)))
438 (nnfolder-possibly-activate-groups nil
)
439 (or (assoc group nnfolder-group-alist
)
440 (not (file-exists-p (concat (file-name-as-directory nnfolder-directory
)
443 (setq nnfolder-group-alist
444 (cons (list group
(cons 1 0)) nnfolder-group-alist
))
445 (nnmail-save-active nnfolder-group-alist nnfolder-active-file
)))
447 (if (and (equal group nnfolder-current-group
)
448 nnfolder-current-buffer
449 (buffer-name nnfolder-current-buffer
))
451 (setq nnfolder-current-group group
)
453 ;; If we have to change groups, see if we don't already have the mbox
454 ;; in memory. If we do, verify the modtime and destroy the mbox if
455 ;; needed so we can rescan it.
456 (if (setq inf
(assoc group nnfolder-buffer-alist
))
457 (setq nnfolder-current-buffer
(nth 1 inf
)))
459 ;; If the buffer is not live, make sure it isn't in the alist. If it
460 ;; is live, verify that nobody else has touched the file since last
462 (if (or (not (and nnfolder-current-buffer
463 (buffer-name nnfolder-current-buffer
)))
464 (not (and (bufferp nnfolder-current-buffer
)
465 (verify-visited-file-modtime
466 nnfolder-current-buffer
))))
468 (if (and nnfolder-current-buffer
469 (buffer-name nnfolder-current-buffer
)
470 (bufferp nnfolder-current-buffer
))
471 (kill-buffer nnfolder-current-buffer
))
472 (setq nnfolder-buffer-alist
(delq inf nnfolder-buffer-alist
))
478 (setq file
(concat (file-name-as-directory nnfolder-directory
)
480 (if (file-directory-p (file-truename file
))
482 (if (not (file-exists-p file
))
483 (write-region 1 1 file t
'nomesg
))
484 (setq nnfolder-current-buffer
485 (set-buffer (nnfolder-read-folder file
)))
486 (setq nnfolder-buffer-alist
(cons (list group
(current-buffer))
487 nnfolder-buffer-alist
)))))))
488 (setq nnfolder-current-group group
))
490 (defun nnfolder-save-mail (&optional group
)
491 "Called narrowed to an article."
492 (let* ((nnmail-split-methods
493 (if group
(list (list group
"")) nnmail-split-methods
))
495 (nreverse (nnmail-article-group 'nnfolder-active-number
)))
497 (setq save-list group-art-list
)
498 (nnmail-insert-lines)
499 (nnmail-insert-xref group-art-list
)
500 (run-hooks 'nnfolder-prepare-save-mail-hook
)
502 ;; Insert the mail into each of the destination groups.
503 (while group-art-list
504 (setq group-art
(car group-art-list
)
505 group-art-list
(cdr group-art-list
))
507 ;; Kill the previous newsgroup markers.
508 (goto-char (point-min))
509 (search-forward "\n\n" nil t
)
511 (while (search-backward (concat "\n" nnfolder-article-marker
) nil t
)
512 (delete-region (1+ (point)) (progn (forward-line 2) (point))))
514 ;; Insert the new newsgroup marker.
515 (nnfolder-possibly-change-group (car group-art
))
516 (nnfolder-insert-newsgroup-line group-art
)
517 (let ((beg (point-min))
519 (obuf (current-buffer)))
520 (set-buffer nnfolder-current-buffer
)
521 (goto-char (point-max))
522 (insert-buffer-substring obuf beg end
)
525 ;; Did we save it anywhere?
528 (defun nnfolder-insert-newsgroup-line (group-art)
530 (goto-char (point-min))
531 (if (search-forward "\n\n" nil t
)
534 (insert (format (concat nnfolder-article-marker
"%d %s\n")
535 (cdr group-art
) (current-time-string)))))))
537 (defun nnfolder-possibly-activate-groups (&optional group
)
539 ;; If we're looking for the activation of a specific group, find out
540 ;; its real name and switch to it.
541 (if group
(nnfolder-possibly-change-group group
))
542 ;; If the group alist isn't active, activate it now.
543 (nnmail-activate 'nnfolder
)))
545 (defun nnfolder-active-number (group)
547 ;; Find the next article number in GROUP.
549 (let ((active (car (cdr (assoc group nnfolder-group-alist
)))))
551 (setcdr active
(1+ (cdr active
)))
552 ;; This group is new, so we create a new entry for it.
553 ;; This might be a bit naughty... creating groups on the drop of
554 ;; a hat, but I don't know...
555 (setq nnfolder-group-alist
556 (cons (list group
(setq active
(cons 1 1)))
557 nnfolder-group-alist
)))
559 (nnmail-save-active nnfolder-group-alist nnfolder-active-file
)
560 (nnfolder-possibly-activate-groups group
)
564 ;; This method has a problem if you've accidentally let the active list get
565 ;; out of sync with the files. This could happen, say, if you've
566 ;; accidentally gotten new mail with something other than Gnus (but why
567 ;; would _that_ ever happen? :-). In that case, we will be in the middle of
568 ;; processing the file, ready to add new X-Gnus article number markers, and
569 ;; we'll run accross a message with no ID yet - the active list _may_not_ be
572 ;; To handle this, I'm modifying this routine to maintain the maximum ID seen
573 ;; so far, and when we hit a message with no ID, we will _manually_ scan the
574 ;; rest of the message looking for any more, possibly higher IDs. We'll
575 ;; assume the maximum that we find is the highest active. Note that this
576 ;; shouldn't cost us much extra time at all, but will be a lot less
577 ;; vulnerable to glitches between the mbox and the active file.
579 (defun nnfolder-read-folder (file)
581 (nnfolder-possibly-activate-groups nil
)
582 ;; We should be paranoid here and make sure the group is in the alist,
583 ;; and add it if it isn't.
584 ;;(if (not (assoc nnfoler-current-group nnfolder-group-alist)
585 (set-buffer (setq nnfolder-current-buffer
586 (nnheader-find-file-noselect file nil
'raw
)))
587 (buffer-disable-undo (current-buffer))
588 (let ((delim (concat "^" rmail-unix-mail-delimiter
))
589 (marker (concat "\n" nnfolder-article-marker
))
591 (active (car (cdr (assoc nnfolder-current-group
592 nnfolder-group-alist
))))
593 activenumber activemin start end
)
594 (goto-char (point-min))
596 ;; Anytime the active number is 1 or 0, it is supect. In that case,
597 ;; search the file manually to find the active number. Or, of course,
598 ;; if we're being paranoid. (This would also be the place to build
599 ;; other lists from the header markers, such as expunge lists, etc., if
600 ;; we ever desired to abandon the active file entirely for mboxes.)
601 (setq activenumber
(cdr active
))
602 (if (or nnfolder-ignore-active-file
605 (setq activemin
(max (1- (lsh 1 23))
608 (while (and (search-forward marker nil t
)
609 (re-search-forward number nil t
))
610 (let ((newnum (string-to-number (buffer-substring
613 (setq activenumber
(max activenumber newnum
))
614 (setq activemin
(min activemin newnum
))))
615 (setcar active
(max 1 (min activemin activenumber
)))
616 (setcdr active
(max activenumber
(cdr active
)))
617 (goto-char (point-min))))
619 ;; Keep track of the active number on our own, and insert it back into
620 ;; the active list when we're done. Also, prime the pump to cut down on
621 ;; the number of searches we do.
622 (setq end
(point-marker))
623 (set-marker end
(or (and (re-search-forward delim nil t
)
626 (while (not (= end
(point-max)))
627 (setq start
(marker-position end
))
629 ;; There may be more than one "From " line, so we skip past
631 (while (looking-at delim
)
633 (set-marker end
(or (and (re-search-forward delim nil t
)
637 (if (not (search-forward marker end t
))
639 (narrow-to-region start end
)
640 (nnmail-insert-lines)
641 (nnfolder-insert-newsgroup-line
642 (cons nil
(nnfolder-active-number nnfolder-current-group
)))
645 ;; Make absolutely sure that the active list reflects reality!
646 (nnmail-save-active nnfolder-group-alist nnfolder-active-file
)
649 (defun nnfolder-get-new-mail (&optional group
)
650 "Read new incoming mail."
651 (let* ((spools (nnmail-get-spool-files group
))
654 (if (or (not nnfolder-get-new-mail
) (not nnmail-spool-file
))
656 ;; We first activate all the groups.
657 (nnfolder-possibly-activate-groups nil
)
658 ;; The we go through all the existing spool files and split the
662 (file-exists-p (car spools
))
663 (> (nth 7 (file-attributes (car spools
))) 0)
665 (and gnus-verbose-backends
666 (message "nnfolder: Reading incoming mail..."))
667 (if (not (setq incoming
670 (concat (file-name-as-directory nnfolder-directory
)
673 (setq incomings
(cons incoming incomings
))
674 (setq group
(nnmail-get-split-group (car spools
) group-in
))
675 (nnmail-split-incoming incoming
'nnfolder-save-mail nil group
))))
676 (setq spools
(cdr spools
)))
677 ;; If we did indeed read any incoming spools, we save all info.
680 (nnmail-save-active nnfolder-group-alist nnfolder-active-file
)
681 (run-hooks 'nnmail-read-incoming-hook
)
682 (and gnus-verbose-backends
683 (message "nnfolder: Reading incoming mail...done"))))
684 (let ((bufs nnfolder-buffer-alist
))
687 (if (not (buffer-name (nth 1 (car bufs
))))
688 (setq nnfolder-buffer-alist
689 (delq (car bufs
) nnfolder-buffer-alist
))
690 (set-buffer (nth 1 (car bufs
)))
691 (and (buffer-modified-p) (save-buffer)))
692 (setq bufs
(cdr bufs
)))))
694 (setq incoming
(car incomings
))
696 nnmail-delete-incoming
697 (file-writable-p incoming
)
698 (file-exists-p incoming
)
699 (delete-file incoming
))
700 (setq incomings
(cdr incomings
))))))
704 ;;; nnfolder.el ends here