Pick the right path to use when determining if a path is a maildir.

This commit is contained in:
Bill Thiede 2013-09-03 09:13:50 -07:00
parent 0ebcc33f55
commit 003605a430

View File

@ -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
}