Pick the right path to use when determining if a path is a maildir.
This commit is contained in:
parent
0ebcc33f55
commit
003605a430
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user