Instead of operating on a single message we should operate on the full thread in the maillistview.
There are two approaches to this:
- Apply the modification on a query. This is already available from sink. There is an additional cost of a query, and we risk inconsitencies in that the query could potentially match other items than what is expected by the user (e.g. due to changes)
- Track all id's of aggregated values, and then just use that to apply the modification.
The former is probably the easier to implement. The latter is probably what we actually want.