From 8218421742d593dc8f9cb8ad510949dc277ccf33 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Sat, 25 Dec 2010 19:23:07 +0100 Subject: Fix read count, thanks to Philipp Haselwarter. --- gnus-notify.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gnus-notify.el') 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 +;; Contributors: Philipp Haselwarter ;; 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))) -- cgit v1.2.3