mirror of
https://github.com/mjl-/mox.git
synced 2025-07-19 04:06:37 +03:00
Run modernize to rewrite some older go constructs to newer ones
Mostly using slice.Sort, using min/max, slices.Concat, range of int and fmt.Appendf for byte slices instead of strings.
This commit is contained in:
@ -1971,7 +1971,7 @@ func (q Query) envFilterFn(log mlog.Log, state *msgState) func(m store.Message)
|
||||
return false
|
||||
}
|
||||
if len(filterTo) > 0 || len(notFilterTo) > 0 {
|
||||
to := append(append(append([]message.Address{}, env.To...), env.CC...), env.BCC...)
|
||||
to := slices.Concat(env.To, env.CC, env.BCC)
|
||||
if len(filterTo) > 0 && !contains(filterTo, to, true) {
|
||||
return false
|
||||
}
|
||||
|
Reference in New Issue
Block a user