This commit is contained in:
shoopea
2023-07-31 10:30:59 +02:00
parent 2afd699099
commit 138786855f
2 changed files with 8 additions and 5 deletions

View File

@@ -215,8 +215,11 @@ func (c *Config) Cleanup(e *Email) {
}
for _, dest := range a.destinations {
if b, ok := c.box[src.Box()]; ok {
if fs, ok := b.zfs.filesystems[dest.Append("/"+src.Box()+"/"+src.Path()).Path()]; ok {
d := dest.Append("/" + src.Box() + "/" + src.Path())
if fs, ok := b.zfs.filesystems[d.Path()]; ok {
fs.destApps = append(fs.destApps, a)
} else {
e.AddItem(fmt.Sprintf(" - Dest : No folder (%s)", d.String()))
}
}
}