From 003605a430e6055fd2e6cf047e5e9a4f8e014209 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Tue, 3 Sep 2013 09:13:50 -0700 Subject: [PATCH] Pick the right path to use when determining if a path is a maildir. --- unread/unread.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/unread/unread.go b/unread/unread.go index 99cea0c..d2764d7 100644 --- a/unread/unread.go +++ b/unread/unread.go @@ -107,8 +107,7 @@ func (mc *mailCounter) ServeHTTP(w http.ResponseWriter, r *http.Request) { } func (mc *mailCounter) updateCount(path string) error { - dn := filepath.Dir(path) - if !isMailDir(dn) { + if !isMailDir(path) { return nil }