Commit 95729d50 authored by Julien Danjou's avatar Julien Danjou Committed by Katsumi Yamaoka
Browse files

gnus-notifications.el: add nil checks

parent 9d9edd4b
2012-09-11 Julien Danjou <julien@danjou.info>
* gnus-notifications.el (gnus-notifications): Check for nil values in
ignored addresses check.
2012-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
 
* qp.el (quoted-printable-decode-region): Inline+CSE+strength-reduction.
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment