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

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

[elpa] externals/gnorb f963a32 346/449: Don't ignore entries with no sen


From: Stefan Monnier
Subject: [elpa] externals/gnorb f963a32 346/449: Don't ignore entries with no sender key
Date: Fri, 27 Nov 2020 23:16:08 -0500 (EST)

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

    Don't ignore entries with no sender key
    
    * gnorb-org.el (gnorb-org-extract-mail-tracking): This function
      previously ignored registry entries that had no 'sender key. Under
      some settings, a From: header where the name matches the user part of
      the email address means that nothing goes in the sender key. In those
      cases, we still want to follow and reply to the message.
---
 gnorb-org.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/gnorb-org.el b/gnorb-org.el
index fe7bcae..6602460 100644
--- a/gnorb-org.el
+++ b/gnorb-org.el
@@ -220,11 +220,11 @@ See the docstring of `gnorb-org-handle-mail' for details."
              (cl-remove-if
               (lambda (m)
                 (let ((from (car (gnus-registry-get-id-key m 'sender))))
-                  (or (null from)
-                      (string-match-p
-                       user-mail-address from)
-                      (string-match-p
-                       message-alternative-emails from))))
+                  (and from
+                       (null (or (string-match-p
+                                  user-mail-address from)
+                                 (string-match-p
+                                  message-alternative-emails from))))))
               assoc-msg-ids)
              (lambda (r l)
                (time-less-p



reply via email to

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