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 }