summaryrefslogtreecommitdiff
path: root/lisp/bbdb-gnus.el
diff options
context:
space:
mode:
authorRobert Fenk <fenk@users.sourceforge.net>2001-03-25 20:45:03 +0000
committerRobert Fenk <fenk@users.sourceforge.net>2001-03-25 20:45:03 +0000
commitc13d1526147c5f2303f1c49b38fffab77dd1f5dd (patch)
tree82714034cde34ce054d727908a74380dc0b1d3f8 /lisp/bbdb-gnus.el
parent3457ba834ea728a9a3cdee3b2cd1c5340628a52c (diff)
* lisp/bbdb-gnus.el (bbdb/gnus-show-sender):
* lisp/bbdb-vm.el (bbdb/vm-show-sender): Show recipients if we find no senders * lisp/bbdb-vm.el (bbdb/gnus-show-records): * lisp/bbdb-vm.el (bbdb/vm-show-records): Also show the records of uninteresting senders
Diffstat (limited to 'lisp/bbdb-gnus.el')
-rw-r--r--lisp/bbdb-gnus.el30
1 files changed, 19 insertions, 11 deletions
diff --git a/lisp/bbdb-gnus.el b/lisp/bbdb-gnus.el
index b038fd1..3592a34 100644
--- a/lisp/bbdb-gnus.el
+++ b/lisp/bbdb-gnus.el
@@ -189,25 +189,19 @@ of the BBDB record corresponding to the sender of this message."
(defun bbdb/gnus-show-records (&optional headers)
"Display the contents of the BBDB for all addresses of this message.
This buffer will be in `bbdb-mode', with associated keybindings."
- (interactive "P")
+ (interactive)
(gnus-summary-select-article)
(let ((bbdb-get-addresses-headers (or headers bbdb-get-addresses-headers))
(bbdb/gnus-update-records-mode 'annotating)
(bbdb-message-cache nil)
+ (bbdb-user-mail-names nil)
+ (gnus-ignored-from-addresses nil)
records)
(setq records (bbdb/gnus-update-records t))
(if records
(bbdb-display-records records)
- (bbdb-undisplay-records))))
-
-(defun bbdb/gnus-show-sender (&optional show-recipients)
- "Display the contents of the BBDB for the senders of this message.
-With a prefix argument show the recipients instead.
-This buffer will be in `bbdb-mode', with associated keybindings."
- (interactive "P")
- (if show-recipients
- (bbdb/gnus-show-records bbdb-get-addresses-to-headers)
- (bbdb/gnus-show-records bbdb-get-addresses-from-headers)))
+ (bbdb-undisplay-records))
+ records))
;;;###autoload
(defun bbdb/gnus-show-all-recipients ()
@@ -215,6 +209,20 @@ This buffer will be in `bbdb-mode', with associated keybindings."
(interactive)
(bbdb/gnus-show-records bbdb-get-addresses-to-headers))
+(defun bbdb/gnus-show-sender (&optional show-recipients)
+ "Display the contents of the BBDB for the senders of this message.
+With a prefix argument show the recipients instead,
+with two prefix arguments show all records.
+This buffer will be in `bbdb-mode', with associated keybindings."
+ (interactive "p")
+ (cond ((= 4 show-recipients)
+ (bbdb/gnus-show-all-recipients))
+ ((= 16 show-recipients)
+ (bbdb/gnus-show-records))
+ (t
+ (if (null (bbdb/gnus-show-records bbdb-get-addresses-from-headers))
+ (bbdb/gnus-show-all-recipients)))))
+
(defun bbdb/gnus-pop-up-bbdb-buffer (&optional offer-to-create)
"Make the *BBDB* buffer be displayed along with the GNUS windows,
displaying the record corresponding to the sender of the current message."