aboutsummaryrefslogtreecommitdiff
path: root/gnus-notify.el
diff options
context:
space:
mode:
authorYuri D'Elia <wavexx@thregr.org>2010-12-25 19:23:07 +0100
committerYuri D'Elia <wavexx@thregr.org>2010-12-25 19:23:07 +0100
commit8218421742d593dc8f9cb8ad510949dc277ccf33 (patch)
tree69e9df311660d34ea88e3f90c87d4b81bec19b29 /gnus-notify.el
parent4484672616e4b7633bd01d6e9116384374842834 (diff)
Fix read count, thanks to Philipp Haselwarter.
Diffstat (limited to 'gnus-notify.el')
-rw-r--r--gnus-notify.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnus-notify.el b/gnus-notify.el
index 6b1e598..4cc7f00 100644
--- a/gnus-notify.el
+++ b/gnus-notify.el
@@ -2,6 +2,7 @@
;;; gnus-notify.el: External mail notification for Gnus
;; Author: Yuri D'Elia <wavexx AT users.sf.net>
+;; Contributors: Philipp Haselwarter <philipp.haselwarter AT gmx.de>
;; URL: http://www.thregr.org/~wavexx/hacks/gnus-notify.el
;; This file is free software; you can redistribute it and/or modify
@@ -110,7 +111,10 @@ the libnotify's 'notify-send' program."
(interactive)
(let ( (updated-groups '()) )
(dolist (g gnus-newsrc-alist)
- (let ( (read (cdar (gnus-info-read g))) )
+ (let ( (read (or
+ (and (listp (car (gnus-info-read g)))
+ (cdar (gnus-info-read g)))
+ (cdr (gnus-info-read g)))) )
(when read
(let* ( (name (gnus-info-group g))
(unread (gnus-group-unread (car g)))