emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/gnorb 0255247 133/449: Only notice records on message r


From: Stefan Monnier
Subject: [elpa] externals/gnorb 0255247 133/449: Only notice records on message receipt, not sending
Date: Fri, 27 Nov 2020 23:15:24 -0500 (EST)

branch: externals/gnorb
commit 02552475772ee4bdbd09f0aadca2e4d423b59614
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>

    Only notice records on message receipt, not sending
    
    lisp/gnorb-bbdb.el: (gnorb-bbdb-store-message-link) This function should
                    only do something when receiving messages from
                    contacts, not when sending them messages. Didn't
                    realize it was run in both places.
---
 lisp/gnorb-bbdb.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/gnorb-bbdb.el b/lisp/gnorb-bbdb.el
index 2b17c40..ce95a84 100644
--- a/lisp/gnorb-bbdb.el
+++ b/lisp/gnorb-bbdb.el
@@ -510,8 +510,7 @@ to a message into the record's `gnorb-bbdb-messages-field'."
     (user-error "This function only works with the git version of BBDB"))
   (unless (or (not (and (memq gnorb-bbdb-messages-field
                              (mapcar 'car (bbdb-record-xfields record)))
-                       gnus-summary-buffer
-                       gnus-article-buffer))
+                       (memq major-mode '(gnus-summary-mode 
gnus-article-mode))))
              (with-current-buffer gnus-article-buffer
                (not ; only store messages if the record is the sender
                 (member (nth 1 (car (bbdb-get-address-components 'sender)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]