branch: externals/gnorb
commit f963a32f1389a0ab8d28618bb52518e6f53c7b7a
Author: Eric Abrahamsen <[email protected]>
Commit: Eric Abrahamsen <[email protected]>

    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