[gnus git] branch master updated: m0-5-132-gce124d1 =1= notifications: add nil checks
Julien Danjou <[email protected]>
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via ce124d16f2d934891222712b5da65a0032e6e9ce (commit)
from d1a9bfb4363aceb094957e8d94cfca73be3e2c13 (commit)
- Log -----------------------------------------------------------------
commit ce124d16f2d934891222712b5da65a0032e6e9ce
Author: Julien Danjou <[email protected]>
Date: Tue Sep 11 11:41:03 2012 +0200
notifications: add nil checks
Signed-off-by: Julien Danjou <[email protected]>
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 90e1db7..a2900b3 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2012-09-11 Julien Danjou <[email protected]>
+
+ * gnus-notifications.el (gnus-notifications): Check for nil values in
+ ignored addresses check.
+
2012-09-10 Stefan Monnier <[email protected]>
* qp.el (quoted-printable-decode-region): Inline+CSE+strength-reduction.
diff --git a/lisp/gnus-notifications.el b/lisp/gnus-notifications.el
index f9c2d30..5104a56 100644
--- a/lisp/gnus-notifications.el
+++ b/lisp/gnus-notifications.el
@@ -166,8 +166,10 @@ This is typically a function to add in
(or (mail-fetch-field "From") "")))
(address (cadr address-components)))
;; Ignore mails from ourselves
- (unless (gnus-string-match-p gnus-ignored-from-addresses
- address)
+ (unless (and gnus-ignored-from-addresses
+ address
+ (gnus-string-match-p gnus-ignored-from-addresses
+ address))
(let* ((photo-file (gnus-notifications-get-photo-file address))
(notification-id (gnus-notifications-notify
(or (car address-components) address)
-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.
Summary of changes:
lisp/ChangeLog | 5 +++++
lisp/gnus-notifications.el | 6 ++++--
2 files changed, 9 insertions(+), 2 deletions(-)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".
The branch, master has been updated
hooks/post-receive
--
Gnus Project