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