(gnus-vers): Update to 7.1.0.31.
[elisp/gnus.git-] / lisp / mess-bbdb.el
1 ;; mess-bbdb.el --- Interface to message (For after Nana-gnus 6.12.1).
2
3 ;; Copyright (C) 1998 Keiichi Suzuki <keiichi@nanap.org>
4
5 ;; Author: Keiichi Suzuki <keiichi@nanap.org>
6 ;; Keywords: BBDB, mail, news
7
8 ;; This file is part of Nana-gnus.
9
10 ;; This program is free software; you can redistribute it and/or
11 ;; modify it under the terms of the GNU General Public License as
12 ;; published by the Free Software Foundation; either version 2, or (at
13 ;; your option) any later version.
14
15 ;; This program is distributed in the hope that it will be useful, but
16 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 ;; 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 ;;; Code:
26
27 (require 'bbdb)
28
29 (defvar message-bbdb/mailing-list-field 'ml-name)
30
31 (defun message-bbdb/mailing-list-p (address)
32   (let ((record (bbdb-search-simple nil address)))
33     (and record
34          (bbdb-record-getprop record message-bbdb/mailing-list-field)
35          )))
36
37 (provide 'mess-bbdb)
38                           
39 ;; mess-bbdb.el ends here.