From: keiichi Date: Mon, 8 Feb 1999 10:24:16 +0000 (+0000) Subject: New file. X-Git-Tag: nana-gnus-6_12_2~5 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=5b755f690f5ca512fb15c20cd13602cafc7d1289;p=elisp%2Fgnus.git- New file. --- diff --git a/lisp/mess-bbdb.el b/lisp/mess-bbdb.el new file mode 100644 index 0000000..6bd1802 --- /dev/null +++ b/lisp/mess-bbdb.el @@ -0,0 +1,39 @@ +;; mess-bbdb.el --- Interface to message (For after Nana-gnus 6.12.1). + +;; Copyright (C) 1998 Keiichi Suzuki + +;; Author: Keiichi Suzuki +;; Keywords: BBDB, mail, news + +;; This file is part of Nana-gnus. + +;; This program is free software; you can redistribute it and/or +;; modify it under the terms of the GNU General Public License as +;; published by the Free Software Foundation; either version 2, or (at +;; your option) any later version. + +;; This program is distributed in the hope that it will be useful, but +;; WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with GNU Emacs; see the file COPYING. If not, write to the +;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, +;; Boston, MA 02111-1307, USA. + +;;; Code: + +(require 'bbdb) + +(defvar message-bbdb/mailing-list-field 'ml-name) + +(defun message-bbdb/mailing-list-p (address) + (let ((record (bbdb-search-simple nil address))) + (and record + (bbdb-record-getprop record message-bbdb/mailing-list-field) + ))) + +(provide 'mess-bbdb) + +;; mess-bbdb.el ends here.