taking wrong box for cleanup
This commit is contained in:
@@ -214,12 +214,12 @@ func (c *Config) Cleanup(e *Email) {
|
||||
}
|
||||
}
|
||||
for _, dest := range a.destinations {
|
||||
if b, ok := c.box[src.Box()]; ok {
|
||||
d := dest.Append("/" + src.Box() + "/" + src.Path())
|
||||
if fs, ok := b.zfs.filesystems[d.Path()]; ok {
|
||||
if b, ok := c.box[dest.Box()]; ok {
|
||||
dest2 := dest.Append("/" + src.Box() + "/" + src.Path())
|
||||
if fs, ok := b.zfs.filesystems[dest2.Path()]; ok {
|
||||
fs.destApps = append(fs.destApps, a)
|
||||
} else {
|
||||
e.AddItem(fmt.Sprintf(" - Dest : No folder (%s)", d.String()))
|
||||
e.AddItem(fmt.Sprintf(" - Dest : No folder (%s)", dest2.String()))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user