Update.
[elisp/gnus.git-] / README-gnus-bbdb.ja
1 -*- mode: text; fill-column: 70; -*-
2
3   ** \e$BNkLZ7=0l$5$s$N$48|0U$K$h$j\e(B keiichi branch \e$B$+$i\e(B copy \e$B$7$^$7$?!#\e(B**
4
5 ---
6 BBDB \e$B$r;HMQ$5$l$F$$$kJ}$O!"\e(B bbdb-gnus.elc \e$B$r\e(B Semi-gnus 6.8.X \e$B0JA0$N$b\e(B
7 \e$B$N$H6&M-$9$k$3$H$O$G$-$^$;$s!#I,$:!"\e(B byte-compile \e$B$7D>$7$F$/$@$5$$!#\e(B
8
9 ;; gnus \e$B$r5/F0$7$?$"$H$G!"\e(B bbdb-gnus.el \e$B$N$_$r\e(B byte-compile \e$B$9$k$H$$$&\e(B
10 ;; \e$B$N$,$*<j7Z$G$9!#\e(B :-)
11
12 ---
13 gnus-bbdb.el
14
15 Chao-gnus 6.9 \e$B$r<h$j9~$s$@\e(B Semi-gnus \e$B$KFC2=$7$?\e(B BBDB API \e$B%b%8%e!<%k$G\e(B
16 \e$B$9!#\e(B 
17 \e$B$3$N%b%8%e!<%k$r;HMQ$9$k$3$H$K$h$C$F!"\e(B Semi-gnus \e$B$G;HMQ$9$k>l9g$K$O\e(B
18 mime-bbdb \e$B$,ITMW$K$J$j$^$9!#\e(B
19
20 1.11.3 \e$B0J9_$N\e(B FLIM \e$B$,I,MW$G$9!#\e(B
21
22 bbdb-auto-notes-hook \e$B$r;HMQ$7$F$$$J$$J}$K$OITMW$G$9$,!";HMQ$7$F$$$kJ}\e(B
23 \e$B$O\e(B bbdb.el / bbdb-hooks.el \e$B$K$3$N%U%!%$%k$N:G8e$K$"$k\e(B patch \e$B$r$"$F$kI,\e(B
24 \e$BMW$,$"$j$^$9!#\e(B
25
26 \e$B@_DjNc\e(B:
27
28 ;; mime-bbdb \e$B$K4X$9$k@_Dj$OITMW$G$9!#\e(B
29 ;(setq mime-bbdb/use-mail-extr nil)
30 ;(eval-after-load "mail-extr" '(require 'mime-bbdb))
31
32 (require 'bbdb)
33 (require 'gnus-bbdb)
34 (bbdb-initialize 'sc)  ;; 'gnus / 'Gnus \e$B$O$O$:$7$F$/$@$5$$!#\e(B
35 (add-hook 'gnus-startup-hook 'gnus-bbdb-insinuate)
36
37 ---
38 \e$B0J2<$O\e(B bbdb.el / bbdb-hooks.el \e$B$K$"$F$k\e(B patch \e$B$G$9!#\e(B
39
40 ------ cut here ------ cut here ------ cut here ------ cut here ------
41 --- bbdb-hooks.el~      Tue Oct 13 03:13:50 1998
42 +++ bbdb-hooks.el       Fri Oct 30 17:05:53 1998
43 @@ -352,12 +352,22 @@
44         (marker (bbdb-header-start))
45         field pairs fieldval  ; do all bindings here for speed
46         regexp string notes-field-name notes
47 -        replace-p replace-or-add-msg)
48 +       replace-p replace-or-add-msg
49 +       extract-field-value-funtion)
50      (set-buffer (marker-buffer marker))
51      (save-restriction
52 -      (widen)
53 -      (goto-char marker)
54 -      (if (and (setq fieldval (bbdb-extract-field-value "From"))
55 +      (let ((function-list bbdb-extract-field-value-function-list)
56 +           function)
57 +       (or (progn
58 +             (while (and (not extract-field-value-funtion)
59 +                         (setq function (pop function-list)))
60 +               (setq extract-field-value-funtion (funcall function)))
61 +             extract-field-value-funtion)
62 +           (progn
63 +             (widen)
64 +             (goto-char marker)
65 +             (setq extract-field-value-funtion 'bbdb-extract-field-value))))
66 +      (if (and (setq fieldval (funcall extract-field-value-funtion "From"))
67                (string-match (bbdb-user-mail-names) fieldval))
68           ;; Don't do anything if this message is from us.  Note that we have
69           ;; to look at the message instead of the record, because the record
70 @@ -368,7 +378,7 @@
71           (goto-char marker)
72           (setq field (car (car ignore-all))
73                 regexp (cdr (car ignore-all))
74 -               fieldval (bbdb-extract-field-value field))
75 +               fieldval (funcall extract-field-value-funtion field))
76           (if (and fieldval
77                    (string-match regexp fieldval))
78               (setq ignore t)
79 @@ -382,7 +392,7 @@
80                 pairs (cdr (car rest))  ; (REGEXP . STRING) or
81                                         ; (REGEXP FIELD-NAME STRING) or
82                                         ; (REGEXP FIELD-NAME STRING REPLACE-P)
83 -               fieldval (bbdb-extract-field-value field)) ; e.g., Subject line
84 +               fieldval (funcall extract-field-value-funtion field)) ; e.g., Subject line
85           (if fieldval
86               (while pairs
87                 (setq regexp (car (car pairs))
88 --- bbdb.el~    Tue Oct 13 03:14:55 1998
89 +++ bbdb.el     Fri Oct 30 17:05:53 1998
90 @@ -620,6 +620,7 @@
91  (defvar bbdb-showing-changed-ones nil)
92  (defvar bbdb-modified-p nil)
93  (defvar bbdb-elided-display nil)
94 +(defvar bbdb-extract-field-value-function-list nil)
95  
96  (defvar bbdb-debug t)
97  (defmacro bbdb-debug (&rest body)
98 ------ cut here ------ cut here ------ cut here ------ cut here ------
99
100 ---