aea62c1d5793683f20e60bd37443c8f5b141b792
[gnus] / lisp / nnbabyl.el
1 ;;; nnbabyl.el --- rmail mbox access for Gnus
2 ;; Copyright (C) 1995,96 Free Software Foundation, Inc.
3
4 ;; Author: Lars Magne Ingebrigtsen <larsi@ifi.uio.no>
5 ;;      Masanobu UMEDA <umerin@flab.flab.fujitsu.junet>
6 ;; Keywords: news, mail
7
8 ;; This file is part of GNU Emacs.
9
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
11 ;; it under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 2, or (at your option)
13 ;; any later version.
14
15 ;; GNU Emacs is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 ;; GNU General Public License for more details.
19
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs; see the file COPYING.  If not, write to the
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 ;; Boston, MA 02111-1307, USA.
24
25 ;;; Commentary:
26
27 ;; For an overview of what the interface functions do, please see the
28 ;; Gnus sources.  
29
30 ;;; Code:
31
32 (require 'nnheader)
33 (require 'rmail)
34 (require 'nnmail)
35
36 (defvar nnbabyl-mbox-file (expand-file-name "~/RMAIL")
37   "The name of the rmail box file in the users home directory.")
38
39 (defvar nnbabyl-active-file (expand-file-name "~/.rmail-active")
40   "The name of the active file for the rmail box.")
41
42 (defvar nnbabyl-get-new-mail t
43   "If non-nil, nnbabyl will check the incoming mail file and split the mail.")
44
45 (defvar nnbabyl-prepare-save-mail-hook nil
46   "Hook run narrowed to an article before saving.")
47
48 \f
49
50 (defvar nnbabyl-mail-delimiter "\^_")
51
52 (defconst nnbabyl-version "nnbabyl 1.0"
53   "nnbabyl version.")
54
55 (defvar nnbabyl-mbox-buffer nil)
56 (defvar nnbabyl-current-group nil)
57 (defvar nnbabyl-status-string "")
58 (defvar nnbabyl-group-alist nil)
59 (defvar nnbabyl-active-timestamp nil)
60
61 (defvar nnbabyl-previous-buffer-mode nil)
62
63 \f
64
65 (defvar nnbabyl-current-server nil)
66 (defvar nnbabyl-server-alist nil)
67 (defvar nnbabyl-server-variables 
68   (list
69    (list 'nnbabyl-mbox-file nnbabyl-mbox-file)
70    (list 'nnbabyl-active-file nnbabyl-active-file)
71    (list 'nnbabyl-get-new-mail nnbabyl-get-new-mail)
72    '(nnbabyl-current-group nil)
73    '(nnbabyl-status-string "")
74    '(nnbabyl-previous-buffer-mode nil)
75    '(nnbabyl-group-alist nil)))
76
77 \f
78
79 ;;; Interface functions
80
81 (defun nnbabyl-retrieve-headers (sequence &optional newsgroup server fetch-old)
82   (save-excursion
83     (set-buffer nntp-server-buffer)
84     (erase-buffer)
85     (let ((number (length sequence))
86           (count 0)
87           article art-string start stop)
88       (nnbabyl-possibly-change-newsgroup newsgroup)
89       (while sequence
90         (setq article (car sequence))
91         (setq art-string (nnbabyl-article-string article))
92         (set-buffer nnbabyl-mbox-buffer)
93         (if (or (search-forward art-string nil t)
94                 (search-backward art-string nil t))
95             (progn
96               (re-search-backward (concat "^" nnbabyl-mail-delimiter) nil t)
97               (while (and (not (looking-at ".+:"))
98                           (zerop (forward-line 1))))
99               (setq start (point))
100               (search-forward "\n\n" nil t)
101               (setq stop (1- (point)))
102               (set-buffer nntp-server-buffer)
103               (insert "221 " (int-to-string article) " Article retrieved.\n")
104               (insert-buffer-substring nnbabyl-mbox-buffer start stop)
105               (goto-char (point-max))
106               (insert ".\n")))
107         (setq sequence (cdr sequence))
108         (setq count (1+ count))
109         (and (numberp nnmail-large-newsgroup)
110              (> number nnmail-large-newsgroup)
111              (zerop (% count 20))
112              (nnheader-message 5 "nnbabyl: Receiving headers... %d%%"
113                                (/ (* count 100) number))))
114
115       (and (numberp nnmail-large-newsgroup)
116            (> number nnmail-large-newsgroup)
117            (nnheader-message 5 "nnbabyl: Receiving headers...done"))
118
119       (set-buffer nntp-server-buffer)
120       (nnheader-fold-continuation-lines)
121       'headers)))
122
123 (defun nnbabyl-open-server (server &optional defs)
124   (nnheader-init-server-buffer)
125   (if (equal server nnbabyl-current-server)
126       t
127     (if nnbabyl-current-server
128         (setq nnbabyl-server-alist 
129               (cons (list nnbabyl-current-server
130                           (nnheader-save-variables nnbabyl-server-variables))
131                     nnbabyl-server-alist)))
132     (let ((state (assoc server nnbabyl-server-alist)))
133       (if state 
134           (progn
135             (nnheader-restore-variables (nth 1 state))
136             (setq nnbabyl-server-alist (delq state nnbabyl-server-alist)))
137         (nnheader-set-init-variables nnbabyl-server-variables defs)))
138     (setq nnbabyl-current-server server)))
139
140 (defun nnbabyl-close-server (&optional server)
141   ;; Restore buffer mode.
142   (when (and (nnbabyl-server-opened)
143              nnbabyl-previous-buffer-mode)
144     (save-excursion
145       (set-buffer nnbabyl-mbox-buffer)
146       (narrow-to-region
147        (car (car nnbabyl-previous-buffer-mode))
148        (cdr (car nnbabyl-previous-buffer-mode)))
149       (funcall (cdr nnbabyl-previous-buffer-mode))))
150   (setq nnbabyl-current-server nil
151         nnbabyl-mbox-buffer nil)
152   t)
153
154 (defun nnbabyl-server-opened (&optional server)
155   (and (equal server nnbabyl-current-server)
156        nnbabyl-mbox-buffer
157        (buffer-name nnbabyl-mbox-buffer)
158        nntp-server-buffer
159        (buffer-name nntp-server-buffer)))
160
161 (defun nnbabyl-status-message (&optional server)
162   nnbabyl-status-string)
163
164 (defun nnbabyl-request-article (article &optional newsgroup server buffer)
165   (nnbabyl-possibly-change-newsgroup newsgroup)
166   (save-excursion
167     (set-buffer nnbabyl-mbox-buffer)
168     (goto-char (point-min))
169     (if (search-forward (nnbabyl-article-string article) nil t)
170         (let (start stop summary-line)
171           (re-search-backward (concat "^" nnbabyl-mail-delimiter) nil t)
172           (while (and (not (looking-at ".+:"))
173                       (zerop (forward-line 1))))
174           (setq start (point))
175           (or (and (re-search-forward 
176                     (concat "^" nnbabyl-mail-delimiter) nil t)
177                    (forward-line -1))
178               (goto-char (point-max)))
179           (setq stop (point))
180           (let ((nntp-server-buffer (or buffer nntp-server-buffer)))
181             (set-buffer nntp-server-buffer)
182             (erase-buffer)
183             (insert-buffer-substring nnbabyl-mbox-buffer start stop)
184             (goto-char (point-min))
185             ;; If there is an EOOH header, then we have to remove some
186             ;; duplicated headers. 
187             (setq summary-line (looking-at "Summary-line:"))
188             (when (search-forward "\n*** EOOH ***" nil t)
189               (if summary-line
190                   ;; The headers to be deleted are located before the
191                   ;; EOOH line...
192                   (delete-region (point-min) (progn (forward-line 1)
193                   (point)))
194                 ;; ...or after.
195                 (delete-region (progn (beginning-of-line) (point))
196                                (or (search-forward "\n\n" nil t)
197                                    (point)))))
198             (if (numberp article) 
199                 (cons nnbabyl-current-group article)
200               (nnbabyl-article-group-number)))))))
201
202 (defun nnbabyl-request-group (group &optional server dont-check)
203   (let ((active (cadr (assoc group nnbabyl-group-alist))))
204     (save-excursion
205       (cond 
206        ((null (nnbabyl-possibly-change-newsgroup group))
207         (nnheader-report 'nnbabyl "No such group: %s" group))
208        (dont-check
209         (nnheader-report 'nnbabyl "Selected group %s" group)
210         t)
211        ((> (car active) (cdr active))
212         (nnheader-report 'nnbabyl "Empty group %s" group))
213        (t
214         (nnheader-report 'nnbabyl "Selected group %s" group)
215         (save-excursion
216           (set-buffer nntp-server-buffer)
217           (erase-buffer)
218           (insert (format "211 %d %d %d %s\n" 
219                           (1+ (- (cdr (car (cdr active)))
220                                  (car (car (cdr active)))))
221                           (car (car (cdr active)))
222                           (cdr (car (cdr active)))
223                           (car active))))
224         t)))))
225
226 (defun nnbabyl-request-scan (&optional group server)
227   (nnbabyl-read-mbox)
228   (nnmail-get-new-mail 
229    'nnbabyl 
230    (lambda ()
231      (save-excursion
232        (set-buffer nnbabyl-mbox-buffer)
233        (save-buffer)))
234    nnbabyl-mbox-file group
235    (lambda ()
236      (save-excursion
237        (let ((in-buf (current-buffer)))
238          (goto-char (point-min))
239          (while (search-forward "\n\^_\n" nil t)
240            (delete-char -1))
241          (set-buffer nnbabyl-mbox-buffer)
242          (goto-char (point-max))
243          (search-backward "\n\^_" nil t)
244          (goto-char (match-end 0))
245          (insert-buffer-substring in-buf))))))
246
247 (defun nnbabyl-close-group (group &optional server)
248   t)
249
250 (defun nnbabyl-request-create-group (group &optional server) 
251   (nnmail-activate 'nnbabyl)
252   (or (assoc group nnbabyl-group-alist)
253       (let (active)
254         (setq nnbabyl-group-alist (cons (list group (setq active (cons 1 0)))
255                                         nnbabyl-group-alist))
256         (nnmail-save-active nnbabyl-group-alist nnbabyl-active-file)))
257   t)
258
259 (defun nnbabyl-request-list (&optional server)
260   (save-excursion
261     (or (nnmail-find-file nnbabyl-active-file)
262         (progn
263           (setq nnbabyl-group-alist (nnmail-get-active))
264           (nnmail-save-active nnbabyl-group-alist nnbabyl-active-file)
265           (nnmail-find-file nnbabyl-active-file)))))
266
267 (defun nnbabyl-request-newgroups (date &optional server)
268   (nnbabyl-request-list server))
269
270 (defun nnbabyl-request-list-newsgroups (&optional server)
271   (setq nnbabyl-status-string "nnbabyl: LIST NEWSGROUPS is not implemented.")
272   nil)
273
274 (defun nnbabyl-request-post (&optional server)
275   (mail-send-and-exit nil))
276
277 (defun nnbabyl-request-expire-articles
278   (articles newsgroup &optional server force)
279   (nnbabyl-possibly-change-newsgroup newsgroup)
280   (let* ((is-old t)
281          rest)
282     (nnmail-activate 'nnbabyl)
283
284     (save-excursion 
285       (set-buffer nnbabyl-mbox-buffer)
286       (set-text-properties (point-min) (point-max) nil)
287       (while (and articles is-old)
288         (goto-char (point-min))
289         (if (search-forward (nnbabyl-article-string (car articles)) nil t)
290             (if (setq is-old
291                       (nnmail-expired-article-p
292                        newsgroup
293                        (buffer-substring 
294                         (point) (progn (end-of-line) (point))) force))
295                 (progn
296                   (nnheader-message 5 "Deleting article %d in %s..." 
297                                     (car articles) newsgroup)
298                   (nnbabyl-delete-mail))
299               (setq rest (cons (car articles) rest))))
300         (setq articles (cdr articles)))
301       (save-buffer)
302       ;; Find the lowest active article in this group.
303       (let ((active (nth 1 (assoc newsgroup nnbabyl-group-alist))))
304         (goto-char (point-min))
305         (while (and (not (search-forward
306                           (nnbabyl-article-string (car active)) nil t))
307                     (<= (car active) (cdr active)))
308           (setcar active (1+ (car active)))
309           (goto-char (point-min))))
310       (nnmail-save-active nnbabyl-group-alist nnbabyl-active-file)
311       (nconc rest articles))))
312
313 (defun nnbabyl-request-move-article 
314   (article group server accept-form &optional last)
315   (nnbabyl-possibly-change-newsgroup group)
316   (let ((buf (get-buffer-create " *nnbabyl move*"))
317         result)
318     (and 
319      (nnbabyl-request-article article group server)
320      (save-excursion
321        (set-buffer buf)
322        (insert-buffer-substring nntp-server-buffer)
323        (goto-char (point-min))
324        (if (re-search-forward 
325             "^X-Gnus-Newsgroup:" 
326             (save-excursion (search-forward "\n\n" nil t) (point)) t)
327            (delete-region (progn (beginning-of-line) (point))
328                           (progn (forward-line 1) (point))))
329        (setq result (eval accept-form))
330        (kill-buffer (current-buffer))
331        result)
332      (save-excursion
333        (set-buffer nnbabyl-mbox-buffer)
334        (goto-char (point-min))
335        (if (search-forward (nnbabyl-article-string article) nil t)
336            (nnbabyl-delete-mail))
337        (and last (save-buffer))))
338     result))
339
340 (defun nnbabyl-request-accept-article (group &optional last)
341   (let ((buf (current-buffer))
342         result beg)
343     (and 
344      (nnmail-activate 'nnbabyl)
345      (save-excursion
346        (goto-char (point-min))
347        (search-forward "\n\n" nil t)
348        (forward-line -1)
349        (save-excursion
350          (while (re-search-backward "^X-Gnus-Newsgroup: " beg t)
351            (delete-region (point) (progn (forward-line 1) (point)))))
352        (let ((nnmail-split-methods
353               (if (stringp group) (list (list group "")) 
354                 nnmail-split-methods)))
355          (setq result (car (nnbabyl-save-mail))))
356        (set-buffer nnbabyl-mbox-buffer)
357        (goto-char (point-max))
358        (search-backward "\n\^_")
359        (goto-char (match-end 0))
360        (insert-buffer-substring buf)
361        (and last (progn 
362                    (save-buffer)
363                    (nnmail-save-active
364                     nnbabyl-group-alist nnbabyl-active-file)))
365        result))))
366
367 (defun nnbabyl-request-replace-article (article group buffer)
368   (nnbabyl-possibly-change-newsgroup group)
369   (save-excursion
370     (set-buffer nnbabyl-mbox-buffer)
371     (goto-char (point-min))
372     (if (not (search-forward (nnbabyl-article-string article) nil t))
373         nil
374       (nnbabyl-delete-mail t t)
375       (insert-buffer-substring buffer)
376       (save-buffer)
377       t)))
378
379 (defun nnbabyl-request-delete-group (group &optional force server)
380   (nnbabyl-possibly-change-newsgroup group)
381   ;; Delete all articles in GROUP.
382   (if (not force)
383       ()                                ; Don't delete the articles.
384     (save-excursion
385       (set-buffer nnbabyl-mbox-buffer)
386       (goto-char (point-min))
387       ;; Delete all articles in this group.
388       (let ((ident (concat "\nX-Gnus-Newsgroup: " nnbabyl-current-group ":"))
389             found)
390         (while (search-forward ident nil t)
391           (setq found t)
392           (nnbabyl-delete-mail))
393         (and found (save-buffer)))))
394   ;; Remove the group from all structures.
395   (setq nnbabyl-group-alist 
396         (delq (assoc group nnbabyl-group-alist) nnbabyl-group-alist)
397         nnbabyl-current-group nil)
398   ;; Save the active file.
399   (nnmail-save-active nnbabyl-group-alist nnbabyl-active-file)
400   t)
401
402 (defun nnbabyl-request-rename-group (group new-name &optional server)
403   (nnbabyl-possibly-change-newsgroup group)
404   (save-excursion
405     (set-buffer nnbabyl-mbox-buffer)
406     (goto-char (point-min))
407     (let ((ident (concat "\nX-Gnus-Newsgroup: " nnbabyl-current-group ":"))
408           (new-ident (concat "\nX-Gnus-Newsgroup: " new-name ":"))
409           found)
410       (while (search-forward ident nil t)
411         (replace-match new-ident t t)
412         (setq found t))
413       (and found (save-buffer))))
414   (let ((entry (assoc group nnbabyl-group-alist)))
415     (and entry (setcar entry new-name))
416     (setq nnbabyl-current-group nil)
417     ;; Save the new group alist.
418     (nnmail-save-active nnbabyl-group-alist nnbabyl-active-file)
419     t))
420
421 \f
422 ;;; Internal functions.
423
424 ;; If FORCE, delete article no matter how many X-Gnus-Newsgroup
425 ;; headers there are. If LEAVE-DELIM, don't delete the Unix mbox
426 ;; delimiter line.
427 (defun nnbabyl-delete-mail (&optional force leave-delim)
428   ;; Delete the current X-Gnus-Newsgroup line.
429   (or force
430       (delete-region
431        (progn (beginning-of-line) (point))
432        (progn (forward-line 1) (point))))
433   ;; Beginning of the article.
434   (save-excursion
435     (save-restriction
436       (widen)
437       (narrow-to-region
438        (save-excursion
439          (re-search-backward (concat "^" nnbabyl-mail-delimiter) nil t)
440          (if leave-delim (progn (forward-line 1) (point))
441            (match-beginning 0)))
442        (progn
443          (forward-line 1)
444          (or (and (re-search-forward (concat "^" nnbabyl-mail-delimiter) 
445                                      nil t)
446                   (if (and (not (bobp)) leave-delim)
447                       (progn (forward-line -2) (point))
448                     (match-beginning 0)))
449              (point-max))))
450       (goto-char (point-min))
451       ;; Only delete the article if no other groups owns it as well.
452       (if (or force (not (re-search-forward "^X-Gnus-Newsgroup: " nil t)))
453           (delete-region (point-min) (point-max))))))
454
455 (defun nnbabyl-possibly-change-newsgroup (newsgroup)
456   (if (or (not nnbabyl-mbox-buffer)
457           (not (buffer-name nnbabyl-mbox-buffer)))
458       (save-excursion (nnbabyl-read-mbox)))
459   (or nnbabyl-group-alist
460       (nnmail-activate 'nnbabyl))
461   (if newsgroup
462       (if (assoc newsgroup nnbabyl-group-alist)
463           (setq nnbabyl-current-group newsgroup)
464         (setq nnbabyl-status-string "No such group in file")
465         nil)))
466
467 (defun nnbabyl-article-string (article)
468   (if (numberp article)
469       (concat "\nX-Gnus-Newsgroup: " nnbabyl-current-group ":" 
470               (int-to-string article) " ")
471     (concat "\nMessage-ID: " article)))
472
473 (defun nnbabyl-article-group-number ()
474   (save-excursion
475     (goto-char (point-min))
476     (and (re-search-forward "^X-Gnus-Newsgroup: +\\([^:]+\\):\\([0-9]+\\) "
477                             nil t)
478          (cons (buffer-substring (match-beginning 1) (match-end 1))
479                (string-to-int
480                 (buffer-substring (match-beginning 2) (match-end 2)))))))
481
482 (defun nnbabyl-insert-lines ()
483   "Insert how many lines and chars there are in the body of the mail."
484   (let (lines chars)
485     (save-excursion
486       (goto-char (point-min))
487       (if (search-forward "\n\n" nil t) 
488           (progn
489             ;; There may be an EOOH line here...
490             (if (looking-at "\\*\\*\\* EOOH \\*\\*\\*")
491                 (search-forward "\n\n" nil t))
492             (setq chars (- (point-max) (point)))
493             (setq lines (- (count-lines (point) (point-max)) 1))
494             ;; Move back to the end of the headers. 
495             (goto-char (point-min))
496             (search-forward "\n\n" nil t)
497             (forward-char -1)
498             (save-excursion
499               (if (re-search-backward "^Lines: " nil t)
500                   (delete-region (point) (progn (forward-line 1) (point)))))
501             (insert (format "Lines: %d\n" lines))
502             chars)))))
503
504 (defun nnbabyl-save-mail ()
505   ;; Called narrowed to an article.
506   (let ((group-art (nreverse (nnmail-article-group 'nnbabyl-active-number))))
507     (nnbabyl-insert-lines)
508     (nnmail-insert-xref group-art)
509     (nnbabyl-insert-newsgroup-line group-art)
510     (run-hooks 'nnbabyl-prepare-save-mail-hook)
511     group-art))
512
513 (defun nnbabyl-insert-newsgroup-line (group-art)
514   (save-excursion
515     (goto-char (point-min))
516     (while (looking-at "From ")
517       (replace-match "Mail-from: From " t t)
518       (forward-line 1))
519     ;; If there is a C-l at the beginning of the narrowed region, this
520     ;; isn't really a "save", but rather a "scan".
521     (goto-char (point-min))
522     (or (looking-at "\^L")
523         (save-excursion
524           (insert "\^L\n0, unseen,,\n*** EOOH ***\n")
525           (goto-char (point-max))
526           (insert "\^_\n")))
527     (if (search-forward "\n\n" nil t)
528         (progn
529           (forward-char -1)
530           (while group-art
531             (insert (format "X-Gnus-Newsgroup: %s:%d   %s\n" 
532                             (car (car group-art)) (cdr (car group-art))
533                             (current-time-string)))
534             (setq group-art (cdr group-art)))))
535     t))
536
537 (defun nnbabyl-active-number (group)
538   ;; Find the next article number in GROUP.
539   (let ((active (car (cdr (assoc group nnbabyl-group-alist)))))
540     (if active
541         (setcdr active (1+ (cdr active)))
542       ;; This group is new, so we create a new entry for it.
543       ;; This might be a bit naughty... creating groups on the drop of
544       ;; a hat, but I don't know...
545       (setq nnbabyl-group-alist (cons (list group (setq active (cons 1 1)))
546                                       nnbabyl-group-alist)))
547     (cdr active)))
548
549 (defun nnbabyl-read-mbox ()
550   (nnmail-activate 'nnbabyl)
551   (or (file-exists-p nnbabyl-mbox-file)
552       (save-excursion
553         (set-buffer (setq nnbabyl-mbox-buffer
554                           (create-file-buffer nnbabyl-mbox-file)))
555         (setq buffer-file-name nnbabyl-mbox-file)
556         (insert "BABYL OPTIONS:\n\n\^_")
557         (write-region (point-min) (point-max) nnbabyl-mbox-file t 'nomesg)))
558
559   (if (and nnbabyl-mbox-buffer
560            (buffer-name nnbabyl-mbox-buffer)
561            (save-excursion
562              (set-buffer nnbabyl-mbox-buffer)
563              (= (buffer-size) (nth 7 (file-attributes nnbabyl-mbox-file)))))
564       ()
565     (save-excursion
566       (let ((delim (concat "^" nnbabyl-mail-delimiter))
567             start end)
568         (set-buffer (setq nnbabyl-mbox-buffer 
569                           (nnheader-find-file-noselect 
570                            nnbabyl-mbox-file nil 'raw)))
571         ;; Save buffer mode.
572         (setq nnbabyl-previous-buffer-mode 
573               (cons (cons (point-min) (point-max))
574                     major-mode))
575
576         (buffer-disable-undo (current-buffer))
577         (widen)
578         (setq buffer-read-only nil)
579         (fundamental-mode)
580         
581         (goto-char (point-min))
582         (re-search-forward delim nil t)
583         (setq start (match-end 0))
584         (while (re-search-forward delim nil t)
585           (setq end (match-end 0))
586           (or (search-backward "\nX-Gnus-Newsgroup: " start t)
587               (progn
588                 (goto-char end)
589                 (save-excursion
590                   (save-restriction
591                     (goto-char start)
592                     (narrow-to-region start end)
593                     (nnbabyl-save-mail)
594                     (setq end (point-max))))))
595           (goto-char (setq start end)))
596         (and (buffer-modified-p (current-buffer)) (save-buffer))
597         (nnmail-save-active nnbabyl-group-alist nnbabyl-active-file)))))
598
599 (defun nnbabyl-remove-incoming-delims ()
600   (goto-char (point-min))
601   (while (search-forward "\^_" nil t)
602     (replace-match "?" t t)))
603
604 (provide 'nnbabyl)
605
606 ;;; nnbabyl.el ends here